/* ==========================================================================
   Proyectos IT — hoja de estilos principal
   ========================================================================== */

:root {
    --brand: #2970ff;
    --brand-600: #1d5ce6;
    --brand-700: #1847c2;
    --brand-50: #eef4ff;
    --accent: #2ed8a3;
    --accent-600: #0e9f7a;
    --accent-50: #e8fbf4;
    --whatsapp: #25d366;

    --ink: #0b1220;
    --ink-2: #1f2a3d;
    --muted: #5b6475;
    --line: #e6e9f0;
    --surface: #ffffff;
    --bg-soft: #f6f8fc;

    --gradient: linear-gradient(100deg, var(--brand-600) 0%, var(--accent-600) 100%);

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Plus Jakarta Sans", var(--font-sans);

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
    --shadow: 0 10px 30px -12px rgba(11, 18, 32, .18);
    --shadow-lg: 0 30px 60px -20px rgba(24, 71, 194, .28);

    --header-h: 72px;
    --container: 1200px;
    --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.lead {
    font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    color: var(--muted);
    line-height: 1.6;
}

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

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-600);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 92, 230, .6); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }

.btn-whatsapp { background: var(--whatsapp); color: #052e16; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-whatsapp:hover { background: #1fc05c; color: #052e16; }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--brand-700); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .35); }

.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-white:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-weight: 600;
    color: var(--brand-600);
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s ease; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

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

.brand img { width: auto; height: 38px; }

.main-nav ul { list-style: none; }
.main-nav a:not(.btn) {
    color: var(--ink-2);
    font-weight: 500;
    font-size: .9375rem;
}
.main-nav a:not(.btn):hover { color: var(--brand-600); }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 959.98px) {
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 24px var(--gutter) 32px;
        background: var(--surface);
        border-top: 1px solid var(--line);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    .nav-open .main-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .nav-open { overflow: hidden; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a:not(.btn) {
        display: block;
        padding: 16px 0;
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--ink);
    }
    .nav-cta { align-self: stretch; padding-block: 1rem; font-size: 1rem; }
}

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .main-nav { display: flex; align-items: center; gap: 32px; }
    .main-nav ul { position: relative; display: flex; gap: 28px; }

    /* Subrayado que se desliza a la sección visible */
    .nav-indicator {
        position: absolute;
        left: 0;
        bottom: -8px;
        width: var(--w, 0);
        height: 2px;
        border-radius: 2px;
        background: var(--gradient);
        opacity: 0;
        transform: translateX(var(--x, 0));
        transition: transform .4s cubic-bezier(.3, .7, .2, 1), width .4s cubic-bezier(.3, .7, .2, 1), opacity .25s ease;
        pointer-events: none;
    }
    .nav-indicator.is-on { opacity: 1; }
}
.main-nav a.is-active:not(.btn) { color: var(--brand-600); }

/* ---------- Transiciones entre páginas ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .3s; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
    background:
        radial-gradient(60% 60% at 85% 10%, rgba(46, 216, 163, .16) 0%, transparent 60%),
        radial-gradient(50% 60% at 10% 0%, rgba(41, 112, 255, .14) 0%, transparent 60%),
        var(--surface);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(11, 18, 32, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(46, 216, 163, .2);
}

.hero h1 {
    font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}
.hero .lead { max-width: 560px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions-center { justify-content: center; }

@media (max-width: 479.98px) {
    .hero-actions .btn,
    .cta-actions .btn { flex: 1 1 100%; }
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 28px;
    list-style: none;
    font-size: .9375rem;
    color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--accent-600); }

/* Titular con palabra rotativa */
.rotator {
    display: block;
    width: fit-content;
    white-space: nowrap;
    transition: opacity .35s ease, transform .35s ease;
}
.rotator.is-out { opacity: 0; transform: translateY(.25em); }

/* Panel ilustrativo del hero */
.hero-visual {
    position: relative;
    padding-bottom: 24px;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% 4% 4% 8%;
    background: radial-gradient(closest-side, rgba(41, 112, 255, .28), rgba(46, 216, 163, .18) 60%, transparent);
    filter: blur(40px);
    z-index: -1;
}

.dash {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: rise .8s ease both;
}
.dash-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}
.dots { display: inline-flex; gap: 6px; }
.dots i, .browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dce6; }
.dots i:nth-child(1), .browser-dots i:nth-child(1) { background: #ff6b6b; }
.dots i:nth-child(2), .browser-dots i:nth-child(2) { background: #ffc145; }
.dots i:nth-child(3), .browser-dots i:nth-child(3) { background: #34d399; }
.dash-title { font-size: .875rem; font-weight: 600; color: var(--ink); }
.pill-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-50);
    color: #067a5c;
    font-size: .75rem;
    font-weight: 600;
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-600);
    animation: pulse 1.8s ease-out infinite;
}

