/* =====================================================================
   ASESORÍAS DAGA SST — Hoja de estilos principal
   /public_html/assets/css/styles.css
   ---------------------------------------------------------------------
   Índice
    01. Variables y tokens de diseño
    02. Reset y base
    03. Utilidades (container, section, botones, chips, iconos)
    04. Cabecera y navegación
    05. Hero
    06. Problema / necesidad
    07. ¿Qué necesita su empresa?
    08. Servicios principales
    09. Servicios complementarios
    10. Diagnóstico SST 360°
    11. Beneficios
    12. Proceso de trabajo
    13. Cobertura
    14. Sobre el profesional
    15. CTA final
    16. Contacto y formulario
    17. Footer
    18. Elementos flotantes (WhatsApp, volver arriba)
    19. Animaciones de aparición
    20. Responsive
    21. Accesibilidad y preferencias
   ===================================================================== */

/* =====================================================================
   01. VARIABLES Y TOKENS DE DISEÑO
   ===================================================================== */
:root {
    /* Azul corporativo */
    --blue-950: #041d47;
    --blue-900: #062a63;
    --blue-800: #0b3c8c;
    --blue-700: #1256b8;
    --blue-600: #1565d8;
    --blue-500: #2f80ed;
    --blue-200: #bfd5f7;
    --blue-100: #dbe7ff;
    --blue-50:  #eef4ff;

    /* Neutros */
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #f1f5f9;
    --ink-50:  #f8fafc;
    --white:   #ffffff;

    /* Acento de seguridad (uso moderado) */
    --amber-600: #d97706;
    --amber-500: #f5a524;
    --amber-400: #fbbf24;
    --amber-100: #fef3c7;

    /* Semánticos */
    --green-500: #25d366;
    --green-600: #1da851;
    --red-500:   #e11d48;

    /* Gradientes */
    --grad-blue: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
    --grad-deep: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-800) 55%, #0a4a9e 100%);
    --grad-accent: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
    --grad-soft: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);

    /* Radios */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 34px;
    --r-full: 999px;

    /* Sombras */
    --sh-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --sh-sm: 0 2px 6px rgba(15, 23, 42, .06), 0 8px 20px -12px rgba(15, 23, 42, .18);
    --sh-md: 0 10px 30px -12px rgba(11, 60, 140, .28), 0 2px 8px rgba(15, 23, 42, .05);
    --sh-lg: 0 28px 60px -26px rgba(11, 60, 140, .42), 0 6px 18px -10px rgba(15, 23, 42, .14);
    --sh-xl: 0 40px 90px -34px rgba(4, 29, 71, .5);

    /* Tipografía */
    --ff-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
    --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

    /* Medidas */
    --container: 1200px;
    --gutter: clamp(18px, 4vw, 32px);
    --section-y: clamp(68px, 8vw, 128px);
    --header-h: 78px;

    /* Movimiento */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur: .38s;
}

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

/* El atributo [hidden] siempre debe ocultar el elemento.
   Sin esta regla, cualquier display definido por clase (por ejemplo
   .to-top { display: inline-flex }) anula el comportamiento del atributo. */
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: clamp(15px, .45vw + 14px, 16.5px);
    line-height: 1.68;
    color: var(--ink-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--ff-head);
    color: var(--ink-900);
    line-height: 1.16;
    letter-spacing: -.02em;
    margin: 0 0 .55em;
    font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.85rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.08rem, 1.5vw, 1.32rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-600); }

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.icon { flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }

::selection { background: var(--blue-600); color: var(--white); }

/* Foco visible accesible */
:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -80px;
    transform: translateX(-50%);
    background: var(--blue-800);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    z-index: 999;
    transition: top .25s var(--ease);
    font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--white); }

.site-shell { position: relative; overflow: hidden; }

/* =====================================================================
   03. UTILIDADES
   ===================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { position: relative; padding: var(--section-y) 0; }

.section-head { max-width: 780px; margin: 0 auto clamp(38px, 5vw, 66px); text-align: center; }
.section-head-split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
}
.section-head-split > div { max-width: 660px; }
.section-head-dark .section-title { color: var(--white); }
.section-head-dark .section-subtitle { color: rgba(255, 255, 255, .74); }

.section-title { margin-bottom: .5rem; }
.section-title-sm { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.section-subtitle { color: var(--ink-600); font-size: 1.04rem; margin: 0; }

/* Antetítulo */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--ff-head);
    font-size: .755rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--blue-700);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    padding: 8px 16px;
    border-radius: var(--r-full);
    margin-bottom: 20px;
}
.eyebrow-light {
    color: var(--blue-100);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .18);
}

