/* ==========================================================================
   BARRA INTERACTIVA DE VENTAS — SPECTRA WEB
   Archivo: assets/css/demo-bar.css
   ========================================================================== */

body.has-spectra-bar {
  padding-top: 54px;
}

.spectra-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background-color: #0b1320;
  color: #ffffff;
  z-index: 9999;
  border-bottom: 2px solid #e67e22;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, sans-serif;
}

.spectra-bar-container {
  max-width: 1200px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.spectra-bar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spectra-badge {
  background-color: #e67e22;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.spectra-agency {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.spectra-bar-selector {
  display: flex;
  background-color: #172338;
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}

.spectra-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.spectra-btn .spectra-price {
  font-size: 0.7rem;
  opacity: 0.8;
}

.spectra-btn:hover {
  color: #ffffff;
}

.spectra-btn.is-active {
  background-color: #2563eb;
  color: #ffffff;
}

.spectra-bar-info {
  font-size: 0.75rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spectra-bar-info strong {
  color: #38bdf8;
}

@media (max-width: 850px) {
  body.has-spectra-bar {
    padding-top: 85px;
  }
  .spectra-bar {
    height: auto;
    padding-block: 0.4rem;
  }
  .spectra-bar-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .spectra-bar-info {
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   REGLAS DINÁMICAS POR PLAN
   ========================================================================== */

/* 1. PLAN EXPRESS ($2,490)
   - Oculta bloques extra
   - Oculta destino 5 (Asia) -> Quedan 4 destinos
   - Oculta footer legal y enlaces de destinos en footer */
[data-current-plan="express"] .plan-hide-express,
[data-current-plan="express"] .card-destino:nth-child(5),
[data-current-plan="express"] .destino-extra-premium,
[data-current-plan="express"] .footer-destinos-col,
[data-current-plan="express"] .legal-col-premium {
  display: none !important;
}

[data-current-plan="express"] .card-destino {
  flex: 0 1 340px !important;
}

/* 2. PLAN PROFESIONAL ($3,900)
   - Oculta destino 4 (Las Vegas) y destino 5 (Asia) -> Quedan 3 destinos
   - Oculta marco legal completo
   - Oculta destinos 4 y 5 en el footer */
[data-current-plan="profesional"] .card-destino:nth-child(4),
[data-current-plan="profesional"] .card-destino:nth-child(5),
[data-current-plan="profesional"] .destino-extra-premium,
[data-current-plan="profesional"] .premium-dest-item,
[data-current-plan="profesional"] .legal-col-premium {
  display: none !important;
}

[data-current-plan="profesional"] .card-destino {
  flex: 0 1 340px !important;
}

/* 3. PLAN PREMIUM ($5,900)
   - Máximo ancho del contenedor para garantizar 3 arriba y 2 abajo
   - Muestra marco legal */
[data-current-plan="premium"] .section-destinos .container {
  max-width: 1140px;
}

[data-current-plan="premium"] .card-destino {
  flex: 0 1 340px !important;
  width: 340px !important;
}

[data-current-plan="premium"] .legal-col-premium {
  display: block !important;
}

/* --- CONTROL DEL FORMULARIO DINÁMICO POR PLAN --- */

/* EXPRESS: Oculta los campos pro y premium */
[data-current-plan="express"] .form-field-pro,
[data-current-plan="express"] .form-field-premium {
  display: none !important;
}

/* PROFESIONAL: Oculta solo los campos premium */
[data-current-plan="profesional"] .form-field-premium {
  display: none !important;
}

/* PREMIUM: Muestra todo */
[data-current-plan="premium"] .form-field-pro,
[data-current-plan="premium"] .form-field-premium {
  display: grid !important;
}

/* Ajuste para el checkbox del legal en premium */
[data-current-plan="premium"] div.form-field-premium:has(input[type="checkbox"]) {
  display: block !important;
}