:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #1e293b;
  --accent: #f59e0b;
  --danger: #dc2626;
  --success: #10b981;
  --bg-light: #f8fafc;
  --text-main: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body {
  scroll-behavior: smooth;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

.side-scroll-track {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.06);
  z-index: 9999;
  pointer-events: none;
}

.side-scroll-bar {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 0 0 4px 4px;
  transition: height 0.08s ease-out;
}

header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-cta {
  background-color: var(--primary);
  color: white !important;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary);
  cursor: pointer;
}

/* Hero Campaña Primavera-Verano */
.hero-ulv {
  padding: 165px 2rem 95px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.93),
      rgba(15, 118, 110, 0.88)
    ),
    url("fotos/fumigacion.webp") center/cover;
  color: white;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid var(--accent);
  color: #fde68a;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-ulv h1 {
  font-size: 2.85rem;
  max-width: 920px;
  margin: 0 auto 1.25rem;
  line-height: 1.18;
  font-weight: 800;
}

.hero-ulv h1 span {
  color: var(--accent);
}

.hero-ulv p {
  font-size: 1.16rem;
  max-width: 800px;
  margin: 0 auto 2.25rem;
  color: #e2e8f0;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  font-size: 1.05rem;
  padding: 1rem 2rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.btn-large:hover {
  background-color: #d97706;
  transform: translateY(-2px);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Barra de Garantías */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.trust-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--secondary);
}

.trust-item i {
  font-size: 1.45rem;
  color: var(--primary);
  background: #f0fdfa;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section {
  padding: 4.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.06rem;
}

/* Sección: El Ciclo de la Araña de Rincón en Primavera-Verano */
.spider-cycle-box {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 2.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.cycle-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.cycle-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  border-top: 4px solid var(--danger);
}

.cycle-card.win {
  border-top-color: var(--primary);
  background: #f0fdfa;
}

.cycle-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.cycle-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fee2e2;
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cycle-card.win .cycle-icon {
  background: #ccfbf1;
  color: var(--primary-dark);
}

.cycle-header h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  line-height: 1.25;
}

/* Sección: Nuestro Mecanismo de Doble Acción (ULV Interior vs Exterior Residual) */
.mechanism-section {
  background: var(--secondary);
  color: white;
  padding: 5rem 2rem;
}

.mechanism-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.mech-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 2.25rem;
}

.mech-card.ulv {
  border-top: 5px solid #34d399;
}

.mech-card.residual {
  border-top: 5px solid var(--accent);
}

.mech-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mech-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mech-card.residual .mech-icon {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
}

.mech-list {
  list-style: none;
  margin-top: 1.25rem;
}

.mech-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.94rem;
  color: #e2e8f0;
}

.mech-list li i {
  color: #34d399;
  margin-top: 4px;
}

/* Sección: Precauciones y Cuidado de tus Cosas */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Corrección de .prep-card: bloque apilado limpio sobre .prep-list */
.prep-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* =========================================================
   OPTIMIZACIÓN UI/UX: LISTAS FLUIDAS Y ENCABEZADOS EN 1 LÍNEA
   ========================================================= */

/* 1. Encabezado de Guía de Cuidado (.prep-header) en una sola línea horizontal */
.prep-header {
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.prep-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.prep-header h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0;
}

/* 2. Solución definitiva al texto "acortado" en .mech-list y .prep-list:
      Eliminamos el flex de los <li> para que <strong> y el texto fluyan al 100% del ancho */
.mech-list li,
.prep-list li {
  display: block !important;
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.mech-list li i,
.prep-list li i {
  position: absolute;
  left: 0;
  top: 0.28rem;
  margin: 0;
}

/* Título de cada punto destacado limpio y legible */
.mech-list li strong {
  color: #ffffff;
  font-weight: 700;
}

.prep-list li strong {
  color: var(--secondary);
  font-weight: 700;
}

/* 3. Ajustes Responsivos finos para Móvil (UI Compacta y Escaneable) */
@media (max-width: 768px) {
  .mechanism-section {
    padding: 2.75rem 1rem;
  }

  .mechanism-grid {
    gap: 1.25rem;
  }

  .mech-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .mech-header {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .mech-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .mech-header h3 {
    font-size: 1.1rem !important;
    line-height: 1.25;
  }

  .mech-card > p {
    font-size: 0.88rem !important;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }

  .mech-list {
    margin-top: 0.85rem;
  }

  .mech-list li,
  .prep-list li {
    font-size: 0.88rem;
    padding-left: 1.45rem;
    margin-bottom: 0.7rem;
  }

  /* En móvil, hacer que el subtítulo en negrita quede en su propia línea superior
       para lectura rápida tipo ficha técnica */
  .mech-list li strong,
  .prep-list li strong {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.92rem;
  }

  /* Guía de cuidado más compacta */
  .prep-grid {
    gap: 1rem;
  }

  .prep-card {
    padding: 1.15rem 1rem;
  }

  .prep-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    gap: 0.65rem;
  }

  .prep-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .prep-header h3 {
    font-size: 1.02rem;
  }

  .sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    display: flex !important;
    /* Fuerza a mostrar en móvil */
    align-items: center;
    justify-content: center;
  }

  .sticky-mobile-cta .btn-large {
    width: 100%;
    font-size: 1.1rem;
    justify-content: center;
  }

  /* Ocultar el flotante normal para que no estorben ambos */
  .whatsapp-float {
    display: none !important;
  }

  /* Dar espacio al final de la página para que el footer no quede tapado por la barra */
  body {
    padding-bottom: 80px;
  }
}

