/* ==============================================================================
   MALLAS Y GAVIONES BARRANQUILLA - SISTEMA DE DISEÑO CSS3 VANILLA
   Norma: WCAG 2.1 AA | Mobile-First | Core Web Vitals (CLS/LCP/INP)
   ============================================================================== */

/* ------------------------------------------------------------------------------
   1. VARIABLES CSS & TOKENS DE DISEÑO (:root)
   ------------------------------------------------------------------------------ */
:root {
  /* Paleta Corporativa Oficial */
  --color-primary: #00171f;          /* Navy profundo dominante */
  --color-primary-light: #00222e;    /* Navy alternativo para elevaciones */
  --color-secondary: #003459;        /* Azul corporativo */
  --color-secondary-light: #004b80;  /* Azul corporativo medio */
  --color-accent: #007ea7;           /* Celeste acento / interactivo */
  --color-accent-hover: #00a8e8;     /* Celeste brillante para hover */
  --color-accent-subtle: #e0f2fe;    /* Fondo celeste sutil para badges */
  
  /* WhatsApp con verde sólido y contraste accesible Lighthouse/WCAG AA (> 5:1 con blanco) */
  --color-whatsapp: #15803d;
  --color-whatsapp-hover: #166534;
  --color-whatsapp-dark: #14532d;

  /* Superficies y Neutros */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-border-dark: #1e3a47;

  /* Tipografía y Contraste */
  --color-text: #0f172a;             /* Texto primario (Ratio > 12:1 sobre blanco) */
  --color-text-muted: #475569;       /* Texto secundario (Ratio > 5.5:1 sobre blanco) */
  --color-text-inverse: #ffffff;     /* Texto sobre fondos oscuros (Ratio > 15:1) */
  --color-text-inverse-muted: #cbd5e1;

  /* Fuentes Tipográficas */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Tipografía Fluida con clamp() */
  --text-xs: clamp(0.75rem, 0.72rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.35vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.85rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.2vw, 3.25rem);
  --text-hero: clamp(2.2rem, 1.7rem + 2.6vw, 3.5rem);

  /* Espaciado Modular */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Elevaciones / Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(0, 168, 232, 0.35);

  /* Bordes Redondeados */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-pill: 9999px;

  /* Transiciones */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Dimensiones del Layout */
  --max-width: 1260px;
  --topbar-height: 42px;
  --header-height: 78px;
  --mobile-bar-height: 64px;
  --wa-safe-space: 460px;
}

/* ------------------------------------------------------------------------------
   2. RESET MODERNO Y ACCESIBILIDAD BASE
   ------------------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* text-rendering:optimizeLegibility puede retrasar el primer paint ~50-100ms.
     Se aplica solo en desktop donde el CPU tiene más margen. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--mobile-bar-height);
  overflow-x: clip;
}

@media (min-width: 768px) {
  body {
    text-rendering: optimizeLegibility;
    padding-bottom: 0;
  }
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* Accesibilidad estricta para navegación por teclado */
:focus-visible {
  outline: 3px solid var(--color-accent-hover);
  outline-offset: 3px;
}

/* Salto accesible directo al contenido principal */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 99999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------------------------------------------------------
   3. TIPOGRAFÍA Y JERARQUÍA SEMÁNTICA
   ------------------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

strong {
  font-weight: 700;
}

