/* ============================================================
   NiuX — estilos extendidos para portada rediseñada v2.1
   ============================================================ */

html { scroll-behavior: smooth; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #4CAF35 0%, #1976C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   HERO — grid parallax-able
   ============================================================ */
.hero-grid {
    background-image:
        linear-gradient(rgba(48, 54, 61, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 54, 61, 0.35) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: translate3d(var(--hero-px, 0px), var(--hero-py, 0px), 0);
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.hero-glow {
    background: radial-gradient(ellipse 60% 50% at calc(50% + var(--hero-gx, 0px)) calc(-10% + var(--hero-gy, 0px)),
                                rgba(76, 175, 53, 0.14), transparent);
    transition: background 0.4s cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--niux-accent), var(--niux-accent-2));
    z-index: 100;
    transition: width 0.05s linear;
}

/* ============================================================
   NAV — logo + active section underline
   ============================================================ */
/* Aislamos el nav en su propio stacking context.
   Sin esto, el mix-blend-mode del logo (más abajo) se mezcla
   con el contenido de la página que pasa por debajo al scrollear,
   y se ve "transparente". Con isolation:isolate, el screen sólo
   se mezcla con el bg del propio nav. */
nav {
    isolation: isolate;
}

/* Usamos logo_niux_bynneg.png (blanco sobre transparente) sobre nav oscuro.
   mix-blend-mode: screen queda como no-op (blanco con screen sigue blanco)
   pero se deja por si vuelve a probarse el logo a color en el futuro. */
.nav-logo {
    mix-blend-mode: screen;
}

nav a[data-nav] {
    position: relative;
}
nav a[data-nav].is-active {
    color: #fff !important;
    background: rgba(76, 175, 53, 0.08);
}
nav a[data-nav].is-active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--niux-accent);
    border-radius: 2px;
}

/* ============================================================
   CLIENTES — base
   ============================================================ */
:root {
    --niux-accent: #4CAF35;
    --niux-accent-2: #1976C8;
}

.cli-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
}

/* Logo placeholder */
.cli-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--cli-logo-c, #4CAF35), color-mix(in oklab, var(--cli-logo-c, #4CAF35) 60%, #000));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 8px rgba(0,0,0,0.25);
}
.cli-logo--lg {
    width: 56px; height: 56px;
    border-radius: 14px;
    font-size: 18px;
}

/* ============================================================
   VARIANTE B (default) — GRILLA CON HOVER-REVEAL
   ============================================================ */
.cli-grid-wrap { position: relative; }
.cli-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
@media (min-width: 640px) {
    .cli-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
    .cli-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.cli-card {
    position: relative;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 18px;
    cursor: default;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cli-card.is-featured {
    /* Sin grid-column:span 2 — combinado con el contenido expandido
       (que la hace más alta que las hermanas) generaba overlap visual:
       la card se montaba sobre las del costado.
       La diferenciación visual queda con la barra lateral, el bg gradient
       y el nombre con efecto de texto. */
    background: linear-gradient(135deg, #161b22 0%, #1a2230 100%);
}
.cli-card.is-featured .cli-card-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--niux-accent), var(--niux-accent-2));
}
.cli-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cli-card-head-text { min-width: 0; flex: 1; }
.cli-card-name {
    color: #e6edf3;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    margin-top: 2px;
}
.cli-card.is-featured .cli-card-name {
    font-size: 19px;
    background: linear-gradient(135deg, #ffffff 0%, #4CAF35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cli-card.is-featured .cli-tag {
    color: var(--niux-accent) !important;
}
.cli-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(76,175,53,0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.cli-card.is-featured .cli-card-glow { opacity: 0.4; }
.cli-card:hover,
.cli-card.is-active {
    border-color: rgba(76, 175, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(76, 175, 53, 0.08);
}
.cli-card:hover .cli-card-glow,
.cli-card.is-active .cli-card-glow { opacity: 1; }

.cli-card-extra {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(.2,.7,.2,1);
}
.cli-card-extra > div { overflow: hidden; min-height: 0; }
.cli-card.is-featured .cli-card-extra,
.cli-card:hover .cli-card-extra,
.cli-card.is-active .cli-card-extra {
    grid-template-rows: 1fr;
}
.cli-card-desc {
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 12px;
}
.cli-card.is-featured .cli-card-desc {
    font-size: 13.5px;
}
.cli-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
}
.cli-card-yr {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 10px;
    color: rgba(148, 163, 184, 0.7);
}
.cli-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--niux-accent);
    border-top: 1px dashed #30363d;
    padding-top: 10px;
    margin-top: auto;
    transition: gap 0.2s ease;
}
.cli-card-cta:hover { gap: 8px; }
.cli-card-cta svg { width: 11px; height: 11px; }