.dash-body { display: grid; gap: 16px; padding: 18px; }
.dash-panel {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.dash-label {
    margin: 0 0 12px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.status-list { list-style: none; display: grid; gap: 10px; }
.status-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-2);
}
.st-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-600);
}
.st-icon .icon { width: 16px; height: 16px; }
.st-ok {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: #067a5c;
}
.st-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-600); }

.bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 96px;
}
.bars span {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(to top, var(--brand-600), var(--accent));
    opacity: .9;
    transform-origin: bottom;
    animation: grow .9s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--i) * 60ms + .3s);
}

/* Chat estilo WhatsApp */
.dash-chat {
    position: relative;
    width: min(320px, 88%);
    margin: -48px 0 0 auto;
    margin-right: 12px;
    border-radius: 18px;
    background: #efeae2;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: rise .8s ease .3s both;
}
.chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #075e54;
    color: #fff;
}
.chat-head strong { display: block; font-size: .875rem; line-height: 1.2; }
.chat-head small { font-size: .75rem; opacity: .8; }
.chat-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--whatsapp);
}
.chat-avatar .icon { width: 18px; height: 18px; color: #fff; }
.chat-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; min-height: 180px; }

.bubble {
    max-width: 85%;
    margin: 0;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--ink);
    box-shadow: 0 1px 1px rgba(11, 18, 32, .08);
    animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.bubble-in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }

.float-card {
    position: absolute;
    left: -28px;
    bottom: -36px;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); color: var(--ink); line-height: 1.2; }
.float-card small { display: block; font-size: .8125rem; color: var(--muted); }
.float-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 159, 122, .5); }
    100% { box-shadow: 0 0 0 8px rgba(14, 159, 122, 0); }
}

@media (min-width: 640px) {
    .dash-body { grid-template-columns: 1.15fr .85fr; }
    .bars { height: 100%; min-height: 150px; }
    .dash-panel:last-child { display: flex; flex-direction: column; }
}
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
    .hero-visual { padding-bottom: 0; margin-bottom: 96px; }
    .dash-chat { position: absolute; right: -16px; bottom: -120px; width: 280px; margin: 0; }
    .float-card { display: flex; }
}

/* ---------- Clientes ---------- */
.clients {
    padding: 40px 0 48px;
    border-block: 1px solid var(--line);
    background: var(--surface);
}
.clients-title {
    margin-bottom: 24px;
    text-align: center;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-right: 56px;
    flex-shrink: 0;
    list-style: none;
    animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
    width: auto;
    height: 52px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .6;
    transition: filter .3s ease, opacity .3s ease;
}
.marquee-track img:hover { filter: none; opacity: 1; }

@keyframes marquee {
    to { transform: translateX(-100%); }
}

.anchor-alias { position: relative; top: -40px; display: block; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding-top: 48px; }
.section-soft { background: var(--bg-soft); }

.section-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
    font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 1.0625rem; }
.section-head-left { margin-inline: 0; text-align: left; }

/* ---------- Servicios ---------- */
.bento,
.cards-3 {
    display: grid;
    gap: 20px;
}

.service-card {
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Brillo que sigue al cursor */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(41, 112, 255, .13), rgba(46, 216, 163, .06) 40%, transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: rgba(41, 112, 255, .35);
    box-shadow: var(--shadow);
}
.service-card:hover .link-arrow .icon { transform: translateX(4px); }
.service-card-body { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { font-size: 1.25rem; margin: 20px 0 8px; }
.service-card p { color: var(--muted); }
.service-card .link-arrow { margin-top: auto; }

/* Maquetas dentro de las tarjetas destacadas */
.service-visual { align-self: center; }

.mock-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: #efeae2;
    box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .04);
}
.mock-chat .bubble { font-size: .8125rem; }

.mock-browser { position: relative; }
.browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #eef1f6;
    border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 5px; }
.browser-dots i { width: 9px; height: 9px; }
.browser-url {
    flex: 1;
    max-width: 220px;
    margin-inline: auto;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--surface);
    font-size: .6875rem;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mock-browser > .browser-bar { border-radius: 14px 14px 0 0; border: 1px solid var(--line); }