/* ------------------------------------------------------------------------------
   4. LAYOUT Y CONTENEDORES
   ------------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1400px) {
  :root {
    --max-width: 1440px;
  }
  .container {
    padding-inline: clamp(2rem, 3vw, 3.5rem);
  }
}

@media (min-width: 1750px) {
  :root {
    --max-width: 1560px;
  }
  .container {
    padding-inline: clamp(2.5rem, 3.5vw, 4.5rem);
  }
}

.section {
  padding-block: var(--space-3xl);
}

@media (min-width: 992px) {
  .section {
    padding-block: var(--space-4xl);
  }
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark strong {
  color: var(--color-text-inverse);
}

.section--dark p {
  color: var(--color-text-inverse-muted);
}

.section__header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section__header p {
  font-size: var(--text-lg);
  margin-top: var(--space-sm);
}

/* ------------------------------------------------------------------------------
   5. COMPONENTES Y BOTONES CRO
   ------------------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.badge--accent {
  background-color: #e0f2fe;
  color: #005b7a;
  border: 1px solid #bae6fd;
}

.badge--glow {
  background-color: rgba(0, 168, 232, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 15px rgba(0, 168, 232, 0.25);
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  min-height: 48px; /* Táctil amigable WCAG */
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 126, 167, 0.35);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(0, 168, 232, 0.45);
  transform: translateY(-2px);
}

/* Botón de WhatsApp con Verde Sólido Accesible (WCAG AA > 5:1) */
.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

.btn--whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn--outline {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn--outline:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
}

.btn--outline-dark:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* ------------------------------------------------------------------------------
   6. TOP BAR DE CONTACTO RÁPIDO (DISEÑO COSTA CARIBE)
   ------------------------------------------------------------------------------ */
.top-bar {
  background-color: #001626;
  color: #cbd5e1;
  font-size: var(--text-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

@media (min-width: 992px) {
  .top-bar {
    display: block;
  }
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--topbar-height);
  width: 100%;
  max-width: min(100% - 2rem, 1560px);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 48px);
}

.top-bar__left {
  display: flex;
  align-items: center;
}

.top-bar__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
}

.top-bar__location strong {
  color: #ffffff;
}

.top-bar__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0369a1; /* Contraste 5.93:1 con blanco (WCAG AA > 4.5:1) */
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.35);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.top-bar__pill span,
.top-bar__pill strong {
  color: #ffffff;
}

