/* =====================================================================
   LABORATORIO CLÍNICO NUEVA VIDA — Hoja de estilos principal
   ---------------------------------------------------------------------
   Arquitectura:
     1.  Tokens de diseño (variables CSS)
     2.  Reset y base
     3.  Tipografía y utilidades de texto
     4.  Layout / contenedores / secciones
     5.  Componentes reutilizables (botones, cards, badges, secciones)
     6.  Navbar
     7.  Hero
     8.  Bloques de la landing (servicios, ventajas, empresas, CTA, contacto)
     9.  Footer
     10. Animaciones (scroll reveal)
     11. Responsive / media queries
     12. Accesibilidad y preferencias del usuario

   Notas:
     - Bootstrap 5 se usa SOLO para grid y utilidades. Los componentes
       (navbar, botones, cards) son propios para controlar el diseño.
     - Ningún color va "hardcodeado": todo pasa por variables CSS.
   ===================================================================== */

/* =====================================================================
   1. TOKENS DE DISEÑO
   ===================================================================== */
:root {
  /* ---- Paleta institucional ---- */
  --color-blue-900: #06315f;   /* azul profundo (texto sobre claro / hovers) */
  --color-blue-700: #0a4e94;   /* azul institucional principal */
  --color-blue-500: #1673d1;   /* azul medio (enlaces, acentos) */
  --color-blue-100: #e7f1fc;   /* azul muy suave (fondos) */

  --color-green-700: #0f8a63;  /* verde institucional (profundo) */
  --color-green-500: #16a97f;  /* verde institucional principal */
  --color-green-100: #e4f7f0;  /* verde muy suave (fondos) */

  --color-white: #ffffff;

  /* ---- Grises muy suaves ---- */
  --color-gray-050: #f7f9fc;
  --color-gray-100: #eef2f7;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-500: #64748b;
  --color-gray-700: #334155;
  --color-gray-900: #0f1e2e;

  /* ---- Roles semánticos ---- */
  --color-primary: var(--color-blue-700);
  --color-primary-strong: var(--color-blue-900);
  --color-accent: var(--color-green-500);
  --color-accent-strong: var(--color-green-700);

  --color-bg: var(--color-white);
  --color-bg-soft: var(--color-gray-050);
  --color-surface: var(--color-white);

  --color-text: var(--color-gray-900);
  --color-text-muted: var(--color-gray-500);
  --color-heading: var(--color-blue-900);
  --color-border: var(--color-gray-200);

  /* WhatsApp (color de marca del canal) */
  --color-whatsapp: #25d366;
  --color-whatsapp-strong: #1da851;

  /* ---- Gradientes muy suaves ---- */
  --gradient-brand: linear-gradient(135deg, var(--color-blue-700) 0%, var(--color-green-500) 100%);
  --gradient-soft: linear-gradient(180deg, var(--color-blue-100) 0%, var(--color-white) 70%);
  --gradient-hero: radial-gradient(1200px 700px at 85% -10%, var(--color-blue-100) 0%, rgba(231, 241, 252, 0) 60%),
                   radial-gradient(900px 600px at 0% 100%, var(--color-green-100) 0%, rgba(228, 247, 240, 0) 55%);

  /* ---- Tipografía ---- */
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.4rem, 5.2vw, 4rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-tight: 1.12;
  --lh-base: 1.65;

  /* ---- Radios ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* ---- Sombras (sutiles, nunca exageradas) ---- */
  --shadow-xs: 0 1px 2px rgba(15, 30, 46, 0.05);
  --shadow-sm: 0 4px 14px rgba(15, 30, 46, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 30, 46, 0.08);
  --shadow-focus: 0 0 0 4px rgba(22, 115, 209, 0.28);

  /* ---- Espaciado / ritmo vertical ---- */
  /* Relleno vertical de cada sección (arriba y abajo). Ajustado para un
     ritmo más compacto: ~52px en móvil y ~88px en escritorio. */
  --space-section: clamp(3.25rem, 6vw, 5.5rem);
  --container-max: 1200px;

  /* ---- Transiciones ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-fast: 0.18s var(--ease);
  --transition-base: 0.3s var(--ease);

  /* ---- Alturas ---- */
  --navbar-height: 76px;
}

/* =====================================================================
   2. RESET Y BASE
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Compensa la navbar fija al saltar a un ancla */
  scroll-padding-top: var(--navbar-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
}

/* =====================================================================
   3. TIPOGRAFÍA
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--color-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.text-muted-soft {
  color: var(--color-text-muted);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Etiqueta pequeña que titula cada sección (eyebrow) */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: 0.9rem;
}

/* =====================================================================
   4. LAYOUT / SECCIONES
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--soft {
  background-color: var(--color-bg-soft);
}

.section--tinted {
  background: var(--gradient-soft);
}

/* Cabecera de sección centrada, con ancho de lectura cómodo */
.section-header {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-header h2 {
  font-size: var(--fs-h2);
}

.section-header .lead {
  margin-bottom: 0;
}

/* Contenido accesible solo para lectores de pantalla */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace "saltar al contenido" para accesibilidad de teclado */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 1200;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 1rem;
  color: var(--color-white);
}

