/* ================================================================
   JOBS EMBED — Vacantes de Bolsa de Empleo (contenido real de origen)
   ================================================================ */

.tsb-bolsa-trabajo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #040404;
  color: #D1D1D1;
  padding: 80px 20px;
  box-sizing: border-box;
}

.tsb-bolsa-trabajo *, .tsb-bolsa-trabajo *::before, .tsb-bolsa-trabajo *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.tsb-bolsa-trabajo .tsb-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tsb-bolsa-trabajo .tsb-header {
  text-align: center;
  margin-bottom: 64px;
  animation: tsbFadeInUp 0.6s ease forwards;
}

.tsb-bolsa-trabajo .tsb-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #FF0000;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.tsb-bolsa-trabajo .tsb-title {
  font-size: 48px;
  font-weight: 800;
  color: #D1D1D1;
  margin-bottom: 16px;
  line-height: 1.1;
}

.tsb-bolsa-trabajo .tsb-subtitle {
  font-size: 17px;
  color: #8B8B8B;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.tsb-bolsa-trabajo .tsb-section {
  margin-bottom: 64px;
}

.tsb-bolsa-trabajo .tsb-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.tsb-bolsa-trabajo .tsb-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #C40000E6;
  white-space: nowrap;
}

.tsb-bolsa-trabajo .tsb-divider {
  flex: 1;
  height: 1px;
  background: #1F1F1F;
}

.tsb-bolsa-trabajo .tsb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tsb-bolsa-trabajo .tsb-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tsb-bolsa-trabajo .tsb-card {
  background: #040404;
  border: 1px solid #1F1F1F;
  border-radius: 16px;
  padding: 28px;
  transition: all 300ms ease;
}

.tsb-bolsa-trabajo .tsb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.35);
}

.tsb-bolsa-trabajo .tsb-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tsb-bolsa-trabajo .tsb-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #D1D1D1;
}

.tsb-bolsa-trabajo .tsb-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 0, 0, 0.1);
  color: #FF0000;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  margin-left: 12px;
}

.tsb-bolsa-trabajo .tsb-card-desc {
  font-size: 14px;
  color: #8B8B8B;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tsb-bolsa-trabajo .tsb-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.tsb-bolsa-trabajo .tsb-accordion.open {
  max-height: 800px;
}

.tsb-bolsa-trabajo .tsb-accordion-inner {
  padding-bottom: 16px;
}

.tsb-bolsa-trabajo .tsb-detail-section {
  margin-bottom: 16px;
}

.tsb-bolsa-trabajo .tsb-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: #C40000E6;
  margin-bottom: 8px;
}

.tsb-bolsa-trabajo .tsb-detail-list {
  list-style: none;
  padding: 0;
}

.tsb-bolsa-trabajo .tsb-detail-list li {
  font-size: 12px;
  color: #8B8B8B;
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tsb-bolsa-trabajo .tsb-detail-list li::before {
  content: '▸';
  color: #FF0000;
  flex-shrink: 0;
  margin-top: 1px;
}

.tsb-bolsa-trabajo .tsb-detail-list.benefits li::before {
  content: '✦';
}

.tsb-bolsa-trabajo .tsb-buttons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.tsb-bolsa-trabajo .tsb-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 300ms ease;
  text-align: center;
  border: none;
}

.tsb-bolsa-trabajo .tsb-btn-outline {
  background: transparent;
  border: 1px solid #1F1F1F;
  color: #8B8B8B;
}

.tsb-bolsa-trabajo .tsb-btn-outline:hover {
  color: #D1D1D1;
  border-color: rgba(255, 0, 0, 0.3);
}

.tsb-bolsa-trabajo .tsb-btn-primary {
  background: #FF0000;
  color: #FFFFFF;
}

.tsb-bolsa-trabajo .tsb-btn-primary:hover {
  background: #e00000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.tsb-bolsa-trabajo .tsb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.tsb-bolsa-trabajo .tsb-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tsb-bolsa-trabajo .tsb-modal {
  background: #0E0E0E;
  border: 1px solid #1F1F1F;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 300ms ease;
}

