/* ============================================================
   SOLMI IMPERMEABILIZANTE — Diseño Premium
   ============================================================ */

@font-face {
    font-family: "Roboto";
    src: url("./assets/fonts/roboto-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /* Marca Solmi (mismos valores que el video de lanzamiento) */
    --azul: #007DBC;
    --azul-oscuro: #005480;
    --azul-hondo: #004A72;
    --tinta: #0B2A3F;
    --tinta-suave: #3D5568;
    --blanco: #F5F8FB;
    --blanco-2: #E3ECF4;
    --celeste: #8CCBEB;

    --ink: #0a1c24;
    --ink-2: #102832;
    --ink-3: #173743;
    --paper: #f0f4f2;
    --paper-2: #e2e8e5;
    --white: #ffffff;
    
    /* Azul corporativo Solmi */
    --accent: #0078C8;
    --accent-dark: #005a96;
    
    --text: #102129;
    --text-soft: #5c6869;
    --text-inv: #f3f7f5;
    --text-inv-soft: rgba(243, 247, 245, 0.68);

    --line: rgba(10, 28, 36, 0.12);
    --line-inv: rgba(243, 247, 245, 0.14);

    --font-display: "Roboto", system-ui, sans-serif;
    --font-body: "Roboto", system-ui, sans-serif;

    --radius-m: 18px;
    --radius-l: 28px;

    /* Layered shadows (Emil Kowalski style) */
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.02), 0 10px 20px rgba(0,0,0,0.04);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.04), 0 20px 40px rgba(0,0,0,0.08);
    --shadow-accent: 0 8px 16px rgba(0, 120, 200, 0.25), 0 16px 32px rgba(0, 120, 200, 0.15);
    --shadow-accent-hover: 0 12px 24px rgba(0, 120, 200, 0.35), 0 24px 48px rgba(0, 120, 200, 0.25);

    --nav-h: 80px;
    /* Apple-like spring cubic-bezier */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--tinta);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 140px 0; }

/* Scroll Reveals (Apple/Emil style fade + transform) */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Tipografía */

.lead {
    font-size: 1.15rem;
    color: var(--tinta);
    max-width: 60ch;
    margin-top: 20px;
    letter-spacing: -0.01em;
}

/* Botones con micro-interacciones (Emil Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
}
.btn:active {
    transform: scale(0.96) translateY(0);
}
.btn svg { width: 20px; height: 20px; }

/* MENÚ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    z-index: 100;
    color: var(--tinta);
    transition: background-color 0.4s, box-shadow 0.4s;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; }
.nav .logo { height: 44px; width: auto; }  /* logo sello con «Impermeabilización elástica» arriba de SOLMI (2026-10-19) */
.nav-links { display: flex; gap: 32px; align-items: center; font-weight: 400; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--tinta); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--azul); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.nav.scrolled {
    background: rgba(245, 248, 251, 0.86);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 1px 0 rgba(11, 42, 63, 0.08);
}
.burger {
    display: none;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--white);
    color: var(--tinta);
    box-shadow: 0 4px 14px rgba(0, 40, 70, 0.1);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.burger path { transition: transform 0.3s var(--ease), opacity 0.2s; transform-origin: 12px 12px; }
.menu-open .burger .l1 { transform: translateY(5px) rotate(45deg); }
.menu-open .burger .l2 { opacity: 0; }
.menu-open .burger .l3 { transform: translateY(-5px) rotate(-45deg); }

/* Botones de marca */
.btn-main {
    background: var(--azul);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(0, 125, 188, 0.32);
}
.btn-main:hover { background: var(--azul-oscuro); transform: translateY(-2px); }
.btn-line {
    border: 1.5px solid rgba(0, 125, 188, 0.4);
    color: var(--azul);
}
.btn-line:hover { border-color: var(--azul); background: rgba(0, 125, 188, 0.06); }
.wa-ico { fill: currentColor; }

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(120% 90% at 30% 20%, var(--white) 0%, var(--blanco) 55%, var(--blanco-2) 100%);
    color: var(--tinta);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    padding-top: 110px;
    padding-bottom: 48px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.6vw, 82px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-top: 20px;
    text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--azul); }
.hero-sub {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    max-width: 44ch;
    margin-top: 24px;
    color: var(--tinta);
}
.hero-sub strong { color: var(--tinta); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 40px;
    margin-top: 52px;
}
.hero-facts dt { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--tinta); }
.hero-facts dd { font-size: 14px; line-height: 1.35; margin-top: 8px; max-width: 18ch; color: var(--tinta); }

