/* ==========================================================================
   MAQUETACIÓN ESTILO OCC MUNDIAL - SECCIÓN VACANTES FINVERO
   ========================================================================== */

:root {
  --occ-blue-bar: #081d45;         /* Azul Oscuro Institucional Finvero */
  --occ-blue-bar-dark: #001233;    /* Azul Marino Finvero */
  --occ-bg-gray: #f4f6f8;
  --occ-card-border: #dbe2ea;
  --occ-card-selected-border: #0088ff;
  --occ-card-selected-bg: #f0f7ff;
  --occ-primary-cta: #0088ff;       /* Azul Primario Finvero */
  --occ-primary-cta-hover: #0066cc; /* Azul Hover Finvero */
  --occ-blue-pill: #0088ff;
  --occ-text-dark: #1e293b;
  --occ-text-muted: #64748b;
}

body#vacantesPage {
  background-color: var(--occ-bg-gray);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--occ-text-dark);
  padding-top: 132px !important; /* Indicación explícita para espaciado de navbar */
}

/* --------------------------------------------------------------------------
   1. BARRA SUPERIOR DE BÚSQUEDA Y FILTROS (ESTILO OCC - AZUL FINVERO)
   -------------------------------------------------------------------------- */
.fv-occ-search-header {
  background: linear-gradient(180deg, var(--occ-blue-bar) 0%, var(--occ-blue-bar-dark) 100%);
  margin-top: 0 !important;
  padding: 24px 20px 24px !important;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
  overflow: visible !important;
}

.fv-occ-search-container {
  max-width: 1280px;
  margin: 0 auto;
  overflow: visible !important;
}

