: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 {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Barra lateral minimalista de avance de scroll */
.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 */
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.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.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 Especializado */
.hero-plagas {
  padding: 165px 2rem 95px;
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.92),
      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(16, 185, 129, 0.2);
  border: 1px solid #34d399;
  color: #a7f3d0;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

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

.hero-plagas p {
  font-size: 1.18rem;
  max-width: 780px;
  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 Credenciales Sanitarias */
.sanitary-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

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

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

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

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

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

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

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

/* Grilla de Amenazas de la Zona Lacustre */
.pests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.pest-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.pest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
  border-color: var(--primary);
}

.season-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-red {
  background: #fee2e2;
  color: var(--danger);
}

.badge-amber {
  background: #fef3c7;
  color: #b45309;
}

.badge-teal {
  background: #ccfbf1;
  color: var(--primary-dark);
}

.pest-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f0fdfa;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.pest-card h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.risk-alert {
  background: #fef2f2;
  border-left: 3px solid var(--danger);
  padding: 0.65rem 0.9rem;
  font-size: 0.86rem;
  color: #991b1b;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
}

.pest-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-align: justify;
}

.protocol-list {
  list-style: none;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

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

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

/* Sección Diferenciador Tecnológico (El Reloj de Reingreso) */
.tech-differentiator {
  background: var(--secondary);
  color: white;
  padding: 5rem 2rem;
}

.tech-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.tech-steps {
  list-style: none;
  margin-top: 2rem;
}

.tech-steps li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mockup del Correo y Alerta de Reingreso */
.reentry-mockup {
  background: white;
  color: var(--text-main);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
  border: 2px solid #34d399;
}

.reentry-timer-box {
  background: #fef3c7;
  border: 1px solid var(--accent);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  color: #92400e;
  font-size: 0.9rem;
}

.reentry-ok-box {
  background: #ecfdf5;
  border: 1px solid var(--success);
  padding: 1rem;
  border-radius: 10px;
  color: #065f46;
  font-size: 0.9rem;
}

/* Calendario Anual de Plagas en el Sur */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.season-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  border-top: 4px solid var(--primary);
}

.season-card h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Cotizador Interactivo de Plagas */
.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;
}

.pest-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.pest-option {
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.pest-option:hover {
  border-color: #99f6e4;
}

.pest-option.selected {
  background: #f0fdfa;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.12);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.input-std {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* FAQs */
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.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;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

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

.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) {
  .sanitary-grid,
  .calendar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-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;
  }

  .hero-plagas h1 {
    font-size: 2.1rem;
  }

  .sanitary-grid,
  .calendar-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .quote-builder {
    padding: 1.5rem;
  }
}

/* =========================================================
   1. ALINEAR ICONOS CON H3 EN LAS 6 TARJETAS (PC Y MÓVIL)
   ========================================================= */
.pest-card > div:first-child {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
}

.pest-card .season-badge {
  position: static;
  grid-column: 1 / -1;
  justify-self: end;
  margin-bottom: 0.5rem;
}

.pest-card .pest-icon {
  grid-column: 1;
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pest-card h3 {
  grid-column: 2;
  margin-bottom: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.pest-card .risk-alert {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
}

.pest-card p {
  grid-column: 1 / -1;
}

/* =========================================================
   2. BLINDAJE ANTI-DESBORDE DEL COTIZADOR Y SELECTS
   ========================================================= */
.quote-builder,
.form-grid-2,
.form-grid-2 > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.input-std {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

/* =========================================================
   3. OPTIMIZACIÓN RESPONSIVA MÓVIL (PLAGAS)
   ========================================================= */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .section {
    padding: 3rem 1rem;
  }

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

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

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

  .hero-plagas 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;
  }

  /* Barra Sanitaria en Grilla 2x2 limpia */
  .sanitary-bar {
    padding: 1rem;
    background: #f8fafc;
  }

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

  .sanitary-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;
  }

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

  /* Títulos de sección proporcionados */
  .section-header {
    margin-bottom: 1.75rem;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Grilla de Plagas en 1 columna sin forzar 340px */
  .pests-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pest-card {
    padding: 1.35rem 1.15rem;
  }

  .pest-card h3 {
    font-size: 1.1rem;
  }

  /* Sección Diferenciador Tecnológico y Mockup de Reingreso */
  .tech-differentiator {
    padding: 3rem 1rem;
  }

  .tech-grid {
    gap: 2rem;
  }

  .tech-grid h2 {
    font-size: 1.55rem !important;
  }

  .reentry-mockup {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  /* Calendario Estacional en 2x2 compacto */
  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .season-card {
    padding: 1.25rem;
  }

  /* Cotizador Interactivo de Plagas */
  .quote-builder {
    padding: 1.35rem 1rem;
    border-radius: 16px;
  }

  .quote-builder h2 {
    font-size: 1.45rem !important;
  }

  .pest-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .pest-option {
    padding: 0.9rem 0.5rem;
  }

  .input-std {
    padding: 0.8rem 0.85rem;
    font-size: 0.92rem;
  }

  .faq-question {
    padding: 1.1rem 1rem;
    font-size: 0.95rem;
  }
}
/* =========================================================
   BANNER ESTACIONAL (Araña de Rincón)
   ========================================================= */
.seasonal-alert-banner {
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 100%);
  color: white;
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 73px; /* Ajusta según el alto de tu header fijo */
  z-index: 99;
  position: relative;
}

.seasonal-alert-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #f87171;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(248, 113, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}

.banner-btn {
  background: white;
  color: #7f1d1d;
  padding: 0.4rem 1.25rem;
  border-radius: 50px; /* Bordes tipo píldora se ven más limpios */
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.banner-btn:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

.desktop-text {
  display: inline;
}

/* ==== AJUSTE RESPONSIVO MÓVIL (Súper Compacto) ==== */
@media (max-width: 768px) {
  .seasonal-alert-banner {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    justify-content: space-between; /* Envía el texto a la izq. y botón a la der. */
  }

  .seasonal-alert-banner .banner-content {
    font-size: 0.85rem;
    flex: 1; /* Ocupa el espacio disponible */
    line-height: 1.2;
  }

  .desktop-text {
    display: none; /* Oculta la frase larga para que no salte de línea */
  }

  .banner-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }
}
/* =========================================================
   MODO NOCHE LACUSTRE PARA PLAGAS.HTML (PLAGAS.CSS)
   ========================================================= */
[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);
  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 {
  background-color: var(--header-bg) !important;
  border-color: var(--border) !important;
}

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

[data-theme="dark"] .pest-card,
[data-theme="dark"] .season-card,
[data-theme="dark"] .quote-builder,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .reentry-mockup,
[data-theme="dark"] .sanitary-item {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .pest-option,
[data-theme="dark"] .input-std {
  background: var(--surface-soft) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .pest-option.selected {
  background: rgba(20, 184, 166, 0.16) !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .pest-icon,
[data-theme="dark"] .sanitary-item i {
  background: rgba(20, 184, 166, 0.15) !important;
  color: var(--primary) !important;
}

[data-theme="dark"] .risk-alert {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] .reentry-timer-box {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fde68a !important;
}

[data-theme="dark"] .reentry-ok-box {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #6ee7b7 !important;
}

/* Mantener la sección diferenciadora y el footer en azul profundo */
[data-theme="dark"] .tech-differentiator,
[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;
}

.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;
  }
}