/* Botones */
.btn {
    --btn-bg: var(--blue-700);
    --btn-fg: var(--white);
    --btn-border: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    font-family: var(--ff-head);
    font-size: .93rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: var(--r-full);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform .75s var(--ease);
    z-index: -1;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn-primary   { --btn-bg: var(--blue-700); box-shadow: 0 10px 24px -14px rgba(18, 86, 184, .85); }
.btn-primary:hover { --btn-bg: var(--blue-600); }
.btn-accent    { --btn-bg: var(--grad-accent); color: #3b2606; box-shadow: 0 12px 26px -14px rgba(217, 119, 6, .8); }
.btn-accent:hover { color: #3b2606; }
.btn-whatsapp  { --btn-bg: var(--green-500); color: #06331b; box-shadow: 0 12px 26px -14px rgba(37, 211, 102, .9); }
.btn-whatsapp:hover { --btn-bg: var(--green-600); color: #ffffff; }
.btn-outline   { --btn-bg: transparent; --btn-fg: var(--blue-800); --btn-border: var(--blue-200); }
.btn-outline:hover { --btn-bg: var(--blue-50); }
.btn-ghost-light { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .2); }
.btn-soft { --btn-bg: var(--blue-50); --btn-fg: var(--blue-800); --btn-border: var(--blue-100); }
.btn-soft:hover { --btn-bg: var(--blue-100); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-list li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-full);
    font-size: .885rem;
    font-weight: 500;
    color: var(--ink-700);
    box-shadow: var(--sh-xs);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip-list li .icon { color: var(--blue-600); transition: color var(--dur) var(--ease); }
.chip-list li:hover {
    transform: translateY(-3px);
    border-color: var(--blue-200);
    box-shadow: var(--sh-sm);
    color: var(--blue-800);
}
.chip-list li:hover .icon { color: var(--amber-500); }

/* Tarjeta genérica */
.card {
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
}

/* Redes sociales */
.social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--white);
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.social-list a:hover { transform: translateY(-3px); background: var(--amber-500); color: #3b2606; }
.social-list-dark a {
    background: var(--blue-50);
    border-color: var(--blue-100);
    color: var(--blue-800);
}

/* =====================================================================
   04. CABECERA Y NAVEGACIÓN
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid transparent;
    transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .96);
    border-bottom-color: var(--ink-200);
    box-shadow: 0 10px 30px -22px rgba(15, 23, 42, .35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-900); }
.brand-logo { width: auto; height: 46px; object-fit: contain; }
.brand-mark { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark svg { flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.06; }
.brand-text strong {
    font-family: var(--ff-head);
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--blue-800);
}
.brand-text small {
    font-size: .66rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--ink-500);
    font-weight: 600;
}
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text small { color: rgba(255, 255, 255, .62); }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-700);
    border-radius: var(--r-full);
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--blue-800); background: var(--blue-50); }
.main-nav a:hover::after { width: 22px; }
.main-nav a.is-active { color: var(--blue-800); background: var(--blue-50); font-weight: 600; }
.main-nav a.is-active::after { width: 22px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    background: var(--white);
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.nav-toggle-bars i {
    display: block;
    height: 2px;
    background: var(--ink-800);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Panel del menú móvil.
   IMPORTANTE: este panel es hijo directo de <body>, no de la cabecera.
   La cabecera usa backdrop-filter, lo que la convierte en bloque
   contenedor de los elementos position: fixed; si el panel estuviera
   dentro, su altura se calcularía contra los 78 px de la cabecera y
   quedaría reducida a cero (solo se vería una franja del primer enlace).
   Como hijo de <body> ocupa toda la ventana y se dibuja sobre el hero. */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    /* Por debajo de la cabecera (120) para que el botón de cierre
       siga siempre visible y pulsable por encima del panel. */
    z-index: 118;
    background: rgba(255, 255, 255, .99);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 22px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.mobile-nav nav ul { display: grid; gap: 8px; }
.mobile-nav nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    font-family: var(--ff-head);
    font-weight: 600;
    color: var(--ink-800);
}
.mobile-nav nav a .icon { color: var(--ink-400); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.mobile-nav nav a:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.mobile-nav nav a:hover .icon { color: var(--blue-600); transform: translateX(3px); }

/* Aparición escalonada de los enlaces al abrir el menú. */
.mobile-nav.is-open nav li {
    animation: navItemIn .34s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes navItemIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.mobile-nav-footer { display: grid; gap: 12px; margin-top: 26px; }
.mobile-nav-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 0;
    color: var(--ink-600);
    font-size: .92rem;
}
.mobile-nav-contact .icon { color: var(--blue-600); }

/* Con el menú abierto se ocultan los elementos flotantes para que no
   queden por encima del panel. */
body.nav-open .whatsapp-float,
body.nav-open .to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =====================================================================
   05. HERO
   ===================================================================== */
.hero {
    position: relative;
    padding: clamp(52px, 7vw, 92px) 0 clamp(38px, 5vw, 60px);
    background: var(--grad-soft);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
}
.hero-blob-1 {
    width: 520px; height: 520px;
    top: -170px; right: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(47, 128, 237, .45), transparent 68%);
}
.hero-blob-2 {
    width: 420px; height: 420px;
    bottom: -180px; left: -140px;
    background: radial-gradient(circle at 60% 40%, rgba(245, 165, 36, .26), transparent 66%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 60, 140, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 60, 140, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
}
.hero-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(11, 60, 140, .22), transparent);
}
.hero-line-1 { top: 24%; left: -10%; width: 60%; transform: rotate(-6deg); }

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 4.5vw, 66px);
    align-items: center;
}