/* Marcador visible de datos aún no confirmados por el negocio */
.placeholder-dato {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px dashed var(--color-gray-300);
  border-radius: var(--radius-sm);
  background: var(--color-gray-050);
  color: var(--color-text-muted);
  font-size: 0.85em;
  font-style: italic;
}

/* =====================================================================
   5. COMPONENTES REUTILIZABLES
   ===================================================================== */

/* ---- Botones ---- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast),
              color var(--transition-fast);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(0);
}

.btn i {
  font-size: 1.15em;
}

.btn--primary {
  --btn-bg: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  --btn-bg: var(--color-primary-strong);
}

/* Botón WhatsApp: acción principal de conversión */
.btn--whatsapp {
  --btn-bg: var(--color-whatsapp);
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover {
  --btn-bg: var(--color-whatsapp-strong);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary);
  border-color: var(--color-border);
}
.btn--outline:hover {
  --btn-fg: var(--color-primary-strong);
  border-color: var(--color-blue-500);
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary);
  padding-inline: 0.4rem;
}
.btn--ghost:hover {
  box-shadow: none;
  transform: none;
  color: var(--color-primary-strong);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* ---- Card genérica ---- */
.card-lp {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.card-lp:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue-100);
}

/* Icono circular con gradiente suave (para cards) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-blue-100);
  color: var(--color-primary);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.icon-badge--green {
  background: var(--color-green-100);
  color: var(--color-accent-strong);
}

.card-lp h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.card-lp p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Píldora / badge informativa */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-gray-700);
  box-shadow: var(--shadow-xs);
}

.pill i {
  color: var(--color-accent);
}

/* =====================================================================
   6. NAVBAR (transparente al inicio, blanca al hacer scroll)
   ===================================================================== */
.navbar-lp {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

/* Estado tras hacer scroll (se activa desde app.js) */
.navbar-lp.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-xs);
}

.navbar-lp .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Marca / logo */
.navbar-brand-lp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.navbar-brand-lp:hover {
  color: var(--color-primary-strong);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--color-white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Logotipo como imagen (marca oficial) */
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 575.98px) {
  .brand-logo { height: 46px; }
}

/* Menú de navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-gray-700);
  font-weight: 500;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-gray-100);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-heading);
  font-size: 1.4rem;
  cursor: pointer;
}

/* =====================================================================
   7. HERO (pantalla completa, mucho espacio)
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + 2rem);
  padding-bottom: 3rem;
  background: var(--gradient-hero), var(--color-white);
  overflow: hidden;
}

.hero__content {
  max-width: 620px;
}

/* Variante centrada (hero sin imagen lateral) */
.hero--centered {
  text-align: center;
}

.hero--centered .hero__content {
  max-width: 840px;
  margin-inline: auto;
}

.hero--centered .hero .lead,
.hero--centered .lead {
  max-width: 60ch;
  margin-inline: auto;
}

.hero--centered .hero__actions,
.hero--centered .hero__trust {
  justify-content: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: 1.25rem;
}

.hero .lead {
  margin-bottom: 2rem;
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Bloque visual del hero (ilustración SVG grande) */
.hero__visual {
  position: relative;
}

.hero__visual img,
.hero__visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Tarjeta flotante sobre la imagen (detalle de confianza) */
.hero__floating-card {
  position: absolute;
  bottom: 1.5rem;
  left: -0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero__floating-card .icon-badge {
  width: 42px;
  height: 42px;
  margin: 0;
  font-size: 1.2rem;
  border-radius: 12px;
}

.hero__floating-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-heading);
}

.hero__floating-card span {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ---- Cabecera de páginas interiores (no es hero de pantalla completa) ---- */
.page-hero {
  padding-top: calc(var(--navbar-height) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-hero), var(--color-white);
  text-align: center;
}

.page-hero h1 {
  font-size: var(--fs-h2);
  max-width: 18ch;
  margin-inline: auto;
}

.page-hero .lead {
  max-width: 58ch;
  margin-inline: auto;
}

/* Migas de pan */
.breadcrumb-lp {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.breadcrumb-lp li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-gray-300);
}

.breadcrumb-lp li:last-child::after {
  content: "";
}

/* Nota de sección "próximamente" (fase futura) */
.soon-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-blue-100);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-small);
}

/* =====================================================================
   8. BLOQUES DE CONTENIDO
   ===================================================================== */

/* ---- Servicios: cuadrícula de cards ---- */
.services-grid .card-lp {
  display: flex;
  flex-direction: column;
}

.card-link {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-lp:hover .card-link i {
  transform: translateX(4px);
}

.card-link i {
  transition: transform var(--transition-fast);
}

/* ---- Perfil profesional destacado (Bacterióloga) ---- */
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}