.hero-visual {
    position: relative;
    height: min(78vh, 720px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-circle {
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: min(88%, 560px);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 35% 30%, var(--azul) 0%, var(--azul-oscuro) 80%);
}
.hero-circle::after {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 2px solid rgba(0, 125, 188, 0.18);
}
.hero-visual img {
    position: relative;
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 30px rgba(0, 50, 80, 0.25));
}
.chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--white);
    color: var(--tinta);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0, 40, 70, 0.14);
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--azul); flex: none; }
.chip.c1 { left: 0; top: 30%; }
.chip.c2 { right: 0; top: 52%; }
.chip.c3 { left: 6%; bottom: 14%; }

/* Entrada del hero */
.hero-copy > *, .hero-visual img, .hero-circle, .chip { animation: heroIn 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.hero-copy > :nth-child(5) { animation-delay: 0.3s; }
.hero-circle { animation-name: circleIn; animation-duration: 1.1s; }
.hero-visual img { animation-delay: 0.12s; }
@media (max-width: 860px) { .hero-visual img { animation-name: heroInCentered; } }
@keyframes heroInCentered { from { opacity: 0; transform: translate(-50%, 18px); } }
.chip.c1 { animation-delay: 0.5s; }
.chip.c2 { animation-delay: 0.62s; }
.chip.c3 { animation-delay: 0.74s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes circleIn { from { opacity: 0; transform: translateX(-50%) scale(0.9); } }

@media (max-width: 860px) {
    :root { --nav-h: 68px; }
    .container { padding: 0 20px; }
    .nav .logo { height: 36px; }
    .burger { display: flex; }
    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px; right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border-radius: 20px;
        background: var(--white);
        box-shadow: 0 20px 50px rgba(0, 40, 70, 0.18);
        font-size: 17px;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }
    .nav-links a:not(.btn) { padding: 14px 12px; border-radius: 12px; color: var(--tinta); }
    .nav-links .btn { margin-top: 6px; padding: 16px; font-size: 16px; }
    .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }

    .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 80px; padding-bottom: 32px; }
    .hero-visual { order: -1; height: 242px; margin-bottom: 4px; overflow: hidden; }
    .hero-circle { width: 222px; bottom: 0; }
    /* En el celular, de la cintura para arriba: más grande y con fundido abajo */
    .hero-visual img {
        position: absolute;
        top: 4px;
        left: 50%;
        height: 500px;
        transform: translateX(-50%);
        -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    }
    .chip { font-size: 12px; padding: 9px 12px; gap: 8px; }
    .chip i { width: 8px; height: 8px; }
    .chip.c1 { left: 0; top: 62%; }
    .chip.c2 { right: 0; top: 34%; }
    .chip.c3 { display: none; }

    .hero h1 { font-size: 34px; margin-top: 12px; }
    .hero-sub { font-size: 16px; margin-top: 16px; }
    .hero-ctas { margin-top: 20px; gap: 10px; }
    .hero-ctas .btn { width: 100%; padding: 16px 20px; }
    .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
    .hero-facts dt { font-size: 21px; }
    .hero-facts dd { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy > *, .hero-visual img, .hero-circle, .chip { animation: none; }
    html { scroll-behavior: auto; }
}

/* FRANJA */
.marquee {
    background: linear-gradient(90deg, var(--azul) 0%, var(--azul-oscuro) 100%);
    color: var(--white);
    padding: 16px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 36s linear infinite;
}
.marquee-track span {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 28px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.marquee-track span::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--celeste);
    border-radius: 50%;
    margin-left: 56px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* CÓMO FUNCIONA */
.how { background: var(--white); padding: 120px 0; }
.how-head { max-width: 760px; }
.how-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-top: 18px;
    color: var(--tinta);
    text-wrap: balance;
}
.how-title em { font-style: normal; color: var(--azul); }
.how .lead { color: var(--tinta); }

.how-video {
    position: relative;
    margin-top: 48px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--blanco-2);
    box-shadow: 0 30px 70px rgba(0, 50, 90, 0.16), 0 0 0 1px rgba(11, 42, 63, 0.06);
    aspect-ratio: 16 / 9;
}
.how-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.how-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    padding: 28px;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 84, 128, 0) 55%, rgba(0, 74, 114, 0.55) 100%);
    color: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.how-play[hidden] { display: none; }