.hero-title { margin-bottom: .35em; }
.hero-title::after {
    content: "";
    display: block;
    width: 92px;
    height: 5px;
    margin-top: 22px;
    border-radius: 4px;
    background: var(--grad-accent);
}
.hero-subtitle {
    font-family: var(--ff-head);
    font-size: clamp(1.06rem, 1.5vw, 1.32rem);
    font-weight: 600;
    color: var(--blue-800);
    margin-bottom: .6em;
}
.hero-text { color: var(--ink-600); font-size: 1.03rem; max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-full);
    font-size: .855rem;
    color: var(--ink-600);
    box-shadow: var(--sh-xs);
}
.hero-location .icon { color: var(--blue-600); }

/* Visual del hero */
.hero-visual { position: relative; }
.hero-figure {
    position: relative;
    border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 90px;
    overflow: hidden;
    box-shadow: var(--sh-xl);
    aspect-ratio: 4 / 3.15;
    background: var(--blue-100);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(4, 29, 71, 0) 40%, rgba(4, 29, 71, .55) 100%);
}
.hero-figure-caption {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--r-full);
    color: var(--white);
    font-size: .82rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 19px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    backdrop-filter: blur(10px);
    animation: floaty 6s ease-in-out infinite;
}
.hero-float strong { display: block; font-family: var(--ff-head); font-size: .93rem; color: var(--ink-900); }
.hero-float small { display: block; font-size: .78rem; color: var(--ink-500); line-height: 1.4; }
.hero-float-a { top: 8%; left: -6%; max-width: 258px; }
.hero-float-b {
    bottom: 9%;
    right: -4%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    animation-delay: 1.4s;
}
.hero-float-value { font-family: var(--ff-head); font-size: 1.65rem; color: var(--blue-700); line-height: 1; }
.hero-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--blue-50);
    color: var(--blue-700);
    flex: 0 0 auto;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Indicadores */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: clamp(30px, 4vw, 48px);
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    overflow: hidden;
}
.hero-stats li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    border-right: 1px solid var(--ink-200);
}
.hero-stats li:last-child { border-right: 0; }
.hero-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-700);
    flex: 0 0 auto;
}
.hero-stat-body strong {
    display: block;
    font-family: var(--ff-head);
    font-size: 1.5rem;
    color: var(--ink-900);
    line-height: 1.1;
}
.hero-stat-body small { display: block; font-size: .82rem; color: var(--ink-500); line-height: 1.4; }

/* =====================================================================
   06. PROBLEMA / NECESIDAD
   ===================================================================== */
.problem {
    background: var(--grad-deep);
    color: rgba(255, 255, 255, .8);
    overflow: hidden;
}
.problem-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(47, 128, 237, .35), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(245, 165, 36, .16), transparent 42%);
    pointer-events: none;
}
.problem .container { position: relative; }
.problem .section-title { color: var(--white); }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.problem-card {
    position: relative;
    padding: 30px 26px 28px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-lg);
    backdrop-filter: blur(6px);
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.problem-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(245, 165, 36, .45);
}
.problem-index {
    display: block;
    font-family: var(--ff-head);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .17);
    margin-bottom: 14px;
}
.problem-card h3 { color: var(--white); margin-bottom: .45em; }
.problem-card p { font-size: .925rem; margin: 0; color: rgba(255, 255, 255, .72); }

.problem-closing {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 780px;
    margin: clamp(34px, 4vw, 52px) auto 0;
    padding: 20px 26px;
    background: rgba(245, 165, 36, .1);
    border: 1px solid rgba(245, 165, 36, .3);
    border-radius: var(--r-md);
    color: var(--white);
    font-family: var(--ff-head);
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
}
.problem-closing .icon { color: var(--amber-400); flex: 0 0 auto; }

/* =====================================================================
   07. ¿QUÉ NECESITA SU EMPRESA?
   ===================================================================== */