.top-bar__pill:hover {
  background-color: #075985; /* Contraste 7.64:1 con blanco */
  box-shadow: 0 4px 14px rgba(7, 89, 133, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ------------------------------------------------------------------------------
   7. HEADER STICKY & NAVEGACIÓN (DISEÑO GAVIONES BARRANQUILLA)
   ------------------------------------------------------------------------------ */
/* backdrop-filter solo en desktop: muy costoso en móviles */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, #002845 0%, #001f37 100%);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (min-width: 768px) {
  .header {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.header--scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  background: rgba(0, 31, 55, 0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: clamp(12px, 1.5vw, 24px);
  padding-block: 0.45rem;
  box-sizing: border-box;
  width: 100%;
  max-width: min(100% - 2rem, 1560px);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 48px);
}

/* Tarjeta Blanca Redondeada para el Logotipo */
.header__logo-card {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  padding: 0.45rem clamp(0.5rem, 1vw, 1rem);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.header__logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.header__logo-svg {
  display: block;
  height: clamp(34px, 2.5vw, 42px);
  max-width: 100%;
  width: auto;
}

/* Navegación de Cápsula Central Oscura */
.nav {
  display: none;
}

@media (min-width: 992px) {
  .nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.nav__capsule {
  background: rgba(0, 18, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.3rem clamp(0.3rem, 0.6vw, 0.5rem);
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.3vw, 6px);
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  font-weight: 600;
  color: #ffffff;
  padding: 0.45rem clamp(8px, 0.9vw, 16px);
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  display: inline-block;
}

.nav__link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

/* Ítem Activo con fondo azul oceánico contrastado (5.93:1 con blanco - WCAG AA > 4.5:1) */
.nav__link.active {
  background-color: #0369a1;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(3, 105, 161, 0.45);
}

/* Acciones a la Derecha del Header */
.header__actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  flex: 0 0 auto;
}

/* Tarjeta Blanca de Cotización Inmediata con Teléfono */
.header__cta-card {
  display: none;
  align-items: center;
  gap: clamp(6px, 0.7vw, 10px);
  background-color: #ffffff;
  padding: 0.45rem clamp(0.6rem, 1vw, 1.15rem) 0.45rem 0.55rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .header__cta-card {
    display: inline-flex;
  }
}

.header__cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.header__cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #002845;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header__cta-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.header__cta-badge {
  font-family: var(--font-heading);
  font-size: clamp(0.62rem, 0.75vw, 0.78rem);
  font-weight: 800;
  color: #0369a1; /* Contraste 5.93:1 sobre blanco (WCAG AA > 4.5:1) */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__cta-num {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.25vw, 1.25rem);
  font-weight: 800;
  color: #001f3f;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Breakpoints intermedios para garantizar cero recortes y cero desbordes */
@media (min-width: 1025px) and (max-width: 1280px) {
  .header__cta-badge {
    display: none;
  }
  .header__logo-card {
    padding: 0.4rem 0.65rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header__cta-text {
    display: none;
  }
  .header__cta-card {
    padding: 0.35rem;
    border-radius: 50%;
  }
  .header__logo-card {
    padding: 0.35rem 0.6rem;
  }
}

/* Botón Hamburguesa Móvil */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  z-index: 1001;
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menú Móvil Overlay Accesible */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 23, 31, 0.98);
  backdrop-filter: blur(16px);
  z-index: 1000;
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  visibility: hidden; /* Oculta interactivos al foco del teclado mientras esté cerrado */
  transform: translateX(100%);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.mobile-nav.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  display: block;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--color-accent-hover);
  padding-left: 0.5rem;
}

.mobile-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==============================================================================
   HERO SECTION: IMAGEN LCP EN HTML (NO EN CSS) + OVERLAY GRADIENT
   La imagen se mueve al HTML para que el browser la descubra y priorice temprano.
   El CSS solo define el overlay y el layout.
   ============================================================================== */
.hero {
  position: relative;
  background-color: #ffffff;
  padding-block: 3.5rem 4.5rem;
  min-height: 580px;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

/* Imagen LCP posicionada como fondo mediante position: absolute */
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  z-index: 0;
  /* GPU layer promotion: el browser decodifica la imagen en un thread separado,
     liberando el hilo principal para pintar el texto del H1 más rápido. */
  will-change: transform;
  /* Evita que esta img sea anunciada por lectores de pantalla (aria-hidden en HTML) */
}

@media (min-width: 1400px) {
  .hero__bg-img {
    object-position: 72% center;
  }
}

/* Overlay gradient adaptativo: ilumina y revela la fábrica y máquina real en pantallas anchas */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    rgba(255, 255, 255, 0.97) clamp(400px, 36vw, 560px),
    rgba(255, 255, 255, 0.85) clamp(520px, 44vw, 700px),
    rgba(255, 255, 255, 0.35) clamp(640px, 52vw, 840px),
    rgba(255, 255, 255, 0) clamp(760px, 60vw, 980px)
  );
}

@media (max-width: 991px) {
  .hero {
    background-image: none;
    padding-block: 2.5rem 3.5rem;
    min-height: 520px;
  }
  .hero__bg-img {
    object-position: center top;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.94) 60%,
      rgba(255, 255, 255, 0.8) 100%
    );
  }
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(100% - 2rem, 1560px);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 48px);
}

.hero__wrapper {
  max-width: clamp(620px, 46vw, 780px);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  text-align: left;
}

/* Badge Superior con Punto de Pulso */
.hero__badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: #e0f2fe;
  color: #0369a1; /* Contraste 5.16:1 sobre #e0f2fe (WCAG AA > 4.5:1) */
  border: 1px solid #bae6fd;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.08);
}

.hero__badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #00a8e8;
  box-shadow: 0 0 10px #00a8e8;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Encabezado Principal */
.hero__heading {
  margin: 0;
  line-height: 1.1;
}

.hero__heading-main {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 900;
  color: #00223a;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero__heading-sub {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 800;
  color: #0077b6;
  line-height: 1.15;
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
}