.mock-page {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.mock-nav { display: flex; align-items: center; gap: 8px; }
.mock-nav b { width: 36px; height: 10px; border-radius: 4px; background: var(--brand-600); margin-right: auto; }
.mock-nav span { width: 22px; height: 6px; border-radius: 3px; background: #dfe4ee; }
.mock-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; align-items: center; }
.mock-lines { display: grid; gap: 7px; }
.mock-lines span { height: 9px; border-radius: 4px; background: var(--ink); opacity: .85; }
.mock-lines span:nth-child(2) { width: 70%; opacity: .3; }
.mock-lines .mock-btn { width: 46%; height: 16px; border-radius: 999px; background: var(--gradient); opacity: 1; margin-top: 4px; }
.mock-img { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #cfe0ff, #c9f5e6); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-cards span { height: 34px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); }
.mock-tags {
    position: absolute;
    right: -6px;
    bottom: -12px;
    display: flex;
    gap: 6px;
}
.mock-tags span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}
.mock-tags .icon { width: 12px; height: 12px; color: var(--accent); }

/* Chats secuenciados: con JS, cada burbuja aparece en orden y las respuestas van precedidas de "escribiendo…" */
.js .chat-seq .bubble:not(.is-shown) { display: none; }
.js .chat-seq.is-measuring .bubble { display: block; visibility: hidden; animation: none; }

.bubble.typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 11px 14px;
}
.typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6b8f7a;
    animation: typing 1s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typing {
    0%, 70%, 100% { opacity: .35; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}

.service-card.is-featured {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(46, 216, 163, .14) 0%, transparent 60%),
        linear-gradient(135deg, var(--brand-50) 0%, #ffffff 70%);
}
.service-card.is-featured h3 { font-size: 1.5rem; }
.service-card.is-featured p { max-width: 460px; font-size: 1.0625rem; }

.service-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-600);
}
.service-icon .icon { width: 26px; height: 26px; }
.is-featured .service-icon { background: var(--brand-600); color: #fff; box-shadow: 0 10px 20px -8px rgba(29, 92, 230, .6); }
.service-icon-lg { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 24px; }
.service-icon-lg .icon { width: 32px; height: 32px; }

@media (min-width: 640px) {
    .bento, .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .bento .is-featured { grid-column: span 2; grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 960px) {
    .bento, .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .bento .is-featured { padding: 36px; }
}

/* ---------- Proceso ---------- */
.steps {
    position: relative;
    display: grid;
    gap: 32px;
    list-style: none;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step h3 { font-size: 1.1875rem; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: .9375rem; max-width: 300px; margin-inline: auto; }
.step-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    color: var(--brand-600);
    box-shadow: var(--shadow);
}
.step-icon .icon { width: 30px; height: 30px; }
.step-number {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-600);
}

@media (min-width: 640px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .steps::before {
        content: "";
        position: absolute;
        top: 36px;
        left: 12.5%;
        right: 12.5%;
        border-top: 2px dashed #c9d3e6;
    }
}

/* ---------- Sección oscura ---------- */
.section-dark {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50% 60% at 15% 0%, rgba(41, 112, 255, .28) 0%, transparent 70%),
        radial-gradient(45% 55% at 90% 100%, rgba(46, 216, 163, .2) 0%, transparent 70%),
        var(--ink);
    color: #b8c1d1;
}
.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p, .section-dark .step p { color: #b8c1d1; }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .step-icon {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--accent);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .03), 0 20px 40px -20px rgba(41, 112, 255, .6);
}
.section-dark .step-number { color: #7fb0ff; }
.section-dark .steps::before { border-top-color: rgba(255, 255, 255, .18); }

/* Línea que se dibuja y pasos que se iluminan en orden */
@media (min-width: 960px) {
    .steps::after {
        content: "";
        position: absolute;
        top: 35px;
        left: 12.5%;
        right: 12.5%;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--brand), var(--accent));
        box-shadow: 0 0 12px rgba(46, 216, 163, .5);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) .2s;
    }
    .steps.is-drawn::after { transform: scaleX(1); }
}
.js .section-dark .step-icon {
    transition: color .4s ease, border-color .4s ease, box-shadow .4s ease;
    transition-delay: calc(var(--i, 0) * 420ms + 250ms);
}
.js .section-dark .steps:not(.is-drawn) .step-icon {
    color: rgba(255, 255, 255, .35);
    box-shadow: none;
}
.section-dark .steps.is-drawn .step-icon {
    border-color: rgba(46, 216, 163, .45);
    box-shadow: 0 0 0 6px rgba(46, 216, 163, .07), 0 0 36px -4px rgba(46, 216, 163, .45);
}
.section-dark .stat,
.section-dark .testimonial { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section-dark .stat dt,
.section-dark .testimonial figcaption span { color: #b8c1d1; }
.section-dark .testimonial blockquote { color: #e6ebf3; }
.section-dark .testimonial figcaption strong { color: #fff; }
.section-dark .stat dd { background: linear-gradient(100deg, #7fb0ff, var(--accent)); -webkit-background-clip: text; background-clip: text; }

.section-foot { margin-top: 40px; text-align: center; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-copy h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; }
.about-copy > p { color: var(--muted); }

.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink-2); }
.check-list .icon {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: var(--accent-50);
    color: var(--accent-600);
}

.mission {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--bg-soft);
    border-left: 4px solid var(--brand);
}
.mission .icon { width: 24px; height: 24px; color: var(--brand-600); margin-top: 2px; }
.mission p { margin: 0; color: var(--ink-2); }

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow-lg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 960px) {
    .about-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
}

/* ---------- Cifras y testimonios ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 0 0 48px;
}
.stat {
    display: flex;
    flex-direction: column-reverse;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
}
.stat dt { color: var(--muted); font-weight: 500; }
.stat dd {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.testimonial {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}
.testimonial blockquote { margin: 0 0 20px; font-size: 1.0625rem; color: var(--ink-2); }
.testimonial figcaption { margin-top: auto; }
.testimonial figcaption strong { display: block; color: var(--ink); }
.testimonial figcaption span { font-size: .875rem; color: var(--muted); }

/* ---------- Preguntas frecuentes ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq-grid .section-head { margin-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-600); }
.faq-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--brand-600);
    transition: transform .25s ease, background-color .25s ease;
}
.faq-toggle .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.faq-item p { margin: -4px 48px 20px 0; color: var(--muted); }

/* Pregunta abierta resaltada */
.faq-item { position: relative; transition: background-color .3s ease; }
.faq-item::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 3px;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform .3s ease;
}
.faq-item[open]::before { transform: scaleY(1); }
.faq-item[open] summary { color: var(--brand-600); }

/* Apertura y cierre suaves (navegadores sin soporte abren de forma instantánea) */
.faq-item {
    interpolate-size: allow-keywords;
}
.faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size .35s ease, content-visibility .35s ease allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { transition: opacity .35s ease .05s, transform .35s ease .05s; }
.faq-item:not([open]) p { opacity: 0; transform: translateY(-6px); }
@starting-style {
    .faq-item[open] p { opacity: 0; transform: translateY(-6px); }
}

@media (min-width: 960px) {
    .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
    .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- CTA ---------- */
.cta-section { padding: 0 0 clamp(64px, 8vw, 112px); }
.section + .cta-section,
.section-soft + .cta-section { padding-top: 0; }
.cta-section + .section { padding-top: 0; }
.section-soft + .cta-section { padding-top: clamp(64px, 8vw, 112px); }

.cta-box {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand-600) 55%, #0b8f6c 100%);
    color: #fff;
    text-align: center;
}
.cta-box::before,
.cta-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-box::before { width: 420px; height: 420px; top: -200px; right: -120px; background: radial-gradient(circle, rgba(46, 216, 163, .45), transparent 65%); }
.cta-box::after { width: 360px; height: 360px; bottom: -220px; left: -100px; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; }
.cta-box p { max-width: 600px; margin: 0 auto 32px; color: rgba(255, 255, 255, .88); font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Contacto: arma tu solución ---------- */
.contact-section { padding: 0 0 clamp(64px, 8vw, 112px); }

.contact-box {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 40px;
    padding: clamp(28px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand-600) 55%, #0b8f6c 100%);
    color: rgba(255, 255, 255, .88);
}
.contact-box::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -260px;
    left: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 216, 163, .4), transparent 65%);
    pointer-events: none;
}
.contact-box > * { position: relative; }
.contact-copy h2 { color: #fff; font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; }
.contact-copy > p { font-size: 1.0625rem; }
.contact-copy .eyebrow { color: #a8f0d8; }

.contact-points { list-style: none; display: grid; gap: 16px; margin: 28px 0; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points li > span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}
.contact-points .icon { width: 20px; height: 20px; }
.contact-points strong { display: block; color: #fff; }
.contact-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.contact-mail:hover { color: #fff; text-decoration-color: #fff; }
.contact-mail .icon { width: 18px; height: 18px; }

.builder {
    display: grid;
    gap: 22px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-2);
    box-shadow: 0 30px 60px -20px rgba(4, 20, 60, .45);
}
.builder fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.builder legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
}
.builder legend small { font-family: var(--font-sans); font-weight: 400; color: var(--muted); }
.builder-step {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: .8125rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .875rem;
    font-weight: 500;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip .chip-check { width: 0; height: 14px; opacity: 0; transition: width .2s ease, opacity .2s ease; }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.chip input:checked + span .chip-check { width: 14px; opacity: 1; }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.builder-fields { display: grid; gap: 10px; }
.builder input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    font: inherit;
    color: var(--ink);
    transition: border-color .2s ease, background-color .2s ease;
}
.builder input[type="text"]:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px rgba(41, 112, 255, .15); }

.builder-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #efeae2;
}
.builder-preview-label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b6458; }
.builder-preview .bubble { max-width: 100%; font-size: .875rem; white-space: pre-line; animation: none; }