.needs { background: var(--white); }

.needs-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.need-card {
    position: relative;
    padding: 30px 28px 34px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.need-card::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 100%;
    height: 3px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}
.need-card:hover {
    transform: translateY(-6px);
    background: var(--white);
    border-color: var(--blue-100);
    box-shadow: var(--sh-lg);
}
.need-card:hover::before { transform: scaleX(1); }

/* Distribución asimétrica (evita la sensación de cuadrícula) */
.need-card-1 { grid-column: span 5; }
.need-card-2 { grid-column: span 4; }
.need-card-3 { grid-column: span 3; }
.need-card-4 { grid-column: span 3; }
.need-card-5 { grid-column: span 4; }
.need-card-6 { grid-column: span 5; }

.need-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.need-number {
    font-family: var(--ff-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-100);
    letter-spacing: -.02em;
}
.need-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--white);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
    box-shadow: var(--sh-xs);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}
.need-card:hover .need-icon { background: var(--blue-700); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.need-card h3 { margin-bottom: .5em; }
.need-card p { font-size: .93rem; color: var(--ink-600); margin: 0; }
.need-rule {
    position: absolute;
    right: 28px;
    bottom: 26px;
    width: 34px;
    height: 2px;
    background: var(--ink-200);
    border-radius: 2px;
}

/* =====================================================================
   08. SERVICIOS PRINCIPALES
   ===================================================================== */
.services { background: var(--ink-50); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}
.service-card {
    grid-column: span 3;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.service-card-lg { grid-column: span 6; }
.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--blue-200);
    box-shadow: var(--sh-lg);
}
.service-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--blue-100);
}
.service-card-lg .service-media { aspect-ratio: 16 / 8.2; }
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 29, 71, .1) 0%, rgba(4, 29, 71, .55) 100%);
}

.service-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 26px 28px;
}
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.service-number {
    font-family: var(--ff-head);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--blue-700);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    padding: 6px 13px;
    border-radius: var(--r-full);
}
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    color: var(--blue-700);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.service-card:hover .service-icon {
    background: var(--grad-blue);
    border-color: transparent;
    color: var(--white);
}
.service-card h3 { margin-bottom: .5em; font-size: clamp(1.06rem, 1.3vw, 1.24rem); }
.service-card p { font-size: .925rem; color: var(--ink-600); flex: 1; }

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--ff-head);
    font-size: .875rem;
    font-weight: 600;
    color: var(--blue-700);
}
.service-cta .icon { transition: transform var(--dur) var(--ease); }
.service-cta:hover .icon { transform: translateX(5px); }

/* =====================================================================
   09. SERVICIOS COMPLEMENTARIOS
   ===================================================================== */
.complementary { background: var(--white); padding-top: clamp(48px, 6vw, 86px); }
.complementary-inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
    padding: clamp(30px, 4vw, 52px);
    background: var(--grad-soft);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
}
.complementary-copy .section-subtitle { max-width: 46ch; }

/* =====================================================================
   10. DIAGNÓSTICO SST 360°
   ===================================================================== */
.diagnostic {
    background: var(--grad-deep);
    color: rgba(255, 255, 255, .82);
    overflow: hidden;
}
.diagnostic-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 78% 22%, rgba(47, 128, 237, .38), transparent 44%),
        radial-gradient(circle at 10% 88%, rgba(245, 165, 36, .18), transparent 42%);
    pointer-events: none;
}
.diagnostic-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(34px, 4.5vw, 70px);
    align-items: center;
}
.diagnostic-visual { position: relative; display: flex; align-items: center; justify-content: center; }

.diag-ring { position: relative; width: min(340px, 78%); aspect-ratio: 1; }
.diag-ring svg { width: 100%; height: 100%; }
.diag-ring-progress { animation: dashSpin 22s linear infinite; transform-origin: center; }
@keyframes dashSpin {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -1173; }
}
.diag-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}
.diag-ring-center strong {
    font-family: var(--ff-head);
    font-size: clamp(2.6rem, 5vw, 4.1rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -.04em;
}
.diag-ring-center small {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber-400);
    font-weight: 700;
}

.diagnostic-figure {
    position: absolute;
    right: -4%;
    bottom: -8%;
    width: 52%;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .16);
    box-shadow: var(--sh-xl);
}
.diagnostic-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.diagnostic-title {
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: .35em;
}
.diagnostic-question {
    font-family: var(--ff-head);
    font-size: clamp(1.06rem, 1.6vw, 1.32rem);
    font-weight: 600;
    color: var(--amber-400);
    margin-bottom: .7em;
}
.diagnostic-text { font-size: 1.03rem; max-width: 58ch; }