/* Fila de inputs de búsqueda */
.fv-occ-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fv-occ-input-group {
  position: relative;
  flex: 1 1 320px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 4px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fv-occ-input-icon {
  color: #0088ff;
  font-size: 1.1rem;
  margin-right: 12px;
}

.fv-occ-input {
  border: none;
  outline: none;
  width: 100%;
  height: 48px;
  font-size: 0.95rem;
  color: #0f172a;
  font-family: inherit;
  font-weight: 500;
}

.fv-occ-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

/* Botón Buscar Empleo - Azul Finvero */
.fv-occ-search-btn {
  background-color: var(--occ-primary-cta) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 0 36px;
  height: 56px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

.fv-occ-search-btn:hover {
  background-color: var(--occ-primary-cta-hover) !important;
  box-shadow: 0 6px 16px rgba(0, 136, 255, 0.45);
}

/* Fila de Botones de Filtros OCC */
.fv-occ-filters-row {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto !important;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.fv-occ-filter-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #081d45 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 20px !important;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.fv-occ-filter-pill:hover,
.fv-occ-filter-pill:focus,
.fv-occ-filter-pill.show {
  background: #f0f7ff !important;
  border-color: #0088ff !important;
  color: #0088ff !important;
  box-shadow: 0 4px 10px rgba(0, 136, 255, 0.25);
}

.fv-occ-filter-pill::after {
  display: none !important;
}

/* Menú Desplegable de Filtros */
.dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 8px 0 !important;
  font-size: 0.875rem !important;
  z-index: 1050 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.dropdown-item {
  padding: 10px 20px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}

.dropdown-item:hover {
  background-color: #f0f7ff !important;
  color: #0088ff !important;
}

/* BOTÓN DE COMPARTIR PROMINENTE FINVERO (SIEMPRE VISIBLE CON ÍCONO AZUL) */
.fv-occ-share-icon-btn {
  background-color: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  color: #0f172a !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
  white-space: nowrap !important;
}

.fv-occ-share-icon-btn:hover,
.fv-occ-share-icon-btn:focus,
.fv-occ-share-icon-btn.show {
  background-color: #e2e8f0 !important;
  border-color: #0088ff !important;
  color: #0088ff !important;
}

.fv-occ-share-icon-btn i {
  font-size: 1rem !important;
  color: #0088ff !important;
}

/* MENÚ DESPLEGABLE COMPARTIR EXACTO OCC (FOTO DE USUARIO) */
.fv-share-dropdown-menu {
  min-width: 230px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  padding: 6px 0 !important;
  background-color: #ffffff !important;
  z-index: 1055 !important;
  margin-top: 6px !important;
}

.fv-share-dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

.fv-share-dropdown-item:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.fv-share-dropdown-item i {
  font-size: 1rem !important;
  color: #475569 !important;
}

.fv-share-dropdown-item:hover i {
  color: #0f172a !important;
}

/* AUTOCOMPLETE DROPDOWN PARA BUSCADORES DE VACANTES */
.fv-occ-input-group {
  position: relative !important;
}

.fv-occ-autocomplete-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  z-index: 1050 !important;
  padding: 6px 0 !important;
}

.fv-occ-autocomplete-item {
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
  text-align: left !important;
  width: 100% !important;
}

.fv-occ-autocomplete-item:hover,
.fv-occ-autocomplete-item.active {
  background-color: #f1f5f9 !important;
  color: #0088ff !important;
}

.fv-occ-autocomplete-item i {
  color: #64748b !important;
  font-size: 0.95rem !important;
}

.fv-occ-autocomplete-item:hover i {
  color: #0088ff !important;
}

.fv-occ-autocomplete-item strong {
  color: #0088ff !important;
  font-weight: 600 !important;
}

.fv-share-dropdown-menu {
  min-width: 230px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
  padding: 8px !important;
  background-color: #ffffff !important;
  z-index: 1055 !important;
}

.fv-share-dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.fv-share-dropdown-item:hover {
  background-color: #f1f5f9 !important;
  color: #0088ff !important;
}

.fv-share-dropdown-item i,
.fv-share-dropdown-item svg {
  color: #334155 !important;
  stroke: #334155 !important;
  font-size: 1.1rem !important;
}

.fv-share-dropdown-item:hover i,
.fv-share-dropdown-item:hover svg {
  color: #0088ff !important;
  stroke: #0088ff !important;
}

/* --------------------------------------------------------------------------
   2. CONTENEDOR PRINCIPAL - ESTRUCTURA 2 COLUMNAS (SPLIT VIEW DESKTOP)
   -------------------------------------------------------------------------- */
.fv-occ-main-container {
  max-width: 1280px;
  margin: 28px auto;
  padding: 0 16px;
}

.fv-occ-split-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}

/* Columna Izquierda: Lista de Tarjetas (420px de ancho) */
.fv-occ-list-column {
  flex: 0 0 420px;
  max-width: 420px;
  width: 100%;
}

.fv-occ-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: #64748b;
}

.fv-occ-sort-block {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #1e293b;
  font-weight: 600;
}