/* Ocultar el sticky en PC por defecto */
.sticky-mobile-cta {
  display: none;
}

/* Estilos de la Calculadora Dinámica */
.calc-box {
  background: #f8fafc;
  border: 2px solid #ccfbf1;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: 8px;
  outline: none;
  accent-color: var(--primary);
  margin: 0.85rem 0 0.4rem;
  cursor: pointer;
}

.floor-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.floor-btn {
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
  transition: all 0.2s;
}

.floor-btn.active {
  background: #f0fdfa;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.price-result-bar {
  background: var(--secondary);
  color: white;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.price-big {
  font-size: 2.2rem;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
}

.guarantee-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.g-badge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .calc-box {
    padding: 1.2rem 1rem;
  }

  .floor-selector,
  .guarantee-strip {
    grid-template-columns: 1fr;
  }

  .price-result-bar {
    flex-direction: column;
    text-align: center;
  }
}

.prep-list {
  list-style: none;
}

.prep-list li {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.prep-list li i {
  color: var(--primary);
  margin-top: 4px;
}

/* Cotizador Rápido */
.quote-builder {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.08);
  border: 1px solid var(--border);
  padding: 3rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
  min-width: 0;
}

.form-grid-2 > div {
  min-width: 0;
}

.input-std {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 992px) {
  .cycle-steps-grid,
  .mechanism-grid,
  .prep-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 0.75rem 0;
  }

  .section {
    padding: 3rem 1rem;
  }

  .hero-ulv {
    padding: 125px 1rem 60px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-ulv h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-ulv p {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-btns .btn-large {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }

  .trust-bar {
    padding: 1rem;
    background: #f8fafc;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .trust-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.6rem;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .trust-item i {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    border-radius: 50%;
  }

  .section-title {
    font-size: 1.1rem;
    line-height: 1.25;
  }

  .section-subtitle {
    text-align: justify;
  }

  .spider-cycle-box {
    padding: 1.35rem 1.1rem;
  }

  .cycle-card,
  .prep-card,
  .mech-card {
    padding: 1.35rem 1.15rem;
  }

  .mechanism-section {
    padding: 3rem 1rem;
  }

  .quote-builder {
    padding: 1.35rem 1rem;
    border-radius: 16px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Barra lateral minimalista de progreso de scroll */
.side-scroll-track {
  position: fixed;
  top: 0;
  right: 0;
  /* Si la prefieres al lado izquierdo, cambia 'right: 0' por 'left: 0' */
  width: 4px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.06);
  z-index: 9999;
  pointer-events: none;
}

.side-scroll-bar {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 8px rgba(15, 118, 110, 0.4);
  transition: height 0.08s ease-out;
}

/* =========================================================
   ESTILOS SECCIÓN FAQS: CLIENTE CURIOSO Y PRECAVIDO
   ========================================================= */
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #99f6e4;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
}

/* Ajuste responsivo para celulares */
@media (max-width: 768px) {
  .faq-question {
    padding: 1.1rem 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 1.25rem 1rem;
  }
}
.edu-link-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.edu-text {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  max-width: 600px;
}
.edu-text i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 5px;
}
.edu-text strong {
  color: var(--secondary);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
}
.edu-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}
.edu-btn {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s;
  white-space: nowrap;
}
.edu-btn:hover {
  background: var(--primary-dark);
}
@media (max-width: 768px) {
  .edu-link-box {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .edu-btn {
    text-align: center;
  }
}

[data-theme="dark"] {
  --primary: #14b8a6;
  --primary-dark: #0f766e;
  --secondary: #f8fafc;
  --accent: #fbbf24;
  --bg-light: #0b1120;
  --surface: #1e293b;
  --surface-soft: #0f172a;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(15, 23, 42, 0.92);
}

.theme-toggle-btn {
  background: var(--surface-soft, #f1f5f9);
  border: 1.5px solid var(--border, #e2e8f0);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 1rem;
  transition: all 0.25s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] header,
[data-theme="dark"] .nav-links,
[data-theme="dark"] .sticky-mobile-cta {
  background-color: var(--header-bg) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .trust-bar {
  background: var(--surface-soft) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .spider-cycle-box,
[data-theme="dark"] .cycle-card,
[data-theme="dark"] .prep-card,
[data-theme="dark"] .quote-builder,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .trust-item {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .calc-box,
[data-theme="dark"] .floor-btn,
[data-theme="dark"] .input-std,
[data-theme="dark"] .edu-link-box {
  background: var(--surface-soft) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .floor-btn.active,
[data-theme="dark"] .cycle-card.win {
  background: rgba(20, 184, 166, 0.16) !important;
  border-color: var(--primary) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .g-badge {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
}

[data-theme="dark"] .mechanism-section,
[data-theme="dark"] .price-result-bar,
[data-theme="dark"] footer {
  background-color: #0f172a !important;
}
/* =========================================================
   HEADER MAESTRO UNIFICADO + DROPDOWN + ELEVATOR LATERAL
   ========================================================= */
:root {
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --border: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.96);
}

[data-theme="dark"] {
  --surface: #1e293b;
  --surface-soft: #0f172a;
  --border: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(15, 23, 42, 0.94);
}

header {
  background-color: var(--header-bg) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1240px !important;
  margin: 0 auto;
  padding: 0.65rem 1.5rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cycle-card p {
  text-align: justify;
}
.mech-card p {
  text-align: justify;
}
li {
  text-align: justify;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 46px !important;
  width: 46px !important;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links > a {
  margin: 0 !important;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links > a:hover {
  color: var(--primary);
}

.nav-links .btn-cta {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.52rem 1.1rem !important;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-login-nav {
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-main) !important;
  padding: 0.48rem 0.9rem !important;
  border-radius: 8px;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
}

.btn-login-nav:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.theme-toggle-btn {
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  margin: 0 !important;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: var(--primary);
  cursor: pointer;
}

/* Dropdown de Especialidades */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropbtn {
  background: none;
  border: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-dropbtn i {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropbtn {
  color: var(--primary);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--surface);
  min-width: 250px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 0.5rem;
  z-index: 1100;
}

.nav-dropdown-content::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

@media (min-width: 981px) {
  .nav-dropdown:hover .nav-dropdown-content {
    display: block;
  }
}

.nav-dropdown.open .nav-dropdown-content {
  display: block;
}

.nav-dropdown.open .nav-dropbtn i {
  transform: rotate(180deg);
}

.nav-dropdown-content a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 0.58rem 0.75rem !important;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  width: 100% !important;
  text-align: left !important;
}

.nav-dropdown-content a i {
  width: 20px;
  text-align: center;
  color: var(--primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-dropdown-content a:hover {
  background: var(--surface-soft);
  color: var(--primary) !important;
}

.dropdown-footer-link {
  border-top: 1px solid var(--border);
  margin-top: 0.3rem !important;
  padding-top: 0.6rem !important;
  color: var(--primary) !important;
  justify-content: center;
}

/* Elevator Lateral de Secciones (Puntos de Scroll) */
.section-elevator {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.elevator-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.38);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
}

.elevator-dot:hover,
.elevator-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(15, 118, 110, 0.5);
}

.elevator-label {
  position: absolute;
  right: 22px;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.elevator-dot:hover .elevator-label {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 980px) {
  .nav-mobile-actions {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .desktop-only-theme {
    display: none !important;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    padding: 0.75rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    max-height: 82vh;
    overflow-y: auto;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links > a,
  .nav-dropbtn {
    padding: 0.75rem 0 !important;
    width: 100%;
    text-align: left !important;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--surface-soft);
    border-radius: 10px;
    margin: 0.4rem 0;
    width: 100%;
  }
  .nav-links > .btn-cta,
  .nav-links > .btn-login-nav {
    justify-content: center;
    text-align: center !important;
    margin-top: 0.6rem !important;
    padding: 0.75rem !important;
    border-bottom: none;
  }
  .section-elevator {
    display: none;
  }
}