/* Subtítulo Destacado */
.hero__lead-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
}

/* Párrafo Descriptivo */
.hero__description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

/* Badges de Beneficios y Normas */
.hero__feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 0.35rem;
  min-height: 38px;
}

.hero__feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* Grupo de Botones de Conversión */
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn--hero-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.02rem;
  font-weight: 800;
  min-height: 52px;
  border-radius: var(--radius-pill);
}

.btn--call-primary {
  background-color: #002845;
  color: #ffffff;
  border: 1px solid #002845;
  box-shadow: 0 4px 14px rgba(0, 40, 69, 0.25);
}

.btn--call-primary:hover {
  background-color: #001f37;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 40, 69, 0.35);
  color: #ffffff;
}

/* Barra Inferior de Métricas */
.hero__trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 576px) {
  .hero__trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1400px) {
  .hero__trust-strip {
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .hero__trust-item {
    padding: 0.85rem 1.1rem;
  }
}

.hero__trust-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.hero__trust-item strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0077b6;
  line-height: 1.15;
}

.hero__trust-item span {
  font-size: 0.75rem;
  color: #475569; /* Contraste 5.90:1 sobre fondo claro (WCAG AA > 4.5:1) */
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ------------------------------------------------------------------------------
   9. PRODUCTO ESTRELLA: MALLA ESLABONADA TIPO CICLÓN
   ------------------------------------------------------------------------------ */
.star-product {
  position: relative;
}

.star-product__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 992px) {
  .star-product__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
  }
}

.star-product__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.star-product__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.star-product__media:hover img {
  transform: scale(1.03);
}

.star-product__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.star-product__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.star-product__specs {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-block: var(--space-sm);
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .specs-list {
    grid-template-columns: 1fr 1fr;
  }
}

.specs-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.specs-item svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-accent);
}

.benefits-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.benefit-pill {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ------------------------------------------------------------------------------
   10. PORTAFOLIO SECUNDARIO: TARJETAS DE PRODUCTOS
   ------------------------------------------------------------------------------ */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.product-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--color-primary-light);
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  margin-bottom: 0.5rem;
  font-size: var(--text-xl);
}

.product-card__desc {
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-card__features {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-card__feature {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-card__feature svg {
  color: var(--color-accent);
}

/* ------------------------------------------------------------------------------
   11. PROYECTOS, CONFIANZA Y DIFERENCIADORES
   ------------------------------------------------------------------------------ */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background-color: rgba(0, 34, 46, 0.65);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.trust-card__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 1rem;
  background-color: rgba(0, 126, 167, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
}

.trust-card__title {
  color: #ffffff;
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.trust-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-inverse-muted);
}

/* Sectores atendidos */
.sectors-wrap {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border-dark);
  text-align: center;
}

.sectors-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sector-pill {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ------------------------------------------------------------------------------
   12. UBICACIÓN, COBERTURA Y CONTACTO (LAYOUT GRID 2-COL + MAPA FULL-WIDTH)
   ------------------------------------------------------------------------------ */
.section__header--contact {
  max-width: 60ch;
  margin-inline: auto;
}

.section__header--contact .badge {
  font-size: 0.75rem;
}

.contact-section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  text-wrap: balance;
}

.contact-section-desc {
  text-wrap: balance;
}

/* Grid principal: fila 1 = datos + formulario (ambas tarjetas con altura y encaje perfecto), fila 2 = mapa a ancho completo */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Tarjeta de Datos de Contacto (columna izquierda) */
.contact-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: clamp(12px, 1.4vw, 16px);
  line-height: 1.25;
}

.contact-card__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: clamp(14px, 1.6vw, 18px);
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background-color: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.contact-item:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

.contact-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .contact-card__actions {
    grid-template-columns: 1fr;
  }
}