.how-play-btn {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--azul);
    box-shadow: 0 12px 30px rgba(0, 60, 100, 0.35);
    transition: transform 0.3s var(--ease), background-color 0.3s;
}
.how-play-btn svg { width: 28px; height: 28px; fill: var(--white); margin-left: 3px; }
.how-play:hover .how-play-btn { transform: scale(1.06); background: var(--azul-oscuro); }
.how-play:focus-visible .how-play-btn { outline: 3px solid var(--white); outline-offset: 3px; }
.how-play-txt b { display: block; font-size: 20px; font-weight: 600; }
.how-play-txt span { display: block; font-size: 14px; opacity: 1; margin-top: 2px; }

.how-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
}
.how-steps li { padding-top: 22px; border-top: 2px solid var(--azul); }
.how-num { display: block; font-size: 15px; font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums; }
.how-steps b { display: block; margin-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--tinta); }
.how-steps p { margin-top: 8px; font-size: 16px; line-height: 1.55; font-weight: 400; color: var(--tinta); max-width: 34ch; }
.how-sin { margin-top: 48px; font-size: 17px; line-height: 1.55; font-weight: 400; color: var(--tinta); }
.how-sin strong { font-weight: 600; }

@media (max-width: 860px) {
    .marquee { padding: 13px 0; }
    .marquee-track span { font-size: 13px; padding: 0 20px; }
    .marquee-track span::after { margin-left: 40px; }
    .how { padding: 80px 0; }
    .how-video { margin-top: 32px; border-radius: 18px; }
    .how-play { padding: 14px; gap: 12px; }
    .how-play-btn { width: 52px; height: 52px; }
    .how-play-btn svg { width: 22px; height: 22px; }
    .how-play-txt b { font-size: 16px; }
    .how-play-txt span { font-size: 12.5px; }
    .how-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
    .how-steps li { padding-top: 16px; }
    .how-steps b { font-size: 20px; }
    .how-sin { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* QUÉ HACEMOS (como la pág. 2 de la carpeta: azul, filas con nombre y descripción) */
.what {
    background: radial-gradient(110% 120% at 12% 0%, #0A93D6 0%, var(--azul) 40%, var(--azul-oscuro) 100%);
    color: var(--white);
}

.what-head { max-width: 820px; }
.what-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-top: 18px;
    text-wrap: balance;
}
.what-lead {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    max-width: 52ch;
    margin-top: 22px;
    color: var(--white);
}
.what-list { list-style: none; margin-top: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.what-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.3fr);
    align-items: baseline;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.what-num { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--white); }
.what-row h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.what-row p { font-size: 17px; line-height: 1.55; color: var(--white); max-width: 52ch; }

.what-cta {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.what-cta p { font-size: 18px; color: var(--white); }
.what-cta strong { color: var(--white); }
.btn-white {
    background: var(--white);
    color: var(--azul);
    box-shadow: 0 10px 28px rgba(0, 40, 70, 0.25);
}
.btn-white:hover { transform: translateY(-2px); background: var(--blanco); }

@media (max-width: 860px) {
    .what { padding: 80px 0; }
    .what-list { margin-top: 36px; }
    .what-row { grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 22px 0; }
    .what-row p { grid-column: 2; font-size: 16px; }
    .what-cta { margin-top: 36px; }
    .what-cta .btn { width: 100%; }
}

/* HOGARES E INDUSTRIAS */
.segs { background: var(--white); }
.segs-title {
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-top: 18px;
    color: var(--tinta);
    max-width: 26ch;
    text-wrap: balance;
}
.segs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.seg {
    position: relative;
    min-height: 540px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    box-shadow: 0 24px 60px rgba(0, 50, 90, 0.14);
}
.seg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.seg:hover img { transform: scale(1.04); }
.seg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 84, 128, 0) 25%, rgba(0, 84, 128, 0.72) 58%, rgba(0, 74, 114, 0.96) 100%);
}
.seg-body { position: relative; z-index: 2; padding: 32px; width: 100%; }
.seg-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.seg h3 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-top: 8px; }
.seg ul { list-style: none; margin: 18px 0 26px; display: grid; gap: 8px; }
.seg li { display: flex; gap: 10px; align-items: baseline; font-size: 17px; line-height: 1.4; color: var(--white); }
.seg li::before { content: "✓"; font-weight: 600; color: var(--white); }

@media (max-width: 860px) {
    .segs { padding: 80px 0; }
    .segs-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
    .seg { min-height: 460px; border-radius: 22px; }
    .seg-body { padding: 22px; }
    .seg li { font-size: 16px; }
    .seg .btn { width: 100%; }
}