.btn-block { width: 100%; }

@media (min-width: 640px) {
    .builder-fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .contact-box { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Páginas internas ---------- */
.page-hero {
    padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px);
    background:
        radial-gradient(60% 80% at 90% 0%, rgba(46, 216, 163, .14) 0%, transparent 60%),
        radial-gradient(50% 80% at 0% 0%, rgba(41, 112, 255, .12) 0%, transparent 60%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; max-width: 820px; }
.page-hero .lead { max-width: 760px; margin-bottom: 28px; }
.page-hero-compact .lead { margin-bottom: 0; }
.page-hero-center { text-align: center; padding-block: clamp(72px, 12vw, 140px); }
.page-hero-center h1, .page-hero-center .lead { margin-inline: auto; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    font-size: .875rem;
    color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.feature-grid { display: grid; gap: 14px; list-style: none; }
.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    font-weight: 500;
    color: var(--ink-2);
}
.feature-check {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-50);
    color: var(--accent-600);
}
.feature-check .icon { width: 16px; height: 16px; }

@media (min-width: 768px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

.portfolio-grid { display: grid; gap: 24px; }
.project {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project .browser { border-bottom: 1px solid var(--line); }
.project .browser-url { max-width: 200px; }
/* La captura es alta (3 pantallas): se ve la primera y al pasar el mouse la página se desplaza */
.project-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    transition: object-position 6s cubic-bezier(.45, 0, .55, 1);
}
.project:hover .project-image img,
.project:focus-within .project-image img { object-position: 50% 100%; transition-duration: 5s; }
.project-body { padding: 22px 24px 26px; }
.project-body h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.project-body p { color: var(--muted); font-size: .9375rem; }

@media (min-width: 640px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    /* Si queda un proyecto suelto al final, ocupa todo el ancho */
    .portfolio-grid > .project:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
    /* Con 5 proyectos: 2 grandes arriba y 3 abajo */
    .portfolio-grid:has(> .project:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
    .portfolio-grid:has(> .project:nth-child(5):last-child) > .project { grid-column: span 2; }
    .portfolio-grid:has(> .project:nth-child(5):last-child) > .project:nth-child(-n+2) { grid-column: span 3; }
}

/* ---------- Textos legales ---------- */
.legal { max-width: 820px; margin: 0 auto; color: var(--ink-2); }
.legal h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.legal h3 { font-size: 1.25rem; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h4 { font-size: 1.0625rem; margin: 1.75rem 0 .75rem; }
.legal p, .legal li { line-height: 1.75; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal li > ul { margin-top: .5rem; }
.legal strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
    padding-top: 72px;
    background: var(--ink);
    color: #a7b0c0;
    font-size: .9375rem;
}
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }

.footer-title {
    margin: 0 0 16px;
    font-family: var(--font-sans);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.footer-links + .footer-title { margin-top: 28px; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #a7b0c0; }
.site-footer a:hover { color: #fff; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); }

.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    transition: background-color .2s ease, color .2s ease;
}
.social a:hover { background: var(--brand-600); color: #fff; }
.social .icon { width: 18px; height: 18px; }

.footer-bottom {
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .875rem;
}
.footer-bottom p { margin: 0; }

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-float .icon {
    width: 58px;
    height: 58px;
    padding: 14px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
    transition: transform .2s ease;
}
.wa-float:hover .icon { transform: scale(1.06); }
.wa-float-label {
    order: -1;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: .875rem;
    box-shadow: var(--shadow);
}
.wa-float:hover .wa-float-label { color: var(--ink); }
@media (max-width: 639.98px) {
    .wa-float-label { display: none; }
    .wa-float .icon { width: 54px; height: 54px; padding: 13px; }
}

/* ---------- Animaciones de entrada ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
    .marquee-track { flex-wrap: wrap; justify-content: center; gap: 32px; padding: 0 var(--gutter); }
    .marquee-track[aria-hidden="true"] { display: none; }
}