/* Tarjeta de Empleo en la Lista */
.fv-occ-job-card {
  background: #ffffff;
  border: 1px solid var(--occ-card-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.fv-occ-job-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fv-occ-job-card.selected {
  border: 2px solid var(--occ-card-selected-border);
  background-color: var(--occ-card-selected-bg);
  box-shadow: 0 4px 14px rgba(0, 136, 255, 0.12);
}

.fv-occ-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.fv-occ-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fv-occ-badge-date {
  color: #64748b;
  font-weight: 500;
}

.fv-occ-badge-viewed {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fv-occ-pill-rec {
  background-color: #10b981 !important; /* Verde Recomendada */
  color: #ffffff !important;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.fv-occ-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.fv-occ-card-salary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
}

.fv-occ-card-company-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.fv-occ-company-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
}

.fv-occ-card-location {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 2px;
}

.fv-occ-card-building-icon {
  font-size: 1.75rem;
  color: #081d45;
  opacity: 0.8;
}

/* Columna Derecha: Panel de Detalle (Desktop) */
.fv-occ-detail-column {
  flex: 1 1 auto;
  background: #ffffff;
  border: 1px solid var(--occ-card-border);
  border-radius: 8px;
  padding: 32px;
  position: sticky;
  top: 145px;
  max-height: calc(100vh - 165px);
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.fv-occ-detail-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.fv-occ-detail-salary {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.fv-occ-detail-company-line {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 6px;
}

.fv-occ-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0088ff;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Botón Postularme - Azul Finvero */
.fv-occ-apply-primary-btn {
  background-color: var(--occ-primary-cta) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 12px 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.25);
}

.fv-occ-apply-primary-btn:hover {
  background-color: var(--occ-primary-cta-hover) !important;
  box-shadow: 0 6px 16px rgba(0, 136, 255, 0.4);
}

.fv-occ-detail-building-logo {
  font-size: 2.5rem;
  color: #081d45;
}

.fv-occ-divider {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.fv-occ-section-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.fv-occ-sub-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
}

.fv-occ-text-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
}

.fv-occ-list {
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #334155;
}

.fv-occ-list li {
  margin-bottom: 6px;
}

.fv-occ-detail-footer-cta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   3. MODAL DRAWER LATERAL DERECHO FIJO A LO ALTO (ESTILO ORQUESTADOR)
   -------------------------------------------------------------------------- */
.fv-occ-drawer-modal {
  z-index: 100000 !important; /* Por encima de navbar (z-index: 9999) */
}

.modal-backdrop.show {
  z-index: 99990 !important; /* Por encima de navbar para oscurecer el fondo completo */
}

.fv-occ-drawer-modal .modal-dialog {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  width: 500px !important;
  max-width: 100vw !important;
  height: 100vh !important;
  transform: translate3d(100%, 0, 0) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 100001 !important;
}

.fv-occ-drawer-modal.show .modal-dialog {
  transform: translate3d(0, 0, 0) !important;
}

.fv-occ-drawer-modal .modal-content {
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  background-color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
}

.fv-occ-drawer-modal .modal-header {
  padding: 80px 28px 24px !important; /* Margen superior amplio para título y subtítulo */
  border-bottom: 1px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}

.fv-occ-drawer-modal form#occApplyForm {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

.fv-occ-drawer-modal .modal-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #081d45 !important;
  line-height: 1.2 !important;
}

.fv-occ-drawer-modal .btn-close {
  opacity: 0.8 !important;
  font-size: 1.1rem !important;
  padding: 8px !important;
  margin: -4px -4px 0 16px !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.fv-occ-drawer-modal .btn-close:hover {
  opacity: 1 !important;
}

.fv-occ-drawer-modal .modal-body {
  padding: 24px 28px !important;
  overflow-y: auto !important; /* Scroll interno en los campos */
  flex: 1 1 auto !important;
}

.fv-drawer-input {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  height: 48px;
  padding: 10px 16px;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all 0.2s ease;
}

.fv-drawer-input:focus {
  border-color: #0088ff !important;
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15) !important;
}

.fv-occ-drawer-modal .modal-footer {
  padding: 18px 28px !important;
  border-top: 1px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-shrink: 0 !important; /* Botones fijos abajo */
  position: sticky !important;
  bottom: 0 !important;
  z-index: 10 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* ESTILOS DEL BOTÓN DE SELECCIÓN DE ARCHIVO / CV */
.fv-file-picker-container {
  width: 100%;
}

.fv-file-picker-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #334155 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  text-align: left !important;
  outline: none !important;
}

.fv-file-picker-btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #0088ff !important;
}

.fv-file-picker-text {
  font-size: 0.875rem !important;
  color: #64748b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: calc(100% - 110px) !important;
}