/* CONFÍAN EN SOLMI (pág. 3 de la carpeta, sin el fondo negro) */
.trust { background: var(--blanco); color: var(--tinta); }
.trust-big {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    margin-top: 20px;
}
.trust-num {
    font-size: clamp(110px, 15vw, 220px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.9;
    color: var(--azul);
}
.trust-big p {
    font-size: clamp(24px, 2.8vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 18ch;
}
.ticker {
    margin-top: 48px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker + .ticker { margin-top: 18px; }
.ticker-track {
    list-style: none;
    display: flex;
    width: max-content;
    animation: tickerMove var(--dur, 40s) linear infinite;
}
.ticker-rev { animation-direction: reverse; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track li { display: flex; align-items: center; white-space: nowrap; }
.ticker-track li::after {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--celeste);
    margin: 0 28px;
}
.ticker-lg { padding: 22px 0; border-top: 1px solid rgba(11, 42, 63, 0.14); border-bottom: 1px solid rgba(11, 42, 63, 0.14); }
.ticker-lg li { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; color: var(--tinta); }
.ticker-sm li { font-size: 16px; color: var(--tinta); }
.ticker-sm li::after { width: 4px; height: 4px; margin: 0 18px; background: rgba(11, 42, 63, 0.3); }
@keyframes tickerMove { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

/* OBRAS (pág. 4 de la carpeta) */
.works { background: var(--white); }
.works-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-top: 18px;
    color: var(--tinta);
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    margin-top: 48px;
}
.works-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}
.works-grid figure:first-child img { box-shadow: -10px 10px 0 -2px var(--azul); }
.works-grid figcaption { margin-top: 12px; font-size: 15px; font-weight: 400; color: var(--tinta); }

@media (max-width: 860px) {
    .trust, .works { padding: 80px 0; }
    .trust-big { grid-template-columns: 1fr; gap: 12px; }
    .ticker { margin-top: 32px; }
    .ticker-lg { padding: 16px 0; }
    .ticker-sm li { font-size: 14px; }
    .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 32px; }
    .works-grid img { border-radius: 14px; }
    .works-grid figure:first-child img { box-shadow: -6px 6px 0 -1px var(--azul); }
    .works-grid figcaption { font-size: 13px; margin-top: 8px; }
}

/* CONTACTO (versión A) */
.cf-group { display: flex; flex-direction: column; gap: 8px; }
.cf-group label { font-size: 14px; font-weight: 600; color: var(--tinta); }
.cf-group label small { font-weight: 400; color: var(--tinta); }
.cf-group input, .cf-group textarea {
    padding: 15px 16px;
    border-radius: 14px;
    border: 1.5px solid #D5E0EA;
    background: var(--white);
    font: 400 16px/1.4 "Roboto", system-ui, sans-serif;
    color: var(--tinta);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cf-group input:focus, .cf-group textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0, 125, 188, 0.14); }
.cf-group input:user-invalid { border-color: #C2410C; }
.cf-submit { width: 100%; border: 0; }
.cf-note { margin-top: 14px; font-size: 13px; color: var(--tinta); text-align: center; }

/* ───────── A · el original de Antigravity, adaptado ───────── */
.ca { display: grid; grid-template-columns: 1fr 1fr; }
.ca-left {
    padding: 110px 6%;
    background: radial-gradient(120% 120% at 10% 0%, #0A93D6 0%, var(--azul) 40%, var(--azul-oscuro) 100%);
    color: var(--white);
    display: flex;
    justify-content: center;
}
.ca-left-in { max-width: 500px; width: 100%; }
.ca-left h2 { font-size: clamp(36px, 4.2vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin-top: 18px; }
.ca-left p { font-size: 18px; line-height: 1.55; color: var(--white); margin-top: 18px; max-width: 40ch; }
.ca-wa {
    display: flex; align-items: center; gap: 16px;
    margin-top: 32px; padding: 16px 22px;
    background: var(--white); color: var(--tinta);
    border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 40, 70, 0.25);
    transition: transform 0.3s var(--ease);
}
.ca-wa:hover { transform: translateY(-3px); }
.ca-wa .ic { width: 48px; height: 48px; border-radius: 14px; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.ca-wa .ic svg { width: 26px; height: 26px; }
.ca-wa b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.ca-wa span { font-size: 14px; color: var(--tinta); }
.ca-wa .arrow { margin-left: auto; color: var(--azul); font-size: 22px; font-weight: 600; }
.ca-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ca-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); }
.ca-card .ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; flex: none; }
.ca-card .ic svg { width: 20px; height: 20px; }
.ca-card b { display: block; font-size: 15px; }
.ca-card span { font-size: 13px; color: var(--white); }
.ca-right { padding: 110px 6%; background: var(--blanco); display: flex; align-items: center; justify-content: center; }
.ca-form { width: 100%; max-width: 560px; background: var(--white); border-radius: 28px; padding: 40px; box-shadow: 0 24px 60px rgba(0, 50, 90, 0.1); display: grid; gap: 18px; }
.ca-form .hint { font-size: 15px; color: var(--tinta); }
.ca-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 860px) {
    .ca { grid-template-columns: 1fr; }
    .ca-left, .ca-right { padding: 72px 20px; }
    .ca-cards { grid-template-columns: 1fr; }
    .ca-form { padding: 24px; border-radius: 22px; }
    .ca-form .row2 { grid-template-columns: 1fr; }
}