.cli-chip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(76, 175, 53, 0.08);
    color: var(--niux-accent);
    border: 1px solid rgba(76, 175, 53, 0.25);
}
.cli-chip--alt {
    background: rgba(25, 118, 200, 0.08);
    color: var(--niux-accent-2);
    border-color: rgba(25, 118, 200, 0.25);
}

/* ============================================================
   VARIANTE A — LISTA EDITORIAL INFLABLE
   ============================================================ */
.cli-infl { border-top: 1px solid #30363d; }
.cli-infl-item {
    border-bottom: 1px solid #30363d;
    padding: 18px 0;
    cursor: default;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 24px;
    align-items: baseline;
    transition: padding 0.45s cubic-bezier(.2,.7,.2,1), background 0.3s ease;
    position: relative;
}
.cli-infl-item::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--niux-accent), var(--niux-accent-2));
    opacity: 0; transition: opacity 0.3s ease;
}
.cli-infl-item:hover::before,
.cli-infl-item.is-active::before { opacity: 1; }
.cli-infl-num {
    color: rgba(148, 163, 184, 0.5);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 12px; letter-spacing: 0.08em;
}
.cli-infl-name {
    font-weight: 600; color: #e6edf3;
    font-size: 22px; line-height: 1.2; letter-spacing: -0.01em;
    transition: font-size 0.45s cubic-bezier(.2,.7,.2,1), color 0.3s ease;
}
.cli-infl-industry {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 11px; color: rgba(148, 163, 184, 0.65);
    letter-spacing: 0.06em; text-transform: uppercase; text-align: right;
}
.cli-infl-item:hover,
.cli-infl-item.is-active {
    padding: 32px 0;
    background: linear-gradient(90deg, rgba(76, 175, 53, 0.04), transparent 60%);
}
.cli-infl-item:hover .cli-infl-name,
.cli-infl-item.is-active .cli-infl-name {
    font-size: 44px;
    background: linear-gradient(135deg, #ffffff 0%, #4CAF35 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cli-infl-detail {
    grid-column: 2 / -1;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(.2,.7,.2,1), margin-top 0.45s ease;
}
.cli-infl-item:hover .cli-infl-detail,
.cli-infl-item.is-active .cli-infl-detail {
    grid-template-rows: 1fr; margin-top: 14px;
}
.cli-infl-detail > .cli-infl-detail-inner { overflow: hidden; min-height: 0; }
.cli-infl-desc {
    color: #94a3b8; font-size: 15px; line-height: 1.6; max-width: 60ch; margin-bottom: 14px;
}
.cli-infl-chips { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 640px) {
    .cli-infl-item { grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; }
    .cli-infl-industry { display: none; }
    .cli-infl-name { font-size: 18px; }
    .cli-infl-item:hover .cli-infl-name,
    .cli-infl-item.is-active .cli-infl-name { font-size: 30px; }
}

/* ============================================================
   VARIANTE C — WALL TIPOGRÁFICO
   ============================================================ */
.cli-wall {
    display: flex; flex-wrap: wrap;
    gap: 8px 16px; align-items: baseline;
}
.cli-wall-item {
    color: rgba(230, 237, 243, 0.35);
    font-weight: 600;
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.05; letter-spacing: -0.02em;
    cursor: default; transition: color 0.3s ease;
    padding: 0 4px;
}
.cli-wall-item:not(:last-child)::after {
    content: "·"; color: rgba(48, 54, 61, 1); margin-left: 16px; font-weight: 400;
}
.cli-wall-item:hover,
.cli-wall-item.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--niux-accent) 0%, var(--niux-accent-2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cli-wall-detail {
    margin-top: 32px; min-height: 180px;
    background: linear-gradient(180deg, rgba(22,27,34,0.6), rgba(22,27,34,0.3));
    border: 1px solid #30363d; border-radius: 20px; padding: 28px;
    display: grid; grid-template-columns: 1fr; gap: 14px;
}
.cli-wall-detail.has-active { border-color: rgba(76, 175, 53, 0.35); }
.cli-wall-detail-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.cli-wall-detail-name {
    font-size: 24px; font-weight: 700; color: #e6edf3; letter-spacing: -0.01em;
}
.cli-wall-detail-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 11px; letter-spacing: 0.08em; color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
}
.cli-wall-detail-desc { color: #94a3b8; font-size: 15px; line-height: 1.6; max-width: 60ch; }

/* ============================================================
   SERVICIOS — BENTO + hover tech reveal
   ============================================================ */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .svc-grid { grid-template-columns: repeat(4, 1fr); }
}
.svc-card {
    position: relative;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 18px;
    padding: 22px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
    min-height: 200px;
}
@media (min-width: 1024px) {
    .svc-card.span-2 { grid-column: span 2; }
}
.svc-card:hover {
    transform: translateY(-3px);
    border-color: var(--svc-c, rgba(76, 175, 53, 0.5));
    box-shadow: 0 10px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--svc-c, rgba(76,175,53,0.4));
}
.svc-card::after {
    content: "";
    position: absolute; inset: -1px;
    background: radial-gradient(circle at 100% 0%, var(--svc-c-soft, rgba(76,175,53,0.12)), transparent 50%);
    opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 18px;
}
.svc-card:hover::after { opacity: 1; }
.svc-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.svc-card h3 {
    font-weight: 600; color: #fff; margin-bottom: 8px;
    font-size: 16px; letter-spacing: -0.005em;
}
.svc-card.span-2 h3 { font-size: 20px; }
.svc-card p {
    color: #94a3b8; font-size: 13px; line-height: 1.55;
    flex: 1;
}
.svc-card.span-2 p { font-size: 14.5px; }
.svc-tech {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-top: 14px;
    max-height: 0; overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.25s ease, margin-top 0.4s ease;
}
.svc-card:hover .svc-tech {
    max-height: 80px;
    opacity: 1;
}
.svc-tech span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 10px; letter-spacing: 0.04em;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    color: rgba(230,237,243,0.7);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   TECNOLOGÍAS — wordmark wall
   ============================================================ */