.contact-card__btn {
  height: 52px;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.contact-card__btn svg {
  flex-shrink: 0;
}

.contact-card__note {
  font-size: 0.75rem;
  color: #475569; /* Contraste 5.90:1 sobre fondo blanco (WCAG AA > 4.5:1) */
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.4;
  min-height: 18px;
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-accent-subtle);
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  display: block;
  line-height: 1.25;
}

.contact-item__val {
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.contact-item__val--highlight {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 800;
}

.contact-item__phone-link {
  color: #0369a1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-block: 2px;
}

.contact-item__phone-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.contact-item__mail-link {
  color: var(--color-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-item__mail-link:hover {
  color: var(--color-accent);
}

/* Formulario Express (columna derecha): armonizado en superficie, bordes y elevación */
.quote-form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  height: 100%;
}

.quote-form__title {
  margin-bottom: 0;
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.form-required {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

.form-optional {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-input,
.form-select {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--color-text);
  font-size: 16px; /* Previene zoom involuntario en iOS */
  line-height: 1.5;
  font-family: inherit;
  transition: border-color var(--transition-fast), outline-color var(--transition-fast);
}

.form-textarea {
  width: 100%;
  min-height: 72px;
  height: 72px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  resize: none;
  transition: border-color var(--transition-fast), outline-color var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #526071; /* Contraste accesible 6.4:1 sobre #ffffff (WCAG AA > 4.5:1) */
  font-size: 16px;
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 3px solid #007ea7;
  outline-offset: 2px;
  border-color: #007ea7;
}

/* Select con Flecha SVG Personalizada */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

/* Validación en línea */
.form-input--error {
  border-color: #dc2626 !important;
  background-color: #fffaf0;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.form-error.is-visible {
  display: block;
}

/* Botón de Envío WhatsApp */
.quote-form__submit-btn {
  height: 52px;
  min-height: 52px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.quote-form__submit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.quote-form__submit-btn:active {
  transform: scale(0.99);
}

.quote-form__wa-icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Mapa Horizontal a Ancho Completo (fila 2 del grid) */
.map-wrapper {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 3.5 / 1;
  min-height: 260px;
  max-height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  background: #e8eaed; /* Fondo gris claro mientras carga */
}

@media (max-width: 900px) {
  .map-wrapper {
    aspect-ratio: 4 / 3;
    min-height: 280px;
    max-height: none;
  }
  .map-wrapper iframe {
    pointer-events: none;
  }
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Píldora de Dirección sobre el Mapa */
.map-address-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  min-height: 44px;
  pointer-events: auto;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.map-address-pill:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.map-address-pill:focus-visible {
  outline: 3px solid var(--color-accent-hover);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .map-address-pill {
    font-size: 0.78rem;
    padding: 8px 12px;
    left: 8px;
    bottom: 80px; /* Separación del botón flotante de WhatsApp */
    min-height: 40px;
  }
}


/* ------------------------------------------------------------------------------
   13. FOOTER CORPORATIVO DE 4 COLUMNAS
   ------------------------------------------------------------------------------ */
.footer {
  background-color: #001017;
  color: var(--color-text-inverse-muted);
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-3xl);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: var(--space-3xl);
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-col__title {
  color: #ffffff;
  font-size: var(--text-lg);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.footer-col__desc {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #e2e8f0;
}

.footer p {
  color: #e2e8f0;
}

#current-year {
  color: #ffffff;
  font-weight: 600;
}

.footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer address a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--color-text-inverse-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-hover);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.5rem 2rem;
  font-size: var(--text-xs);
  color: #94a3b8;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding-right: var(--wa-safe-space, 460px);
}

.footer-bottom__copy {
  margin: 0;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.footer-bottom__copy strong {
  color: #ffffff;
}

@media (max-width: 1024px) {
  :root {
    --wa-safe-space: 120px;
  }
  .footer-bottom__inner {
    padding-right: var(--wa-safe-space, 120px);
  }
}

@media (max-width: 768px) {
  :root {
    --wa-safe-space: 0px;
  }
  .footer {
    /* Espacio extra en el fondo para que la barra móvil ni el botón circular tapen el contenido */
    padding-bottom: calc(var(--mobile-bar-height) + 1.5rem);
  }
  .footer-bottom {
    padding-bottom: 1.5rem;
  }
  .footer-bottom__inner {
    padding-right: 0;
    text-align: center;
    justify-content: center;
  }
  .footer-bottom__copy {
    text-align: center;
  }
}

/* ------------------------------------------------------------------------------
   14. COMPONENTES FLOTANTES CRO ULTRA-LLAMATIVOS
   ------------------------------------------------------------------------------ */

/* Widget Flotante de WhatsApp con Tarjeta de Llamada a la Acción */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

/* En móviles (< 768px) se oculta el botón flotante circular para priorizar la barra fija inferior 50/50 */
@media (max-width: 767px) {
  .whatsapp-widget {
    display: none !important;
  }
}

/* Tarjeta / Burbuja de Conversión en Vivo */
.whatsapp-widget__card {
  display: none;
  background: #ffffff;
  color: #0f172a;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xl);
  border: 1px solid #e2e8f0;
  align-items: center;
  gap: 0.6rem;
  animation: float-badge 3s ease-in-out infinite;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

/* En tablets y móviles (<= 1024px) ocultamos el globo "¿Cotización Inmediata?" */
@media (max-width: 1024px) {
  .whatsapp-widget__card {
    display: none !important;
  }
}

/* En pantallas grandes (>= 1025px) se muestra el globo */
@media (min-width: 1025px) {
  .whatsapp-widget__card {
    display: flex;
  }
}

/* Ocultar suavemente el globo al llegar al footer (clase añadida por JS) */
.whatsapp-widget__card--hidden {
  opacity: 0 !important;
  transform: translateX(20px) !important;
  pointer-events: none !important;
}

.online-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-online 1.8s infinite ease-in-out;
}

@keyframes pulse-online {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.whatsapp-widget__card strong {
  font-size: var(--text-xs);
  display: block;
  color: #0f172a;
  line-height: 1.2;
}

.whatsapp-widget__card span {
  font-size: 0.7rem;
  color: #475569; /* Contraste 5.90:1 sobre blanco (WCAG AA > 4.5:1) */
  display: block;
}

/* Botón Circular Principal con Doble Pulso Luminoso */
.whatsapp-float-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .whatsapp-float-btn {
    width: 56px;
    height: 56px;
  }
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  background-color: var(--color-whatsapp-hover);
  box-shadow: 0 8px 28px rgba(21, 128, 61, 0.6);
}

.whatsapp-float-btn__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(21, 128, 61, 0.6);
  opacity: 0.9;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.whatsapp-float-btn__pulse--second {
  animation-delay: 0.75s;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Barra Fija Inferior para Móviles (Bottom Mobile Bar 50/50) */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--mobile-bar-height);
  background-color: #001219;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 995;
  display: flex;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.5rem;
  height: 100%;
  text-align: center;
}

.mobile-bar__btn--call {
  background-color: var(--color-secondary);
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-bar__btn--call:active {
  background-color: var(--color-secondary-light);
}

.mobile-bar__btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
}

.mobile-bar__btn--whatsapp:active {
  background-color: var(--color-whatsapp-hover);
}

/* ------------------------------------------------------------------------------
   15. ACCESIBILIDAD Y PREFERENCIAS DEL SISTEMA
   ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .whatsapp-float-btn__pulse,
  .online-dot,
  .whatsapp-widget__card {
    animation: none !important;
  }
}

/* Estilos de Impresión */
@media print {
  .top-bar,
  .header,
  .whatsapp-widget,
  .mobile-bar,
  .quote-form,
  .btn,
  .hamburger {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding-bottom: 0 !important;
  }
  .section--dark {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .section--dark h2,
  .section--dark h3,
  .section--dark strong {
    color: #000000 !important;
  }
  .section--dark p {
    color: #333333 !important;
  }
}