.fv-file-picker-badge {
  background-color: #0088ff !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* BOTONES DEL MODAL FINVERO (BORDES SUAVEMENTE REDONDEADOS 8PX) */
.fv-drawer-btn-outline {
  background: transparent !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-size: 0.9375rem !important;
  transition: all 0.2s ease;
}

.fv-drawer-btn-outline:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.fv-drawer-btn-solid {
  background-color: #0088ff !important;
  border: 1.5px solid #0088ff !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-size: 0.9375rem !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 136, 255, 0.25);
}

.fv-drawer-btn-solid:hover {
  background-color: #0066cc !important;
  border-color: #0066cc !important;
  box-shadow: 0 6px 16px rgba(0, 136, 255, 0.4);
}

/* --------------------------------------------------------------------------
   4. COMPORTAMIENTO Y MODAL BOTTOM-SHEET FIJO EN MÓVIL (ESTILO EXACTO OCC)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  body#vacantesPage {
    padding-top: 120px !important;
  }

  .fv-occ-list-column {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .fv-occ-search-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .fv-occ-input-group {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    flex: 0 0 52px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .fv-occ-input {
    height: 100% !important;
  }

  .fv-occ-search-btn {
    width: 100% !important;
    height: 52px !important;
  }

  /* MODAL DESLIZABLE FULLSCREEN DE DETALLE DE VACANTE EN MÓVIL (ESTILO OCC) */
  .fv-occ-detail-column {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99995 !important;
    background: #ffffff !important;
    padding: 0 20px 90px !important; /* Espacio inferior para el botón fijo */
    overflow-y: auto !important;
    max-height: 100vh !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }

  .fv-occ-detail-column.show-mobile-overlay {
    display: block !important;
    transform: translateY(0) !important;
  }

  /* Barra superior del modal móvil de detalle */
  .fv-occ-mobile-top-bar {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
  }

  .fv-occ-mobile-close-btn {
    background: transparent;
    border: none;
    font-size: 1.35rem;
    color: #1e293b;
    padding: 4px 8px;
    cursor: pointer;
  }

  .fv-occ-mobile-drag-handle {
    width: 44px;
    height: 5px;
    background-color: #cbd5e1;
    border-radius: 10px;
  }

  .fv-occ-mobile-share-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    padding: 4px 8px;
    cursor: pointer;
  }

  /* BOTÓN FIJO EN EL BORDE INFERIOR (STICKY POSTULARME MÓVIL AZUL FINVERO) */
  .fv-occ-mobile-sticky-cta {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: #ffffff !important;
    padding: 12px 20px !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12) !important;
    z-index: 99999 !important;
    display: flex;
    justify-content: center;
  }

  .fv-occ-mobile-sticky-cta .fv-occ-apply-primary-btn {
    width: 100% !important;
    height: 50px !important;
    font-size: 1.05rem !important;
    border-radius: 8px !important;
    background-color: #0088ff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3) !important;
  }

  .fv-occ-drawer-modal .modal-dialog {
    width: 100vw !important;
  }
}

/* ESTILOS DE VALIDACIÓN CON ALERTAS ROJAS (ESTILO EXACTO CAPTURA FINVERO) */
.fv-occ-drawer-modal .form-control.is-invalid,
.fv-occ-drawer-modal .fv-drawer-input.is-invalid,
.fv-drawer-input.is-invalid,
.form-control.is-invalid {
  border: 1.5px solid #ef4444 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.fv-field-error-msg {
  color: #ef4444 !important;
  font-size: 0.825rem !important;
  font-weight: 500 !important;
  margin-top: 6px !important;
  display: flex;
  align-items: center !important;
  gap: 6px !important;
}

.fv-field-error-msg.d-none {
  display: none !important;
}

.fv-field-error-msg i {
  color: #ef4444 !important;
  font-size: 0.875rem !important;
}


/* ==========================================================================
   AJUSTES 2026-10 (antes estaban como <style> dentro del HTML)
   Van al final para conservar el orden de la cascada.
   ========================================================================== */

/* Oculta WhatsApp y "Ir arriba" mientras el modal de postulación está abierto */
body.modal-open #whatsContainer { display: none !important; }

/* Espacio superior real del navbar + barra amarilla (vacantes.css lo fijaba y tapaba el buscador en móvil) */
body#vacantesPage {
  padding-top: calc(var(--fv-banner-height, 0px) + var(--fv-header-height, 72px)) !important;
}