/* Foto / retrato circular (placeholder hasta tener foto real) */
.profile-photo {
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  /* Fondo blanco solicitado (se ve tras la foto o el ícono placeholder) */
  background: var(--color-white);
  border: 6px solid var(--color-white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 3.5rem;
  overflow: hidden;
}

/* Si se usa <img class="profile-photo">, mantiene el recorte circular
   y encuadra el rostro (retrato) hacia la parte superior */
img.profile-photo {
  display: block;
  object-position: center top;
}

.profile-card .eyebrow { margin-bottom: 0.4rem; }

.profile-card h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.25rem;
}

.profile-role {
  font-weight: 600;
  color: var(--color-accent-strong);
  margin-bottom: 1rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

@media (max-width: 767.98px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .profile-badges { justify-content: center; }
}

/* ---- ¿Por qué elegirnos? ---- */
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item .icon-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---- Servicios (tarjetas minimalistas: solo ícono + nombre) ---- */
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.75rem 1.25rem;
}

.service-tile .icon-badge {
  margin-bottom: 0.5rem;
}

.service-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---- Empresas / audiencias ---- */
.audience-card {
  text-align: center;
}

.audience-card .icon-badge {
  margin-inline: auto;
}

/* Audiencias de la portada: más presencia (íconos y tarjetas más grandes) */
.audiences .audience-card {
  padding: 2.5rem 1.5rem;
}

.audiences .audience-card .icon-badge {
  width: 72px;
  height: 72px;
  font-size: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.audiences .audience-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* Panel de empresas / convenios */
.panel {
  background: var(--gradient-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
}

/* Lista con checks */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--color-gray-700);
}

.check-list i {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ---- CTA (llamado a la acción con gradiente) ---- */
.cta-band {
  position: relative;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--color-white);
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-lead);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-band .btn--whatsapp {
  --btn-bg: var(--color-white);
  --btn-fg: var(--color-green-700);
}
.cta-band .btn--whatsapp:hover {
  --btn-bg: var(--color-gray-050);
}

.cta-band .btn--outline {
  --btn-fg: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}
.cta-band .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  --btn-fg: var(--color-white);
}

/* ---- Contacto ---- */

/* Bloque destacado para la dirección de la sede principal */
.address-highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  background: var(--color-green-100);
  border: 1px solid var(--color-green-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.address-highlight .icon-badge {
  margin-bottom: 0;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--color-white);
}

.address-highlight h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
  color: var(--color-heading);
}

.address-highlight p {
  color: var(--color-gray-700);
  margin-bottom: 1rem;
}

.contact-info-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon-badge {
  margin-bottom: 0;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* Formulario */
.form-field {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-gray-700);
  margin-bottom: 0.4rem;
}

.form-control-lp {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control-lp::placeholder {
  color: var(--color-gray-300);
}

.form-control-lp:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: var(--shadow-focus);
}

textarea.form-control-lp {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* Mensaje de estado del formulario (feedback accesible) */
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: var(--color-green-100);
  color: var(--color-accent-strong);
  border: 1px solid var(--color-green-500);
}

/* =====================================================================
   9. FOOTER
   ===================================================================== */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer a {
  color: var(--color-gray-300);
}

.footer a:hover {
  color: var(--color-white);
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer .navbar-brand-lp {
  color: var(--color-white);
}

.footer .brand-name {
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--color-gray-500);
}

/* Botón flotante de WhatsApp (siempre visible) */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-fab:hover {
  transform: scale(1.06);
  background: var(--color-whatsapp-strong);
  color: var(--color-white);
}

/* ---- Barra de acción fija (solo móvil) ---- */
.mobile-actionbar {
  display: none;
}

/* =====================================================================
   10. ANIMACIONES (scroll reveal suave)
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Retrasos escalonados para grupos de elementos */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* =====================================================================
   11. RESPONSIVE
   ===================================================================== */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 4rem;
    text-align: center;
  }
  .hero__content {
    margin-inline: auto;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__trust {
    justify-content: center;
  }
  .hero__visual {
    margin-top: 3rem;
  }
}

@media (max-width: 767.98px) {
  /* Navegación móvil: menú desplegable a pantalla */
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--navbar-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.75rem 0.9rem;
  }

  /* En móvil el botón de resultados del navbar se oculta (queda en el menú y FAB) */
  .nav-actions .btn--desktop-only {
    display: none;
  }

  .hero__floating-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -1.25rem;
    white-space: nowrap;
  }

  /* Título del hero más contenido en celular */
  .hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  }

  /* Barra de acción fija: dos botones grandes siempre visibles */
  .mobile-actionbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 950;
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(15, 30, 46, 0.08);
  }

  .mobile-actionbar__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
  }

  .mobile-actionbar__btn--wa {
    background: var(--color-whatsapp);
    color: var(--color-white);
  }

  .mobile-actionbar__btn--map {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
  }

  /* En móvil, la barra reemplaza al botón flotante */
  .whatsapp-fab {
    display: none;
  }

  /* Espacio para que la barra no tape el contenido ni el footer */
  body {
    padding-bottom: 78px;
  }
}

/* =====================================================================
   12. ACCESIBILIDAD Y PREFERENCIAS
   ===================================================================== */

/* Foco visible y consistente para navegación con teclado */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--color-blue-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