.diagnostic-list-title {
    margin: 30px 0 14px;
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.diagnostic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
    margin-bottom: 28px;
}
.diagnostic-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .925rem;
    color: rgba(255, 255, 255, .86);
}
.diagnostic-list .icon { color: var(--amber-400); margin-top: 3px; }

.diagnostic-highlight {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-left: 3px solid var(--amber-500);
    border-radius: var(--r-md);
    color: var(--white);
    font-family: var(--ff-head);
    font-weight: 600;
    font-size: .98rem;
}
.diagnostic-highlight .icon { color: var(--amber-400); flex: 0 0 auto; }

.diagnostic-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* =====================================================================
   11. BENEFICIOS
   ===================================================================== */
.benefits { background: var(--white); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.benefit-card {
    grid-column: span 3;
    padding: 30px 28px;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-200);
    box-shadow: var(--sh-lg);
}
.benefit-card-featured {
    grid-column: span 6;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    background: var(--grad-soft);
    border-color: var(--blue-100);
}
.benefit-card-featured h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.benefit-card-featured p { font-size: 1rem; }
.benefit-card-featured .benefit-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--grad-blue);
    color: var(--white);
    border-color: transparent;
}
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-700);
    transition: transform var(--dur) var(--ease);
}
.benefit-card:hover .benefit-icon { transform: translateY(-3px) rotate(-5deg); }
.benefit-card h3 { margin-bottom: .45em; }
.benefit-card p { font-size: .93rem; color: var(--ink-600); margin: 0; }

.benefits-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(32px, 4vw, 50px);
    padding: 24px 30px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
}
.benefits-cta p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--ff-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink-900);
}
.benefits-cta .icon { color: var(--blue-600); }

/* =====================================================================
   12. PROCESO DE TRABAJO
   ===================================================================== */
.process { background: var(--ink-50); }

.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    counter-reset: none;
}
.process-track::before {
    content: "";
    position: absolute;
    top: 29px;
    left: 3%;
    right: 3%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-200), var(--amber-400), var(--blue-200));
    opacity: .55;
}
.process-step { position: relative; text-align: center; }
.process-node {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--blue-200);
    box-shadow: var(--sh-sm);
    z-index: 2;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
                background-color var(--dur) var(--ease);
}
.process-icon { display: inline-flex; color: var(--blue-700); transition: color var(--dur) var(--ease); }
.process-step:hover .process-node {
    transform: translateY(-5px) scale(1.06);
    border-color: var(--amber-500);
    background: var(--grad-blue);
}
.process-step:hover .process-icon { color: var(--white); }
.process-number {
    display: block;
    font-family: var(--ff-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--amber-600);
    margin-bottom: 6px;
}
.process-body h3 { font-size: 1.03rem; margin-bottom: .45em; }
.process-body p { font-size: .875rem; color: var(--ink-600); margin: 0; }

/* =====================================================================
   13. COBERTURA
   ===================================================================== */
.coverage { background: var(--white); }

.coverage-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 4.5vw, 66px);
    align-items: center;
}
.coverage-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 28px;
}
.coverage-cities li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-full);
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-700);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
                background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.coverage-cities li .icon { color: var(--blue-600); }
.coverage-cities li:hover { transform: translateY(-3px); border-color: var(--blue-200); color: var(--blue-800); }
.coverage-cities li.is-primary {
    background: var(--grad-blue);
    border-color: transparent;
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--sh-md);
}
.coverage-cities li.is-primary .icon { color: var(--amber-400); }

.coverage-notes { display: grid; gap: 12px; margin-bottom: 26px; }
.coverage-note, .coverage-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: .93rem;
    color: var(--ink-600);
}
.coverage-note .icon, .coverage-address .icon { color: var(--blue-600); margin-top: 4px; flex: 0 0 auto; }
.coverage-address strong { color: var(--ink-900); font-family: var(--ff-head); }

.coverage-visual { position: relative; }
.map-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--ink-200);
    box-shadow: var(--sh-md);
    background: var(--ink-100);
    aspect-ratio: 4 / 3.4;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.coverage-figure {
    position: absolute;
    left: -6%;
    bottom: -8%;
    width: 46%;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--sh-lg);
}
.coverage-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* =====================================================================
   14. SOBRE EL PROFESIONAL
   ===================================================================== */
.professional { background: var(--ink-50); }