/* navbar_v6.css oculta globalmente cualquier .dropdown: se restauran los filtros y "Ordenar por" */
#vacantesPage .fv-occ-search-header .dropdown,
#vacantesPage .fv-occ-sort-block.dropdown {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
}
#vacantesPage .fv-occ-filters-row { scrollbar-width: none; }
#vacantesPage .fv-occ-filters-row::-webkit-scrollbar { display: none; }

/* Título de tarjeta como enlace (lo siguen los buscadores) */
.fv-card-link { color: inherit; text-decoration: none; }
.fv-card-link:hover { color: inherit; text-decoration: underline; }

/* Contenido estático (buscadores e IA sin JavaScript); vacantes.js lo reemplaza */
.fv-static-job h2 { text-transform: none !important; font-size: 1.5rem; font-weight: 600; }
.fv-static-job h3 { text-transform: none !important; font-size: 1.05rem; font-weight: 600; margin-top: 18px; }

/* ESCRITORIO (estilo Computrabajo): sin footer y sin scroll general; lista y detalle
   ocupan la pantalla, cada uno con su scroll visible. En el detalle nada queda fijo. */
@media (min-width: 992px) {
  html:has(body#vacantesPage),
  body#vacantesPage {
    height: 100%;
    overflow: hidden !important;
  }
  #vacantesPage #finveroFooter { display: none !important; } /* sin footer en escritorio */
  #vacantesPage {
    --fv-top-offset: calc(var(--fv-banner-height, 0px) + var(--fv-header-height, 72px));
    --fv-panes-height: calc(100vh - var(--fv-top-offset) - var(--fv-search-height, 150px) - 32px);
  }
  #vacantesPage .fv-occ-main-container { margin: 16px auto; }
  #vacantesPage .fv-occ-split-layout {
    height: var(--fv-panes-height);
    align-items: stretch;
  }
  #vacantesPage .fv-occ-list-column,
  #vacantesPage .fv-occ-detail-column {
    height: 100%;
    overflow-y: auto;
  }
  #vacantesPage .fv-occ-list-column,
  #vacantesPage .fv-occ-detail-column { overscroll-behavior: contain; }
  /* Barras de scroll siempre visibles, mismos valores que Computrabajo:
     10px, gris rgba(53,62,74,.12), redondeadas, sobre carril blanco.
     (No usar scrollbar-color/scrollbar-width aquí: en Chrome anulan estos estilos) */
  #vacantesPage .fv-occ-list-column::-webkit-scrollbar,
  #vacantesPage .fv-occ-detail-column::-webkit-scrollbar { width: 10px; height: 10px; }
  #vacantesPage .fv-occ-list-column::-webkit-scrollbar-thumb,
  #vacantesPage .fv-occ-detail-column::-webkit-scrollbar-thumb {
    background: rgba(53, 62, 74, 0.12);
    border-radius: 10px;
  }
  #vacantesPage .fv-occ-list-column::-webkit-scrollbar-thumb:hover,
  #vacantesPage .fv-occ-detail-column::-webkit-scrollbar-thumb:hover { background: rgba(53, 62, 74, 0.28); }
  #vacantesPage .fv-occ-list-column::-webkit-scrollbar-track-piece,
  #vacantesPage .fv-occ-detail-column::-webkit-scrollbar-track-piece { background: #ffffff; border-radius: 10px; }
  /* Firefox (no soporta ::-webkit-scrollbar) */
  @supports not selector(::-webkit-scrollbar) {
    #vacantesPage .fv-occ-list-column,
    #vacantesPage .fv-occ-detail-column { scrollbar-color: rgba(53, 62, 74, 0.25) #ffffff; }
  }
  #vacantesPage .fv-occ-list-column { padding-right: 8px; }
  #vacantesPage .fv-occ-detail-column {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    padding-top: 28px !important; /* aire arriba de "Hoy / Recomendada" */
  }


  /* Conteo y "Ordenar por" fijos arriba de la lista (el detalle no tiene nada fijo) */
  #vacantesPage .fv-occ-list-header {
    position: sticky;
    top: 0;
    z-index: 5;
    margin-bottom: 0;
    padding: 4px 0 12px;
    background: var(--occ-bg-gray, #f4f6f9);
  }

}