.tech-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 640px) { .tech-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tech-wall { grid-template-columns: repeat(6, 1fr); } }
.tech-item {
    position: relative;
    padding: 22px 16px;
    border: 1px solid #30363d;
    border-radius: 12px;
    background: #161b22;
    text-align: center;
    transition: all 0.25s ease;
    overflow: hidden;
    cursor: default;            /* sin esto el navegador muestra cursor de texto sobre el div */
}
.tech-item::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--tc, #4CAF35), transparent);
    opacity: 0; transition: opacity 0.25s ease;
}
.tech-item:hover {
    transform: translateY(-2px);
    /* Border en un gris claro siempre visible — no depende del color del tech.
       Muchas tecnologías tienen colores oscuros (MikroTik #293239,
       Lenovo #e2231a, etc) que se confundían con el border base. */
    border-color: rgba(230, 237, 243, 0.35);
    background: #1a2230;
}
.tech-item:hover::before { opacity: 0.18; }  /* tint del color del tech, más perceptible */
.tech-name {
    position: relative;
    font-weight: 600;
    color: #e6edf3;
    font-size: 15px;
    letter-spacing: -0.005em;
}
.tech-cat {
    position: relative;
    display: block;
    margin-top: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148,163,184,0.5);
}

/* ============================================================
   NOVEDADES — 1 grande + 3 chicas
   ============================================================ */