.professional-inner {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(34px, 4.5vw, 70px);
    align-items: center;
}
.professional-visual { position: relative; }
.professional-frame {
    position: relative;
    border-radius: var(--r-xl) 90px var(--r-xl) var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-xl);
    aspect-ratio: 4 / 4.6;
    background: var(--blue-100);
}
.professional-frame img { width: 100%; height: 100%; object-fit: cover; }
.professional-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(4, 29, 71, 0) 45%, rgba(4, 29, 71, .5) 100%);
}
.professional-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--blue-200);
}
.professional-badge {
    position: absolute;
    right: -5%;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 20px;
    max-width: 78%;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    backdrop-filter: blur(8px);
}
.professional-badge strong { display: block; font-family: var(--ff-head); font-size: .96rem; color: var(--ink-900); }
.professional-badge small { display: block; font-size: .78rem; color: var(--ink-500); line-height: 1.4; }
.professional-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--blue-50);
    color: var(--blue-700);
    flex: 0 0 auto;
}

.professional-name {
    font-family: var(--ff-head);
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
    font-weight: 700;
    color: var(--blue-800);
    margin: 14px 0 2px;
}
.professional-role {
    font-size: .93rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: 18px;
}
.professional-block { margin-top: 30px; }
.professional-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 16px;
}
.professional-block h3 .icon { color: var(--blue-600); }
.professional-list { display: grid; gap: 14px; }
.professional-list li { display: flex; align-items: flex-start; gap: 12px; }
.professional-list .icon { color: var(--blue-600); margin-top: 3px; flex: 0 0 auto; }
.professional-list strong { display: block; color: var(--ink-900); font-family: var(--ff-head); font-size: .95rem; }
.professional-list small { display: block; font-size: .875rem; color: var(--ink-600); line-height: 1.55; }
.professional-certs { display: flex; flex-wrap: wrap; gap: 10px; }
.professional-certs li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-full);
    font-size: .855rem;
    color: var(--ink-700);
    box-shadow: var(--sh-xs);
}
.professional-certs .icon { color: var(--amber-500); }

/* =====================================================================
   15. CTA FINAL
   ===================================================================== */
.cta-final {
    position: relative;
    padding: clamp(76px, 9vw, 132px) 0;
    overflow: hidden;
    background: var(--blue-950);
}
.cta-final-bg { position: absolute; inset: 0; }
.cta-final-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 29, 71, .93) 0%, rgba(11, 60, 140, .86) 55%, rgba(4, 29, 71, .92) 100%);
}
.cta-final-inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.cta-final-title { color: var(--white); margin-bottom: .4em; }
.cta-final-text { color: rgba(255, 255, 255, .8); font-size: 1.06rem; max-width: 60ch; margin: 0 auto 32px; }
.cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-final-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    font-family: var(--ff-head);
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}
.cta-final-phone .icon { color: var(--amber-400); }
.cta-final-phone a { color: var(--white); }
.cta-final-phone a:hover { color: var(--amber-400); }

/* =====================================================================
   16. CONTACTO Y FORMULARIO
   ===================================================================== */
.contact { background: var(--white); }

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    gap: clamp(26px, 3.5vw, 46px);
    align-items: start;
}

.form-card { padding: clamp(26px, 3.4vw, 42px); }
.form-card-head { margin-bottom: 26px; }
.form-card-head h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .35em; }
.form-card-head p { color: var(--ink-600); font-size: .95rem; margin: 0; }

.form-alert {
    padding: 15px 18px;
    border-radius: var(--r-sm);
    font-size: .92rem;
    margin-bottom: 22px;
    border: 1px solid transparent;
}
.form-alert.is-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.form-alert.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label {
    font-size: .855rem;
    font-weight: 600;
    color: var(--ink-800);
    font-family: var(--ff-head);
}
.req { color: var(--red-500); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    color: var(--ink-900);
    font-size: .94rem;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    appearance: none;
}
.form-field select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
}
.form-field textarea { resize: vertical; min-height: 118px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-400); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, .14);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: var(--red-500);
    background: #fff7f8;
}
.field-error {
    font-size: .8rem;
    color: var(--red-500);
    min-height: 0;
    font-weight: 500;
}
.field-error:empty { display: none; }

.form-consent .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    font-size: .875rem;
    color: var(--ink-600);
}
.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--blue-700);
    border-radius: 5px;
    cursor: pointer;
}

.form-actions { display: grid; gap: 12px; margin-top: 6px; }
.form-privacy {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 0;
    font-size: .8rem;
    color: var(--ink-500);
}
.form-privacy .icon { color: var(--blue-600); }
.is-submitting { opacity: .72; pointer-events: none; }