.tsb-bolsa-trabajo .tsb-overlay.active .tsb-modal {
  transform: scale(1);
}

.tsb-bolsa-trabajo .tsb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #1F1F1F;
  position: sticky;
  top: 0;
  background: #0E0E0E;
  z-index: 1;
}

.tsb-bolsa-trabajo .tsb-modal-label {
  font-size: 11px;
  font-weight: 700;
  color: #FF0000;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.tsb-bolsa-trabajo .tsb-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #D1D1D1;
  margin-top: 4px;
}

.tsb-bolsa-trabajo .tsb-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #1F1F1F;
  background: transparent;
  color: #8B8B8B;
  font-size: 16px;
  cursor: pointer;
  transition: all 300ms ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tsb-bolsa-trabajo .tsb-modal-close:hover {
  color: #D1D1D1;
  border-color: rgba(255, 0, 0, 0.3);
}

.tsb-bolsa-trabajo .tsb-modal-body {
  padding: 24px;
}

.tsb-bolsa-trabajo .tsb-form-group {
  margin-bottom: 16px;
}

.tsb-bolsa-trabajo .tsb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tsb-bolsa-trabajo .tsb-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #8B8B8B;
  margin-bottom: 6px;
}

.tsb-bolsa-trabajo .tsb-input,
.tsb-bolsa-trabajo .tsb-textarea {
  width: 100%;
  background: #040404;
  border: 1px solid #1F1F1F;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #D1D1D1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 300ms ease;
  outline: none;
}

.tsb-bolsa-trabajo .tsb-input:focus,
.tsb-bolsa-trabajo .tsb-textarea:focus {
  border-color: #FF0000;
}

.tsb-bolsa-trabajo .tsb-input::placeholder,
.tsb-bolsa-trabajo .tsb-textarea::placeholder {
  color: #555;
}

.tsb-bolsa-trabajo .tsb-textarea {
  resize: none;
  min-height: 80px;
}

.tsb-bolsa-trabajo .tsb-file-input {
  width: 100%;
  font-size: 13px;
  color: #8B8B8B;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tsb-bolsa-trabajo .tsb-file-input::file-selector-button {
  background: #1F1F1F;
  border: 1px solid #1F1F1F;
  color: #D1D1D1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  margin-right: 12px;
  transition: background 300ms ease;
}

.tsb-bolsa-trabajo .tsb-file-input::file-selector-button:hover {
  background: #2a2a2a;
}

.tsb-bolsa-trabajo .tsb-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #FF0000;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 300ms ease;
  margin-top: 8px;
}

.tsb-bolsa-trabajo .tsb-submit:hover {
  background: #e00000;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
}

.tsb-bolsa-trabajo .tsb-form-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.tsb-bolsa-trabajo .tsb-form-status[data-state="pending"] {
  color: #B3B3B3;
}

.tsb-bolsa-trabajo .tsb-form-status[data-state="success"] {
  color: #4ADE80;
}

.tsb-bolsa-trabajo .tsb-form-status[data-state="error"] {
  color: #FF0000;
}

@keyframes tsbFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .tsb-bolsa-trabajo .tsb-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tsb-bolsa-trabajo {
    padding: 48px 16px;
  }
  .tsb-bolsa-trabajo .tsb-title {
    font-size: 32px;
  }
  .tsb-bolsa-trabajo .tsb-subtitle {
    font-size: 15px;
  }
  .tsb-bolsa-trabajo .tsb-grid,
  .tsb-bolsa-trabajo .tsb-grid-3 {
    grid-template-columns: 1fr;
  }
  .tsb-bolsa-trabajo .tsb-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tsb-bolsa-trabajo .tsb-section-title {
    font-size: 20px;
    white-space: normal;
  }
  .tsb-bolsa-trabajo .tsb-divider {
    width: 100%;
  }
  .tsb-bolsa-trabajo .tsb-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tsb-bolsa-trabajo .tsb-title {
    font-size: 26px;
  }
  .tsb-bolsa-trabajo .tsb-card {
    padding: 20px;
  }
  .tsb-bolsa-trabajo .tsb-buttons {
    flex-direction: column;
  }
}