/* Botones principales con el estilo de "Empieza ahora" (Score Riesgo):
   azul #1374FF, texto blanco 600, esquinas 8px, sombra azul; hover #0056D6 */
#vacantesPage .fv-occ-apply-primary-btn,
#vacantesPage .fv-occ-search-btn,
#postularmeModal .fv-drawer-btn-solid {
  background-color: #1374FF !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(19, 116, 255, 0.35) !important;
  transform: none !important;
  transition: all 0.2s ease !important;
}
#vacantesPage .fv-occ-apply-primary-btn { padding: 14px 32px !important; }
#vacantesPage .fv-occ-apply-primary-btn:hover,
#vacantesPage .fv-occ-apply-primary-btn:focus-visible,
#vacantesPage .fv-occ-search-btn:hover,
#vacantesPage .fv-occ-search-btn:focus-visible,
#postularmeModal .fv-drawer-btn-solid:hover,
#postularmeModal .fv-drawer-btn-solid:focus-visible {
  background-color: #0056D6 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(19, 116, 255, 0.5) !important;
  transform: none !important;
  outline: none;
}
#postularmeModal .fv-drawer-btn-solid:disabled { opacity: 0.7; cursor: wait; }
#vacantesPage .fv-occ-apply-primary-btn svg { flex-shrink: 0; }

/* Botón Postularme al final del detalle */
.fv-detail-bottom-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}