/* ═════ ANIMACIONES DE SCROLL ═════ */
.scroll-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 200;
    background: linear-gradient(90deg, var(--celeste), var(--azul));
    transform-origin: 0 50%;
    transform: scaleX(0);
    pointer-events: none;
}
/* grupos: cada hijo entra con un pequeño retraso */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
[data-stagger].is-revealed > * { opacity: 1; transform: none; }
/* el video entra creciendo */
.reveal.reveal-zoom { transform: translateY(40px) scale(0.92); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.reveal.reveal-zoom.is-revealed { transform: none; }
/* las fotos de obras se destapan */
.works-grid img { clip-path: inset(10% 10% 10% 10% round 18px); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 0.1s); }
.works-grid.is-revealed img { clip-path: inset(0 round 18px); }
/* los títulos de sección suben un poco más */
.how-title, .what-title, .segs-title, .works-title { transition: letter-spacing 1.2s var(--ease); }
/* hero: el parallax se aplica con translate desde el script */
.hero-visual, .hero-copy { will-change: translate; }

/* ═════ QUÉ HACEMOS: cada servicio se pinta al pasar el cursor ═════ */
.what-row { position: relative; }
.what-row::before {
    content: "";
    position: absolute;
    inset: 6px -20px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(0, 40, 70, 0.25);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.45s var(--ease);
}
.what-row > * { position: relative; z-index: 1; transition: color 0.3s, transform 0.45s var(--ease); }
.what-row.is-on::before { transform: scaleX(1); }
.what-row.is-on h3 { color: var(--tinta); transform: translateX(6px); }
.what-row.is-on p { color: var(--tinta); }
.what-row.is-on .what-num { color: var(--tinta); }
/* en compu: luz que sigue al cursor (de «Spotlight», React Bits / 21st) */
@media (hover: hover) {
    .what-row::after {
        content: "";
        position: absolute;
        inset: 6px -20px;
        border-radius: 18px;
        background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 60%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .what-row:hover::after { opacity: 1; }
    .what-row:hover h3 { transform: translateX(6px); }
    .what-row:hover p { color: var(--white); }
    .what-row:hover .what-num { color: var(--white); }
}

/* ═════ HOGARES E INDUSTRIAS: tarjetas que abren formulario ═════ */
.seg { cursor: pointer; transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 90ms), transform 0.6s var(--ease), box-shadow 0.4s var(--ease); }
.seg:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0, 50, 90, 0.22); }
.seg:focus-visible { outline: 3px solid var(--azul); outline-offset: 4px; }