.nov-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 1024px) {
    .nov-layout { grid-template-columns: 1.4fr 1fr; }
}
.nov-feat {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 18px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.nov-feat:hover { border-color: rgba(76,175,53,0.5); transform: translateY(-2px); }
.nov-feat-img {
    aspect-ratio: 16 / 9;
    position: relative;
    background: linear-gradient(135deg, #0d1117 0%, #1a2230 100%);
    overflow: hidden;
    border-bottom: 1px solid #30363d;
}
.nov-feat-img::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(76,175,53,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76,175,53,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
.nov-feat-img::after {
    content: var(--nov-cat, '"Novedad"');
    position: absolute;
    bottom: 16px; left: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 11px;
    color: var(--niux-accent);
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(76,175,53,0.3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.nov-feat-body {
    padding: 24px;
    display: flex; flex-direction: column;
    flex: 1;
}
.nov-feat-meta {
    display: flex; gap: 12px; align-items: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 11px;
    color: rgba(148,163,184,0.7);
    margin-bottom: 12px;
}
.nov-feat h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.nov-feat:hover h3 { color: var(--niux-accent); transition: color 0.2s; }
.nov-feat p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}
.nov-feat-cta {
    margin-top: 16px;
    color: var(--niux-accent);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
}

.nov-side {
    display: flex; flex-direction: column;
    gap: 12px;
}
.nov-small {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: start;
    transition: border-color 0.2s ease, transform 0.2s ease;
    flex: 1;
}
.nov-small:hover { border-color: rgba(76,175,53,0.5); transform: translateY(-1px); }
.nov-small-img {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #0d1117 0%, #1a2230 100%);
    border-radius: 10px;
    border: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}
.nov-small-img::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(76,175,53,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76,175,53,0.08) 1px, transparent 1px);
    background-size: 12px 12px;
}
.nov-small-body { min-width: 0; }
.nov-small-cat {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--niux-accent);
    margin-bottom: 4px;
}
.nov-small h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.35;
    margin-bottom: 4px;
    text-wrap: pretty;
}
.nov-small:hover h4 { color: var(--niux-accent); transition: color 0.2s; }
.nov-small-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 10px;
    color: rgba(148,163,184,0.55);
}
.nov-small-excerpt {
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nov-small-cta {
    margin-top: 10px;
    color: var(--niux-accent);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   FAB — WhatsApp & back-to-top
   ============================================================ */
.fab-stack {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 50;
    display: flex; flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.fab {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 999px;
    border: 1px solid #30363d;
    background: #161b22;
    color: #e6edf3;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
    cursor: pointer;
}
.fab:hover { transform: translateY(-2px); border-color: rgba(76,175,53,0.5); }
.fab-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-color: transparent;
    width: 60px; height: 60px;
}
.fab-wa::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: fab-pulse 2.4s ease-out infinite;
    pointer-events: none;
}
.fab-wa { position: relative; }
@keyframes fab-pulse {
    0%   { transform: scale(0.85); opacity: 0; }
    30%  { opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}
.fab-top {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
.fab-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================================================
   SCROLL ANIMATIONS — fade + slide
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.05s; }
.reveal[data-delay="2"] { transition-delay: 0.1s; }
.reveal[data-delay="3"] { transition-delay: 0.15s; }
.reveal[data-delay="4"] { transition-delay: 0.2s; }
.reveal[data-delay="5"] { transition-delay: 0.25s; }
.reveal[data-delay="6"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-grid, .hero-glow { transition: none; }
}

/* ============================================================
   Micro-interactions
   ============================================================ */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.6s ease;
}
.btn-shimmer:hover::before { left: 150%; }
