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

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

html {
  scroll-behavior: smooth;
}

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

/* Nav */
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: 2rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  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;
  transition: background 0.3s;
}

.btn-cta:hover {
  background-color: var(--primary-dark);
}

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

/* Hero Transaccional */
.hero-services {
  padding: 160px 2rem 90px;
  background: linear-gradient(
      135deg,
      rgba(30, 41, 59, 0.92),
      rgba(15, 118, 110, 0.88)
    ),
    url("foto.webp") center/cover;
  color: white;
  text-align: center;
}
.hero-services p {
  text-align: justify;
}

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

.hero-services h1 {
  font-size: 3rem;
  max-width: 900px;
  margin: 0 auto 1.2rem;
  line-height: 1.2;
}

.hero-services p {
  font-size: 1.2rem;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  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: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, background 0.3s;
  border: none;
  cursor: pointer;
}

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

.btn-secondary-hero {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary-hero:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Diferenciador Rápido (Trust Bar) */
.trust-bar {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem 2rem;
}

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

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

.trust-item i {
  color: var(--primary);
  font-size: 1.4rem;
}

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

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

.section-title {
  font-size: 2.3rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: justify;
}

/* Filtros de Categoría */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  border: 1px solid #cbd5e1;
  background: white;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Grilla de Servicios SEO */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.catalog-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.catalog-card p {
  text-align: justify;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.card-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.tag-urgencia {
  background: #fee2e2;
  color: #dc2626;
}

.tag-preventivo {
  background: #e0f2fe;
  color: #0284c7;
}

.tag-terreno {
  background: #fef3c7;
  color: #d97706;
}

.tag-confort {
  background: #f0fdfa;
  color: var(--primary);
}

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

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

.pain-quote {
  font-size: 0.9rem;
  color: #b91c1c;
  background: #fef2f2;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-style: italic;
}

.catalog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.deliverables {
  list-style: none;
  margin-bottom: 1.75rem;
  border-top: 1px dashed #e2e8f0;
  padding-top: 1rem;
}

.deliverables li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deliverables li i {
  color: var(--primary);
  font-size: 0.85rem;
}

.btn-card-wa {
  width: 100%;
  padding: 0.85rem;
  background: #f8fafc;
  color: var(--secondary);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.catalog-card:hover .btn-card-wa {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* EL CABALLO DE TROYA: Banner de Conversión a Planes */
.trojan-upsell {
  background: linear-gradient(135deg, var(--secondary), #0f172a);
  border-radius: 16px;
  padding: 3.5rem;
  color: white;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
  border: 2px solid var(--primary);
  box-shadow: 0 20px 30px rgba(15, 118, 110, 0.15);
}

.trojan-upsell h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.trojan-upsell h2 span {
  color: var(--accent);
}

.trojan-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.comp-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-box.good {
  background: rgba(15, 118, 110, 0.25);
  border-color: var(--primary);
}

.comp-box h4 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.trojan-cta-box {
  background: white;
  color: var(--text-main);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
}

.trojan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 0.5rem 0;
}

/* Formulario On-Demand */
.ondemand-box {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  max-width: 850px;
  margin: 0 auto;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.form-control {
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.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;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trojan-upsell {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .trojan-comparison {
    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-services h1 {
    font-size: 2.1rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }

  .trust-item {
    justify-content: flex-start;
  }

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

  .form-group.full {
    grid-column: span 1;
  }

  .ondemand-box {
    padding: 1.5rem;
  }
}
/* 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;
}

/* =========================================================
   1. ALINEAR ICONOS CON H3 EN LAS 12 TARJETAS (SIN TOCAR HTML)
   ========================================================= */
.catalog-card > div:first-child {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
}

/* El badge superior ocupa su propia fila arriba sin chocar con el título */
.catalog-card .card-tag {
  position: static;
  grid-column: 1 / -1;
  justify-self: end;
  margin-bottom: 0.6rem;
}

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

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

.catalog-card .pain-quote {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

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

/* =========================================================
   2. BLINDAJE ANTI-DESBORDE DEL FORMULARIO ON-DEMAND
   ========================================================= */
.ondemand-box,
.form-grid,
.form-group {
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Clave en CSS Grid para que los <select> largos no estiren la caja */
}

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

/* =========================================================
   3. MEJORAS RESPONSIVAS MÓVIL (TRUST BAR, H2, FILTROS Y FORM)
   ========================================================= */
@media (max-width: 768px) {
  /* Evitar cualquier rebote horizontal en móviles */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .section {
    padding: 3rem 1rem;
  }

  /* Hero más compacto y proporcionado */
  .hero-services {
    padding: 125px 1rem 60px;
  }

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

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

  .hero-services 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 de Autoridad y Diferenciación: Grilla 2x2 tipo tarjetas limpias */
  .trust-bar {
    padding: 1rem;
    background: #f8fafc;
  }

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

  .trust-item {
    background: white;
    border: 1px solid #e2e8f0;
    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;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  }

  .trust-item i {
    font-size: 1.25rem;
    background: #f0fdfa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Título H2 y subtítulo de Servicios Técnicos a la Carta */
  .section-header {
    margin-bottom: 1.5rem;
  }

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

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

  /* Filtros de Categorías: Carrusel horizontal táctil (App-style) sin ocupar media pantalla */
  .category-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  /* Grilla de tarjetas en 1 columna limpia sin forzar 340px mínimos */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  /* Banner Upsell (Caballo de Troya) */
  .trojan-upsell {
    padding: 1.5rem 1.15rem;
    gap: 1.5rem;
    margin: 0.5rem auto;
  }

  .trojan-upsell h2 {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .trojan-cta-box {
    padding: 1.5rem 1rem;
  }

  /* Formulario Solicitar Servicio Puntual: Cero desborde lateral */
  .ondemand-box {
    padding: 1.5rem 1.1rem;
    border-radius: 14px;
  }

  .ondemand-box h2 {
    font-size: 1.45rem !important;
  }

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

  .form-group.full {
    grid-column: 1 / -1;
  }

  .form-control {
    font-size: 0.95rem;
    padding: 0.8rem 0.85rem;
  }
}

.seasonal-alert-banner {
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 100%);
  color: white;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  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;
}
@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.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.banner-btn:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .seasonal-alert-banner {
    justify-content: center;
    text-align: center;
  }
  .banner-btn {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   MODO NOCHE LACUSTRE PARA SERVICIOS.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, #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 {
  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"] .catalog-card,
[data-theme="dark"] .ondemand-box,
[data-theme="dark"] .trojan-cta-box,
[data-theme="dark"] .trust-item {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .filter-btn,
[data-theme="dark"] .btn-card-wa,
[data-theme="dark"] .form-control {
  background: var(--surface-soft) !important;
  border-color: var(--border) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .catalog-card:hover .btn-card-wa {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #0b1120 !important;
}

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

[data-theme="dark"] .pain-quote {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] .deliverables {
  border-top-color: var(--border) !important;
}

[data-theme="dark"] .trojan-upsell,
[data-theme="dark"] footer {
  background: #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;
  }
}