/* Columna lateral de contacto */
.contact-aside { display: grid; gap: 20px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    box-shadow: var(--sh-xs);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--blue-200); box-shadow: var(--sh-sm); }
.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-700);
    flex: 0 0 auto;
}
.contact-card-icon-wa { background: #e7f9ee; color: var(--green-600); }
.contact-card small {
    display: block;
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-500);
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-card a, .contact-card span {
    font-family: var(--ff-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-900);
    line-height: 1.45;
}
.contact-card a:hover { color: var(--blue-700); }

.contact-social {
    padding: 20px 22px;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
}
.contact-social h3 { font-size: .95rem; margin-bottom: 14px; }

.contact-cta {
    padding: 24px 24px 26px;
    background: var(--grad-deep);
    border-radius: var(--r-lg);
    color: rgba(255, 255, 255, .82);
    box-shadow: var(--sh-lg);
}
.contact-cta h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: .6em;
}
.contact-cta h3 .icon { color: var(--amber-400); }
.contact-cta p { font-size: .92rem; margin-bottom: 18px; }

/* =====================================================================
   17. FOOTER
   ===================================================================== */
.site-footer {
    position: relative;
    background: var(--blue-950);
    color: rgba(255, 255, 255, .72);
    overflow: hidden;
}
.footer-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    width: 900px;
    height: 400px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(47, 128, 237, .28), transparent 68%);
    pointer-events: none;
}
.footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.35fr;
    gap: clamp(26px, 3.4vw, 48px);
    padding: clamp(52px, 6vw, 82px) 0 clamp(36px, 4vw, 52px);
}
.footer-brand { max-width: 380px; }
.footer-description { margin: 20px 0 22px; font-size: .91rem; line-height: 1.7; }
.footer-title {
    font-size: .78rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: .9rem; color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: var(--amber-400); padding-left: 4px; }
.footer-contact { display: grid; gap: 13px; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: .9rem;
    line-height: 1.55;
}
.footer-contact .icon { color: var(--amber-400); margin-top: 3px; flex: 0 0 auto; }
.footer-contact a { color: rgba(255, 255, 255, .8); }
.footer-contact a:hover { color: var(--amber-400); }

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 0;
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-meta { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .55); }
.footer-meta .icon { color: var(--amber-400); }

/* =====================================================================
   18. ELEMENTOS FLOTANTES
   ===================================================================== */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 140;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    background: var(--green-500);
    color: #06331b;
    border-radius: var(--r-full);
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 16px 34px -14px rgba(37, 211, 102, .95), 0 4px 12px rgba(6, 51, 27, .18);
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
                opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid rgba(37, 211, 102, .45);
    animation: waPulse 2.6s ease-out infinite;
    pointer-events: none;
}
@keyframes waPulse {
    0%   { transform: scale(.92); opacity: .85; }
    70%  { transform: scale(1.14); opacity: 0; }
    100% { transform: scale(1.14); opacity: 0; }
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.03); background: var(--green-600); color: #ffffff; }
.whatsapp-float-icon { display: inline-flex; }
.whatsapp-float-text { white-space: nowrap; }
.whatsapp-float-hover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    padding: 9px 15px;
    background: var(--blue-900);
    color: var(--white);
    border-radius: var(--r-sm);
    font-size: .82rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    box-shadow: var(--sh-md);
}
.whatsapp-float-hover::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 26px;
    border: 6px solid transparent;
    border-top-color: var(--blue-900);
}
.whatsapp-float:hover .whatsapp-float-hover { opacity: 1; transform: translateY(0); }

.to-top {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: 50%;
    color: var(--blue-800);
    box-shadow: var(--sh-md);
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
                color var(--dur) var(--ease), opacity var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
}
/* Solo se muestra cuando la clase .is-visible está presente (scroll). */
.to-top.is-visible { display: inline-flex; }
.to-top:hover { transform: translateY(-4px); background: var(--blue-700); color: var(--white); }

/* =====================================================================
   19. ANIMACIONES DE APARICIÓN
   ===================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =====================================================================
   20. RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
    .hero-float-a { left: -2%; }
    .hero-float-b { right: 0; }
    .coverage-figure { left: 0; }
    .professional-badge { right: 0; }
}

@media (max-width: 1080px) {
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-nav { display: block; }
    .header-wa { display: none; }

    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 620px; }
    .hero-float-a { left: auto; right: 4%; top: 4%; }
    .hero-float-b { right: 6%; bottom: 4%; }

    .problem-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid .service-card { grid-column: span 6; }
    .services-grid .service-card-lg { grid-column: span 6; }

    .diagnostic-inner { grid-template-columns: 1fr; gap: 48px; }
    .diagnostic-visual { max-width: 520px; margin: 0 auto; }
    .diagnostic-figure { right: 0; bottom: -6%; width: 46%; }

    .process-track { grid-template-columns: repeat(3, 1fr); gap: 32px 18px; }
    .process-track::before { display: none; }

    .coverage-inner,
    .professional-inner,
    .complementary-inner,
    .contact-inner { grid-template-columns: 1fr; }

    .complementary-inner { gap: 30px; }
    .coverage-visual { max-width: 620px; }
    .coverage-figure { left: auto; right: 0; }
    .professional-visual { max-width: 460px; margin: 0 auto; }
    .benefits-grid .benefit-card { grid-column: span 3; }

    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { max-width: none; }
}

@media (max-width: 900px) {
    :root { --header-h: 70px; }

    .section-head-split { flex-direction: column; align-items: flex-start; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats li { border-right: 0; border-bottom: 1px solid var(--ink-200); }
    .hero-stats li:last-child { border-bottom: 0; }

    .needs-grid { grid-template-columns: repeat(2, 1fr); }
    .need-card-1, .need-card-2, .need-card-3,
    .need-card-4, .need-card-5, .need-card-6 { grid-column: span 1; }

    .benefit-card-featured {
        grid-column: span 6;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .benefit-card { grid-column: span 3; }
    .benefits-cta { flex-direction: column; align-items: flex-start; }
}

/* Teléfonos: la cabecera queda solo con el logotipo y el botón de menú.
   El botón "Solicitar diagnóstico" se conserva dentro del panel del menú,
   y en tablet (768 px o más) y escritorio sigue visible en la cabecera. */