/* MÓVIL: detalle como panel inferior (estilo OCC) */
@media (max-width: 991.98px) {
  #vacantesPage .fv-occ-detail-column {
    display: block !important;
    top: calc(var(--fv-banner-height, 0px) + 16px) !important; /* debajo de la barra amarilla */
    height: calc(100dvh - var(--fv-banner-height, 0px) - 16px) !important;
    max-height: none !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 0 20px 96px !important;
    transform: translateY(100%) !important;
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s !important;
  }
  #vacantesPage .fv-occ-detail-column.show-mobile-overlay {
    transform: none !important;
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s !important;
  }
  .fv-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 99994;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  body.fv-sheet-open { overflow: hidden !important; }
  body.fv-sheet-open .fv-sheet-backdrop { opacity: 1; pointer-events: auto; }
  body.fv-sheet-open #whatsContainer { display: none !important; }

  #vacantesPage .fv-occ-mobile-top-bar {
    margin: 0 -20px 16px;
    padding: 10px 12px;
    border-radius: 16px 16px 0 0;
  }
  .fv-sheet-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1e293b;
    font-size: 1.35rem;
  }
  .fv-sheet-close:hover, .fv-sheet-close:focus-visible { background: #f1f5f9; outline: none; }
  .fv-sheet-handle { width: 44px; height: 5px; border-radius: 10px; background: #cbd5e1; }

  /* Buscador compacto y filtros en una fila desplazable */
  #vacantesPage .fv-occ-search-header { padding: 16px 16px 12px !important; }
  #vacantesPage .fv-occ-search-row { gap: 10px !important; }
  #vacantesPage .fv-occ-filters-row { flex-wrap: nowrap !important; gap: 8px !important; margin: 12px -16px 0; padding: 0 16px 4px; }
  #vacantesPage .fv-occ-filter-pill { padding: 8px 14px !important; }
  #vacantesPage .fv-occ-list-header { flex-wrap: wrap; gap: 6px; }
}

/* Título + botón compartir (estilo OCC) */
.fv-share-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.fv-share-title-row > :first-child { flex: 1 1 auto; min-width: 0; }

/* Títulos en tipo oración (sin mayúsculas) y más compactos, como en OCC */
.fv-share-title-row .fv-occ-detail-title,
.fv-share-title-row .fv-occ-card-title {
  text-transform: none !important; /* universal.css fuerza mayúsculas en h1-h6 */
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
}
.fv-share-title-row .fv-occ-detail-title { font-size: 1.5rem; }
.fv-share-title-row .fv-occ-card-title { font-size: 1.0625rem; }

/* Pantalla de éxito dentro del modal de postulación (oculta encabezado y formulario) */
.fv-occ-drawer-modal .modal-content.fv-success-mode > .modal-header,
.fv-occ-drawer-modal .modal-content.fv-success-mode form#occApplyForm { display: none !important; }
.fv-apply-success { display: flex; flex-direction: column; flex: 1 1 auto; overflow-y: auto; }
.fv-apply-success.d-none { display: none !important; }
.fv-apply-success-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 72px 28px 20px; /* espacio para la barra superior del sitio, igual que el formulario */
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.fv-apply-success-logo { width: 45px; height: 45px; object-fit: contain; }
.fv-apply-success-actions { display: flex; align-items: center; gap: 12px; }
.fv-apply-success-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0057ff;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fv-apply-success-icon:hover,
.fv-apply-success-icon:focus-visible { background-color: #e6f3ff; outline: none; }
.fv-apply-success-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 36px 48px;
}
.fv-apply-success-job {
  text-transform: none !important; /* universal.css fuerza mayúsculas en h1-h6 */
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 14px;
  line-height: 1.25;
}
.fv-apply-success-title { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin: 0 0 28px; }
.fv-apply-success-desc { font-size: 0.95rem; color: #333333; max-width: 340px; margin: 0 0 32px; line-height: 1.5; }
.fv-apply-success-img { width: 100%; max-width: 390px; height: auto; margin-bottom: 40px; }
/* "Entendido": mismo estilo que el resto de botones principales ("Empieza ahora") */
.fv-apply-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background-color: #1374FF;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(19, 116, 255, 0.35);
  transition: all 0.2s ease;
}
.fv-apply-success-btn:hover,
.fv-apply-success-btn:focus-visible {
  background-color: #0056D6;
  box-shadow: 0 6px 24px rgba(19, 116, 255, 0.5);
  outline: none;
}

/* Modal ampliado (botón de flechas en la pantalla de éxito) */
.fv-occ-drawer-modal.fv-drawer-expanded .modal-dialog { width: 100vw !important; }

/* Formulario de postulación: campo trampa y mensaje de resultado */
.fv-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fv-apply-status {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
.fv-apply-status-success { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.fv-apply-status-error { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Etiqueta destacada de modalidad (Híbrido / Remoto / Presencial) */
.fv-modality-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: #ffc107;
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}
.fv-modality-badge i { font-size: 0.75rem; }

/* Filtro con una opción elegida */
.fv-occ-filter-pill.fv-filter-active {
  background: #f0f7ff !important;
  border-color: #0088ff !important;
  color: #0088ff !important;
}
.fv-filter-value { font-weight: 500; margin-left: -8px; } /* compensa el gap de la píldora */

/* Contenedor propio (sin la clase .dropdown, que navbar_v6.css oculta globalmente) */
.fv-share { position: relative; flex: 0 0 auto; }

/* Botón compartir: solo ícono, fondo gris al pasar el cursor o abrir */
.fv-share-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #e6f3ff;
  color: #0088ff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fv-share-btn:hover,
.fv-share-btn:focus-visible,
.fv-share-btn.show {
  background-color: #cce7ff;
  outline: none;
}

/* Menú desplegable de compartir */
.fv-share-menu {
  min-width: 232px;
  padding: 6px 0;
  margin-top: 4px !important;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  z-index: 1055;
}
.fv-share-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.fv-share-item:hover,
.fv-share-item:focus-visible {
  background-color: #f5f7fa;
  outline: none;
}
.fv-share-item i {
  width: 18px;
  text-align: center;
  font-size: 1.05rem;
  color: #0f172a;
}