.seg-dlg {
    width: min(600px, calc(100% - 32px));
    max-height: min(88vh, 860px);
    margin: auto;
    padding: 36px;
    border: 0;
    border-radius: 28px;
    background: var(--white);
    color: var(--tinta);
    box-shadow: 0 40px 100px rgba(0, 30, 60, 0.35);
    overflow-y: auto;
}
.seg-dlg[open] { animation: dlgIn 0.35s var(--ease); }
.seg-dlg::backdrop { background: rgba(0, 40, 70, 0.45); backdrop-filter: blur(4px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.seg-dlg .seg-kicker { color: var(--tinta); }
.seg-dlg h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; margin-top: 6px; }
.dlg-txt { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--tinta); }
.dlg-txt strong { color: var(--tinta); }
.dlg-sub { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinta); }
.dlg-zonas { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dlg-zonas li { padding: 6px 12px; border-radius: 999px; background: #EAF4FB; color: var(--tinta); font-size: 13.5px; font-weight: 400; }
.dlg-x {
    position: sticky;
    top: 0;
    float: right;
    width: 40px; height: 40px;
    margin: -12px -12px 0 0;
    border: 0;
    border-radius: 50%;
    background: var(--blanco);
    color: var(--tinta);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.dlg-x:hover { background: var(--blanco-2); }
.dlg-form { display: grid; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(11, 42, 63, 0.1); }
.dlg-form fieldset { border: 0; padding: 0; margin: 0; }
.dlg-form legend { font-size: 14px; font-weight: 600; color: var(--tinta); margin-bottom: 8px; padding: 0; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dlg-form select {
    padding: 15px 16px;
    border-radius: 14px;
    border: 1.5px solid #D5E0EA;
    background: var(--white);
    font: 400 16px/1.4 "Roboto", system-ui, sans-serif;
    color: var(--tinta);
}
.dlg-form select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0, 125, 188, 0.14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid #D5E0EA;
    font-size: 15px;
    font-weight: 400;
    color: var(--tinta);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip-opt span:hover { border-color: var(--azul); }
.chip-opt input:checked + span { background: var(--azul); border-color: var(--azul); color: var(--white); }
.chip-opt input:focus-visible + span { outline: 3px solid rgba(0, 125, 188, 0.35); outline-offset: 2px; }

@media (max-width: 860px) {
    .what-row::before { inset: 4px -12px; border-radius: 14px; }
    .seg-dlg {
        width: 100%;
        max-width: none;
        max-height: 92vh;
        margin: auto 0 0;
        padding: 26px 20px 28px;
        border-radius: 24px 24px 0 0;
    }
    .seg-dlg[open] { animation: sheetIn 0.4s var(--ease); }
    @keyframes sheetIn { from { transform: translateY(100%); } }
    .seg-dlg h3 { font-size: 25px; }
    .cf-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    [data-stagger] > *, .reveal.reveal-zoom, .works-grid img { transition: none; opacity: 1; transform: none; clip-path: none; }
    .seg-dlg[open] { animation: none; }
}

/* ═════ HERO: etiquetas con brillo y borde que gira (de «Glare Hover» y «Star Border», React Bits) ═════ */
.chip { isolation: isolate; cursor: default; transition: transform 0.35s var(--ease); }
.chip > * { position: relative; }
.chip::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    border-radius: 18px;
    background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--celeste), var(--azul), transparent 90%);
    opacity: 0;
    transition: opacity 0.3s;
    animation: girar 2.4s linear infinite;
}
.chip::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 14px;
    background:
        linear-gradient(115deg, transparent 35%, rgba(140, 203, 235, 0.55) 50%, transparent 65%) no-repeat -160% 0 / 200% 100%,
        var(--white);
    transition: background-position 0.8s var(--ease);
}
.chip:hover { transform: translateY(-3px); }
.chip:hover::before { opacity: 1; }
.chip:hover::after { background-position: 160% 0, 0 0; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes girar { to { --ang: 360deg; } }
/* segunda línea que aparece al pasar el cursor */
.chip-txt { display: flex; flex-direction: column; }
.chip-more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--tinta);
    transition: grid-template-rows 0.35s var(--ease), opacity 0.25s;
}
.chip-more > span { overflow: hidden; padding-top: 2px; }
.chip:hover .chip-more { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) { .chip-more { display: none; } }
@media (prefers-reduced-motion: reduce) { .chip::before { animation: none; } }

/* sin etiqueta arriba: el título arranca pegado */
.how-head > h2:first-child, .what-head > h2:first-child, .reveal > h2:first-child, .ca-left-in > h2:first-child { margin-top: 0; }
.trust > .container > .trust-big:first-child { margin-top: 0; }

/* ═════ PIE ═════ */
.foot {
    background: linear-gradient(180deg, var(--azul-oscuro) 0%, var(--azul-hondo) 100%);
    color: var(--white);
    padding: 72px 0 28px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 40px; }
.foot-brand img { width: 320px; max-width: 100%; height: auto; }
.foot-brand p { margin-top: 18px; font-size: 16px; line-height: 1.5; }
.foot h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.foot ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; font-size: 15px; }
.foot a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.foot a:hover { text-decoration-color: var(--white); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 13px; color: var(--white); }
@media (max-width: 860px) {
    .foot { padding: 56px 0 24px; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

.hero-copy > h1:first-child { margin-top: 0; }

/* negritas dentro del texto: 600 (texto en 400, salta el 500) */
b, strong { font-weight: 600; }