@media (max-width: 767px) {
    .header-cta { display: none; }
}

@media (max-width: 720px) {
    .problem-grid { grid-template-columns: 1fr; }
    .services-grid .service-card,
    .services-grid .service-card-lg { grid-column: span 12; }
    .services-grid .service-card-lg .service-media { aspect-ratio: 16 / 10; }

    .process-track { grid-template-columns: 1fr; gap: 0; }
    .process-step {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 0 18px;
        text-align: left;
        padding-bottom: 30px;
        position: relative;
    }
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 28px;
        top: 58px;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--blue-200), transparent);
    }
    .process-node { margin-bottom: 0; grid-row: span 2; }
    .process-body { grid-column: 2; padding-top: 6px; }
    .process-number { text-align: left; }

    .diagnostic-list { grid-template-columns: 1fr; }
    .diagnostic-figure { position: static; width: 100%; margin-top: 26px; }
    .diag-ring { width: min(280px, 84%); }

    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

    .whatsapp-float { right: 16px; bottom: 16px; padding: 12px; }
    .whatsapp-float-text { display: none; }
    .whatsapp-float-icon svg { width: 28px; height: 28px; }
    .whatsapp-float-hover { right: -2px; }
    .to-top { right: 18px; bottom: 84px; width: 42px; height: 42px; }
}

@media (max-width: 560px) {
    .hero { padding-top: 40px; }
    .hero-actions .btn { width: 100%; }
    .hero-float { padding: 12px 15px; }
    .hero-float-a { position: static; margin-top: 16px; max-width: none; }
    .hero-float-b { display: none; }
    .hero-location { width: 100%; }

    .needs-grid { grid-template-columns: 1fr; }
    .benefit-card,
    .benefit-card-featured { grid-column: span 6; }
    .benefits-cta { padding: 20px; }
    .benefits-cta .btn { width: 100%; }

    .coverage-figure { position: static; width: 100%; margin-top: 18px; }
    .professional-badge { position: static; max-width: none; margin-top: 18px; }
    .professional-frame { aspect-ratio: 4 / 4; }

    .cta-final-actions .btn { width: 100%; }
    .diag-ring-center strong { font-size: 2.5rem; }

    .chip-list li { font-size: .83rem; padding: 10px 15px; }
}

/* =====================================================================
   21. ACCESIBILIDAD Y PREFERENCIAS
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-header, .whatsapp-float, .to-top, .mobile-nav, .hero-bg, .cta-final-bg { display: none !important; }
    body { color: #000; }
    .section { padding: 24px 0; break-inside: avoid; }
}

/* =====================================================================
   PANTALLA DE INSTALACIÓN
   ===================================================================== */
.setup-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--grad-deep);
    padding: 32px 20px;
}
.setup-card {
    width: 100%;
    max-width: 620px;
    padding: clamp(28px, 4vw, 46px);
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xl);
}
.setup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--blue-50);
    color: var(--blue-700);
    margin-bottom: 20px;
}
.setup-card h1 { font-size: 1.6rem; margin-bottom: .5em; }
.setup-card ol, .setup-card ul { margin: 0 0 18px 1.15em; }
.setup-card ol { list-style: decimal; }
.setup-card ul { list-style: disc; }
.setup-card li { margin-bottom: 9px; color: var(--ink-600); }
.setup-card code {
    background: var(--ink-100);
    border: 1px solid var(--ink-200);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: .87em;
    color: var(--blue-800);
}
.setup-note { font-size: .87rem; color: var(--ink-500); margin: 0; }
