/* ==========================================================================
   Nexira — sistema de diseño público
   Tokens · base · componentes · secciones · utilidades
   ========================================================================== */

:root {
    color-scheme: dark;

    --bg: #07090d;
    --bg-2: #0d1117;
    --bg-3: #111827;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);

    --text: #ffffff;
    --soft: #cbd5e1;
    --muted: #94a3b8;
    --dim: #64748b;

    --accent: #22d3ee;
    --accent-2: #34d399;
    --accent-ink: #04141a;
    --accent-soft: rgba(34, 211, 238, .12);
    --grad: linear-gradient(115deg, #22d3ee 0%, #34d399 100%);
    --danger: #fb7185;

    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

    --container: 1240px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(88px, 11vw, 150px);
    --radius: 24px;
    --radius-sm: 14px;
    --header-h: 76px;

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

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

/* El scroll suave se activa después de cargar: así, al volver de un formulario,
   la página aparece directo en #contacto en vez de recorrerse de arriba a abajo. */
html.smooth-scroll {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--soft);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
    body {
        font-size: 1.125rem;
    }
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.08;
    text-wrap: balance;
}

::selection {
    background: rgba(34, 211, 238, .35);
    color: #fff;
}

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

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

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 12px;
    background: #fff;
    color: #07090d;
    font-weight: 700;
    transition: top .2s;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Layout ---------- */

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

.container--narrow {
    max-width: calc(820px + var(--gutter) * 2);
}

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

.section--tight {
    padding-block: clamp(56px, 7vw, 96px);
}

.section--alt {
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}

.section--flush-top {
    padding-top: 0;
}

.stack > * + * {
    margin-top: var(--stack, 1rem);
}

.grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 720px) {
    .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 720px) and (max-width: 1023px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tipografía ---------- */

.h1 {
    font-size: clamp(2.6rem, 6.2vw, 5rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.h3 {
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    letter-spacing: -.025em;
    line-height: 1.2;
}

.lead {
    color: var(--muted);
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    line-height: 1.7;
    max-width: 44rem;
}

.muted { color: var(--muted); }
.soft { color: var(--soft); }
.white { color: var(--text); }

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

/* ---------- Section title ---------- */

.section-title {
    display: grid;
    gap: 20px;
    max-width: 52rem;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-title--center {
    margin-inline: auto;
    text-align: center;
    justify-items: center;
}

.section-title--split {
    max-width: none;
    align-items: end;
}

@media (min-width: 1024px) {
    .section-title--split {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        gap: 48px;
    }

    .section-title--split .lead {
        justify-self: end;
    }
}

/* ---------- Botones ---------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-bd: var(--line-2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 26px;
    border: 1px solid var(--btn-bd);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
    transition: transform .25s var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn--primary {
    --btn-bg: var(--accent);
    --btn-fg: var(--accent-ink);
    --btn-bd: transparent;
    background: var(--grad);
    box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .55);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .7);
}

.btn--ghost:hover {
    --btn-bd: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .05);
}

.btn--light {
    --btn-bg: #fff;
    --btn-fg: #07090d;
    --btn-bd: transparent;
}

.btn--light:hover {
    transform: translateY(-2px);
    background: #e6fbff;
}

.btn--whatsapp:hover {
    --btn-bd: rgba(52, 211, 153, .6);
    color: #a7f3d0;
}

.btn--sm {
    min-height: 44px;
    padding: 10px 20px;
    font-size: .92rem;
}

.btn--block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    transition: color .2s, gap .2s;
}

.link-arrow svg {
    width: 18px;
    height: 18px;
}

.link-arrow:hover {
    color: var(--accent);
    gap: 12px;
}

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(34, 211, 238, .25);
    border-radius: 999px;
    background: rgba(34, 211, 238, .07);
    color: #a5f3fc;
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.3;
}

.badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .15), 0 0 14px rgba(52, 211, 153, .8);
}

.badge--solid {
    border-color: transparent;
    background: var(--grad);
    color: var(--accent-ink);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    color: var(--soft);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Card base (spotlight) ---------- */

.card {
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
    transition: border-color .35s, transform .35s var(--ease), background-color .35s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 211, 238, .10), transparent 45%);
    opacity: 0;
    transition: opacity .35s;
}

.card:hover {
    border-color: rgba(34, 211, 238, .28);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}

.site-header.is-scrolled,
.site-header.is-solid,
.nav-open .site-header {
    border-bottom-color: var(--line);
    background: rgba(7, 9, 13, .78);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
}

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

.brand--footer img {
    height: 52px;
}

.nav {
    display: none;
}

.nav a {
    position: relative;
    padding: 8px 2px;
    color: var(--soft);
    font-size: .95rem;
    font-weight: 600;
    transition: color .2s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: #fff;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

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

.header-cta {
    display: none;
}

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
}

.nav-toggle__bars {
    position: relative;
    width: 18px;
    height: 12px;
}

.nav-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }

.nav-open .nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: rgba(7, 9, 13, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}

.nav-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-nav a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.mobile-nav a:not(.btn) svg {
    width: 20px;
    color: var(--dim);
}

.mobile-nav .btn {
    margin-top: 24px;
}

.nav-open {
    overflow: hidden;
}

@media (min-width: 1080px) {
    .nav {
        display: flex;
        align-items: center;
        gap: clamp(20px, 2.4vw, 36px);
    }

    .header-cta {
        display: inline-flex;
    }

    .nav-toggle,
    .mobile-nav {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 1079px) {
    .header-cta {
        display: inline-flex;
    }
}

/* ---------- Fondos decorativos ---------- */

.bg-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: .55;
}

.glow--cyan { background: rgba(34, 211, 238, .45); }
.glow--green { background: rgba(52, 211, 153, .32); }
.glow--blue { background: rgba(59, 130, 246, .30); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
    padding-bottom: clamp(72px, 9vw, 120px);
}

.hero .glow--cyan { width: 44rem; height: 44rem; top: -18rem; right: -12rem; }
.hero .glow--green { width: 30rem; height: 30rem; bottom: -14rem; left: -10rem; opacity: .35; }

.hero__grid {
    display: grid;
    gap: clamp(56px, 7vw, 72px);
    align-items: center;
}

@media (min-width: 1080px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
        gap: 48px;
    }
}

.hero__title {
    margin-top: 28px;
}

.hero__lead {
    margin-top: 28px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
}

.hero__tags span {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.hero__tags span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

@media (max-width: 520px) {
    .hero__actions .btn {
        width: 100%;
    }
}

/* ---------- Mockup: ventana de aplicación ---------- */

.hero-visual {
    position: relative;
    padding: 0 0 40px;
}

@media (min-width: 640px) {
    .hero-visual {
        padding: 0 24px 56px 48px;
    }
}

.app-window {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: linear-gradient(180deg, #0f1520, #0a0e15);
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 80px -20px rgba(34, 211, 238, .25);
}

.app-window__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}

.app-window__bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f2937;
}

.app-window__url {
    flex: 1;
    margin-left: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--dim);
    font-family: var(--mono);
    font-size: .7rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash {
    display: grid;
    grid-template-columns: 52px 1fr;
    min-height: 360px;
}

.dash__side {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 14px;
    padding: 16px 0;
    border-right: 1px solid var(--line);
}

.dash__side b {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
}

.dash__side b:first-child {
    background: var(--grad);
}

.dash__main {
    display: grid;
    gap: 14px;
    padding: 18px;
    min-width: 0;
}

.dash__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dash__head strong {
    color: #fff;
    font-size: .95rem;
    letter-spacing: -.01em;
}

.dash__head span {
    color: var(--dim);
    font-size: .72rem;
}

.dash__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.dash__pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.dash__kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kpi {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    min-width: 0;
}

.kpi span {
    display: block;
    color: var(--dim);
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kpi strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: clamp(.95rem, 1.6vw, 1.2rem);
    letter-spacing: -.02em;
    white-space: nowrap;
}

.kpi svg {
    width: 100%;
    height: 22px;
    margin-top: 6px;
}

.dash__chart {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.dash__chart svg {
    width: 100%;
    height: auto;
}

.dash__rows {
    display: grid;
    gap: 8px;
}

.dash__row {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    font-size: .74rem;
}

.dash__row i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(34, 211, 238, .12);
}

.dash__row em {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
    font-style: normal;
}

.dash__row em + em {
    width: 60%;
    margin-top: 5px;
    background: rgba(255, 255, 255, .05);
}

.dash__row b {
    color: #6ee7b7;
    font-size: .7rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .dash { grid-template-columns: 1fr; }
    .dash__side { display: none; }
    .dash__rows .dash__row:nth-child(n+3) { display: none; }
}

/* Teléfono */

.phone {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 34px;
    background: #05070a;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.phone::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 2;
    width: 30%;
    height: 16px;
    border-radius: 999px;
    background: #05070a;
    transform: translateX(-50%);
}

.phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 27px;
    background: #0d1117;
}

.phone__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Tarjetas flotantes */

.float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: rgba(13, 17, 23, .88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
    animation: float 6s ease-in-out infinite;
}

.float-card__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(52, 211, 153, .14);
    color: #6ee7b7;
}

.float-card__icon svg {
    width: 18px;
    height: 18px;
}

.float-card small {
    display: block;
    color: var(--dim);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.3;
}

.float-card strong {
    display: block;
    color: #fff;
    font-size: .85rem;
    line-height: 1.3;
    white-space: nowrap;
}

.float-card--a { top: 16%; right: -4px; }
.float-card--b { bottom: 4px; right: 18%; animation-delay: -3s; }
.float-card--b .float-card__icon { background: rgba(34, 211, 238, .14); color: var(--accent); }

@media (max-width: 639px) {
    .float-card--a { top: -18px; right: 8px; }
    .float-card--b { display: none; }
}

@keyframes float {
    50% { transform: translateY(-10px); }
}

/* ---------- Marquee (confianza) ---------- */

.trust {
    padding-block: clamp(40px, 5vw, 64px);
    border-block: 1px solid var(--line);
    background: var(--bg);
}

.trust__label {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
}

.marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    flex: none;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
    padding-right: clamp(40px, 6vw, 80px);
    animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #8b97a8;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: color .3s;
}

.trust-item:hover {
    color: #fff;
}

.trust-item__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--soft);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 700;
}

.trust-item img {
    max-height: 34px;
    width: auto;
    filter: grayscale(1) brightness(1.6);
    opacity: .7;
}

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

/* ---------- Servicios ---------- */

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(28px, 3vw, 36px);
}

.service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.service-card__num {
    color: transparent;
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
    transition: -webkit-text-stroke-color .35s;
}

.card:hover .service-card__num {
    -webkit-text-stroke-color: rgba(34, 211, 238, .6);
}

.icon-box {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(34, 211, 238, .22);
    border-radius: 16px;
    background: rgba(34, 211, 238, .06);
    color: var(--accent);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    margin-top: 36px;
}

.service-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 1rem;
}

.service-card .chips {
    margin-top: 22px;
}

.service-card .link-arrow {
    margin-top: auto;
    padding-top: 28px;
    font-size: .95rem;
}

/* ---------- Visuales del hero ---------- */

.solution-visual {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, .14), transparent 55%),
        linear-gradient(180deg, #0f1520, #0a0e15);
    padding: clamp(18px, 2.4vw, 28px);
}

.solution-visual > img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: contain;
}

/* Visual: automatización */
.auto-flow {
    display: grid;
    gap: 12px;
    height: 100%;
    align-content: center;
}

.auto-flow__row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr;
    align-items: center;
}

.auto-node {
    padding: 14px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    text-align: center;
}

.auto-node strong {
    display: block;
    color: #fff;
    font-size: .9rem;
}

.auto-node span {
    color: var(--dim);
    font-size: .72rem;
}

.auto-node--on {
    border-color: rgba(52, 211, 153, .45);
    background: rgba(52, 211, 153, .07);
}

.auto-link {
    position: relative;
    height: 1px;
    background: var(--line-2);
    overflow: hidden;
}

.auto-link::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: var(--grad);
    animation: travel 2.2s linear infinite;
}

@keyframes travel {
    from { transform: translateX(-100%); }
    to { transform: translateX(260%); }
}

.code-block {
    margin-top: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #05070a;
    color: #7dd3fc;
    font-family: var(--mono);
    font-size: .74rem;
    line-height: 1.8;
    white-space: pre;
    overflow: hidden;
}

.code-block .c { color: var(--dim); }
.code-block .g { color: #6ee7b7; }

/* Visual: login/plataforma */
.platform {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    min-height: 290px;
}

.platform__side {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(34, 211, 238, .06);
}

.platform__side i {
    height: 9px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
}

.platform__side i:first-child {
    background: var(--accent);
    width: 70%;
}

.platform__main {
    display: grid;
    gap: 12px;
    align-content: start;
}

.platform__card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
}

.platform__card small {
    color: #6ee7b7;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.platform__card strong {
    display: block;
    margin: 6px 0 12px;
    color: #fff;
    font-size: 1.05rem;
}

.platform__card i {
    display: block;
    height: 8px;
    margin-top: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
}

.platform__card i:nth-of-type(2) { width: 70%; }
.platform__card i:nth-of-type(3) { width: 45%; }

@media (max-width: 520px) {
    .platform { grid-template-columns: 1fr; }
    .platform__side { display: none; }
    .auto-flow__row { grid-template-columns: 1fr 18px 1fr 18px 1fr; }
    .auto-node { padding: 10px 6px; }
    .auto-node strong { font-size: .76rem; }
}

/* ---------- Portafolio (showcase) ---------- */

.showcase-list {
    display: grid;
    gap: clamp(96px, 12vw, 160px);
}

.showcase {
    display: grid;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 1024px) {
    .showcase {
        grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    }

    .showcase--reverse .showcase__media {
        order: -1;
    }

    .showcase--reverse {
        grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    }
}

.showcase__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.showcase__num {
    color: var(--accent);
    font-weight: 700;
}

.showcase__meta i {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--line-2);
}

.showcase h3 {
    margin-top: 22px;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    letter-spacing: -.035em;
    line-height: 1.12;
}

.showcase__summary {
    margin-top: 18px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase .chips {
    margin-top: 26px;
}

.showcase__tech {
    margin-top: 22px;
    color: var(--dim);
    font-family: var(--mono);
    font-size: .76rem;
    line-height: 1.8;
}

.showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.showcase__media {
    position: relative;
    padding: 0 0 36px;
}

@media (min-width: 640px) {
    .showcase__media { padding: 0 40px 44px 0; }
    .showcase--reverse .showcase__media { padding: 0 0 44px 40px; }
}

.showcase__media::before {
    content: "";
    position: absolute;
    inset: 10% 5% 0;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(34, 211, 238, .22), transparent);
    filter: blur(40px);
}

.laptop {
    position: relative;
}

.laptop__screen {
    position: relative;
    padding: 10px 10px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #05070a;
}

.laptop__display {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #0d1117;
}

.laptop__display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 1.2s var(--ease);
}

.showcase:hover .laptop__display img {
    transform: scale(1.03);
}

.laptop__base {
    position: relative;
    height: 14px;
    margin-inline: -6%;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #2a313c, #151a21);
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .9);
}

.laptop__base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 16%;
    height: 5px;
    border-radius: 0 0 8px 8px;
    background: #0b0e13;
    transform: translateX(-50%);
}

.showcase__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(92px, 19%, 150px);
}

.showcase--reverse .showcase__phone {
    right: auto;
    left: 0;
}

.placeholder-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(34, 211, 238, .35), transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(52, 211, 153, .25), transparent 45%),
        #0d1117;
    color: rgba(255, 255, 255, .7);
    font-weight: 800;
    letter-spacing: .3em;
}

/* ---------- Planes ---------- */

.pricing {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pricing--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .pricing--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3vw, 40px);
}

.price-card--featured {
    border-color: rgba(34, 211, 238, .45);
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(34, 211, 238, .14), transparent 60%),
        linear-gradient(180deg, #0f1722, #0b1017);
    box-shadow: 0 30px 80px -30px rgba(34, 211, 238, .45);
}

@media (min-width: 1024px) {
    .price-card--featured { transform: translateY(-12px); }
    .price-card--featured:hover { transform: translateY(-16px); }
    .js .price-card--featured[data-reveal].is-visible { transform: translateY(-12px); }
}

.price-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
}

.price-card__name {
    color: #fff;
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.price-card .badge {
    padding: 6px 12px;
    font-size: .66rem;
}

.price-card__for {
    margin-top: 16px;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.6;
    min-height: 3.2em;
}

.price {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.price small {
    display: block;
    color: var(--dim);
    font-size: .82rem;
    font-weight: 600;
}

.price strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: clamp(2.2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.price span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .92rem;
}

.price span b {
    color: var(--soft);
}

.checklist {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--soft);
    font-size: .98rem;
    line-height: 1.5;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat,
        rgba(34, 211, 238, .1);
}

.price-card .btn {
    margin-top: auto;
}

.price-card .checklist {
    margin-bottom: 36px;
}

.pricing-note {
    max-width: 52rem;
    margin: 40px auto 0;
    color: var(--dim);
    font-size: .88rem;
    line-height: 1.7;
    text-align: center;
}

.pricing-note a {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Proceso (timeline) ---------- */

.timeline {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding-bottom: 40px;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 60px;
    bottom: 4px;
    width: 1px;
    background: var(--line-2);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item:last-child::before {
    display: none;
}

.timeline__num {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--bg);
    color: #fff;
    font-family: var(--mono);
    font-size: .9rem;
    font-weight: 700;
}

.timeline__item:first-child .timeline__num {
    border-color: transparent;
    background: var(--grad);
    color: var(--accent-ink);
}

.timeline__item h3 {
    padding-top: 12px;
    font-size: 1.2rem;
    letter-spacing: -.02em;
}

.timeline__item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.65;
}

@media (min-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 24px;
    }

    .timeline__item {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-bottom: 0;
    }

    .timeline__item::before {
        left: 72px;
        right: -12px;
        top: 28px;
        bottom: auto;
        width: auto;
        height: 1px;
    }

    .timeline__item h3 {
        padding-top: 0;
    }
}

/* ---------- Por qué Nexira ---------- */

.about {
    display: grid;
    gap: clamp(48px, 6vw, 80px);
}

@media (min-width: 1024px) {
    .about {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        align-items: start;
    }

    .about__intro {
        position: sticky;
        top: calc(var(--header-h) + 40px);
    }
}

.about__intro .lead {
    margin-top: 24px;
}

/* ---------- Testimonios ---------- */

.quote-card {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3vw, 36px);
    min-height: 100%;
}

.quote-card__mark {
    width: 34px;
    height: 34px;
    color: var(--accent);
    opacity: .9;
}

.quote-card blockquote {
    margin-top: 22px;
    color: var(--soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.stars {
    display: flex;
    gap: 3px;
    margin-top: 22px;
    color: #fbbf24;
}

.stars svg {
    width: 16px;
    height: 16px;
}

.person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 28px;
}

.person__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--grad);
    color: var(--accent-ink);
    font-weight: 800;
}

.person__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person strong {
    display: block;
    color: #fff;
    font-size: .98rem;
    line-height: 1.3;
}

.person small {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.4;
}

/* ---------- Blog ---------- */

.post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.post-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d1117;
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.post-card:hover .post-card__media img {
    transform: scale(1.05);
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 30px;
}

.post-card time {
    color: var(--dim);
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-card h3 {
    margin-top: 12px;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.post-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .link-arrow {
    margin-top: auto;
    padding-top: 22px;
    font-size: .95rem;
}

.stretched::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---------- CTA ---------- */

.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 88px);
    border: 1px solid rgba(34, 211, 238, .25);
    border-radius: clamp(24px, 3vw, 36px);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(34, 211, 238, .22), transparent 55%),
        radial-gradient(80% 120% at 0% 100%, rgba(52, 211, 153, .16), transparent 55%),
        #0b1016;
    text-align: center;
}

.cta .bg-grid {
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%);
}

.cta .h2 {
    max-width: 48rem;
    margin-inline: auto;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.cta .lead {
    margin: 24px auto 0;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

@media (max-width: 520px) {
    .cta__actions .btn { width: 100%; }
}

/* ---------- Formularios ---------- */

.contact {
    display: grid;
    gap: clamp(40px, 6vw, 72px);
}

@media (min-width: 1024px) {
    .contact {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        align-items: start;
    }
}

.contact__info {
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .02);
    color: #fff;
    font-weight: 600;
    transition: border-color .3s, background-color .3s;
    overflow-wrap: anywhere;
}

a.contact-line:hover {
    border-color: rgba(34, 211, 238, .35);
    background: rgba(34, 211, 238, .05);
}

.contact-line small {
    display: block;
    color: var(--dim);
    font-size: .78rem;
    font-weight: 600;
}

.contact-line .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.form-card {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line-2);
    border-radius: clamp(22px, 3vw, 32px);
    background: linear-gradient(180deg, #0f141c, #0b0f15);
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}

.form-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .field--full {
        grid-column: 1 / -1;
    }
}

.field label,
.field legend {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
}

.field .req {
    color: var(--accent);
}

.field fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.input {
    width: 100%;
    min-height: 56px;
    padding: 15px 18px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    color: #fff;
    font-size: 1rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.input::placeholder {
    color: #5b6778;
}

.input:hover {
    border-color: rgba(255, 255, 255, .24);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(34, 211, 238, .04);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .14);
}

textarea.input {
    min-height: 150px;
    resize: vertical;
}

select.input {
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
}

select.input option {
    background: #0d1117;
    color: #fff;
}

.input[aria-invalid="true"] {
    border-color: var(--danger);
}

.field__error {
    margin-top: 8px;
    color: #fda4af;
    font-size: .86rem;
    font-weight: 600;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option {
    position: relative;
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option span {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .02);
    color: var(--soft);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}

.option span:hover {
    border-color: rgba(255, 255, 255, .3);
}

.option input:checked + span {
    border-color: var(--accent);
    background: rgba(34, 211, 238, .1);
    color: #fff;
}

.option input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

.form-actions {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.form-note {
    color: var(--dim);
    font-size: .84rem;
    line-height: 1.6;
    text-align: center;
}

.form-note a {
    color: var(--soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.alert {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px 20px;
    border-radius: 16px;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.55;
}

.alert svg {
    width: 22px;
    height: 22px;
    flex: none;
}

.alert--success {
    border: 1px solid rgba(52, 211, 153, .35);
    background: rgba(52, 211, 153, .08);
    color: #a7f3d0;
}

.alert--error {
    border: 1px solid rgba(251, 113, 133, .35);
    background: rgba(251, 113, 133, .08);
    color: #fecdd3;
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(72px, 9vw, 120px);
    border-top: 1px solid var(--line);
    background: #05070a;
}

.footer-top {
    display: grid;
    gap: 48px;
}

@media (min-width: 1080px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, .7fr));
        gap: 32px;
    }
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
}

@media (min-width: 720px) {
    .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
    .footer-cols { display: contents; }
}

.footer-brand p {
    max-width: 22rem;
    margin-top: 22px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.footer-brand .muted {
    margin-top: 12px;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
}

.footer-col h2 {
    margin-bottom: 18px;
    color: var(--dim);
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col a,
.footer-col li {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color .2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col .is-accent {
    color: var(--accent);
    font-weight: 700;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--soft);
    transition: border-color .2s, color .2s, background-color .2s;
}

.socials a:hover {
    border-color: var(--accent);
    background: rgba(34, 211, 238, .08);
    color: #fff;
}

.socials svg {
    width: 18px;
    height: 18px;
}

.footer-word {
    margin-top: clamp(56px, 8vw, 96px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(4.5rem, 19vw, 17rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: .8;
    text-align: center;
    user-select: none;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: .86rem;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* WhatsApp flotante */

.wa-float {
    position: fixed;
    right: clamp(16px, 2vw, 28px);
    bottom: calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 16px 40px -10px rgba(37, 211, 102, .6);
    transition: transform .3s var(--ease), box-shadow .3s;
}

.wa-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 22px 50px -10px rgba(37, 211, 102, .75);
}

.wa-float svg {
    width: 28px;
    height: 28px;
}

/* ---------- Páginas internas ---------- */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px));
    padding-bottom: clamp(56px, 7vw, 96px);
}

.page-hero .glow--cyan { width: 36rem; height: 36rem; top: -20rem; right: -10rem; }

.page-hero .h1 {
    max-width: 58rem;
    margin-top: 24px;
    font-size: clamp(2.4rem, 5.4vw, 4.25rem);
}

.page-hero .lead {
    margin-top: 24px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    color: var(--dim);
    font-size: .88rem;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: #334155;
}

.breadcrumbs a:hover {
    color: #fff;
}

.empty {
    padding: clamp(40px, 6vw, 72px);
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.empty strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.2rem;
}

/* Galería */

.gallery__stage {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: #0b0f15;
}

.gallery__slide {
    display: none;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    margin-inline: auto;
}

.gallery__slide.is-active {
    display: block;
    animation: fade-in .4s ease;
}

.gallery__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: rgba(7, 9, 13, .75);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background-color .2s, border-color .2s;
}

.gallery__nav:hover {
    border-color: var(--accent);
    background: rgba(7, 9, 13, .95);
}

.gallery__nav svg {
    width: 20px;
    height: 20px;
}

.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }

.gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery__thumb {
    flex: none;
    width: 110px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: #0b0f15;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumb.is-active,
.gallery__thumb:hover {
    border-color: var(--accent);
    opacity: 1;
}

/* Detalle de proyecto */

.project-facts {
    display: grid;
    gap: 1px;
    margin-top: 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

@media (min-width: 720px) {
    .project-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.project-facts div {
    padding: 22px 26px;
    background: var(--bg-2);
}

.project-facts dt {
    color: var(--dim);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 8px 0 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.5;
}

.story {
    display: grid;
    gap: 20px;
}

@media (min-width: 1024px) {
    .story { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.story .card {
    padding: clamp(28px, 3vw, 36px);
}

.story__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.story .card p {
    margin-top: 16px;
    color: var(--soft);
    white-space: pre-line;
    line-height: 1.75;
}

/* Artículo */

.article-cover {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b0f15;
}

.article-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.prose {
    max-width: 70ch;
    margin-inline: auto;
    color: var(--soft);
    font-size: clamp(1.0625rem, 1.3vw, 1.15rem);
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 28px;
    color: var(--dim);
    font-size: .92rem;
}

/* Legal */

.legal h2 {
    margin-top: 48px;
    font-size: 1.5rem;
}

.legal p,
.legal li {
    margin-top: 14px;
    color: var(--soft);
    line-height: 1.8;
}

.legal ul {
    padding-left: 20px;
}

/* Tarjeta de proyecto (grilla) */

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.project-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d1117;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .8s var(--ease);
}

.project-card:hover .project-card__media img {
    transform: scale(1.04);
}

.project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 30px;
}

.project-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
}

.project-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}

/* ---------- Animaciones ---------- */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js [data-parallax] {
    will-change: transform;
}

.hero-enter > * {
    animation: fade-up .9s var(--ease) both;
}

.hero-enter > *:nth-child(2) { animation-delay: .08s; }
.hero-enter > *:nth-child(3) { animation-delay: .16s; }
.hero-enter > *:nth-child(4) { animation-delay: .24s; }
.hero-enter > *:nth-child(5) { animation-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .marquee__track {
        animation: none;
    }

    .marquee {
        flex-wrap: wrap;
        justify-content: center;
    }

    .marquee__track[aria-hidden="true"] {
        display: none;
    }
}

/* ---------- Utilidades ---------- */

.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.mt-xl { margin-top: clamp(64px, 8vw, 104px); }
.center { text-align: center; }
.flex-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.row-between { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }

/* ---------- Nexira PYMES ---------- */

.photo-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 26px;
    background: #0f1520;
    padding: 10px;
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 80px -20px rgba(34, 211, 238, .25);
}

.photo-frame__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 6px 12px;
}

.photo-frame__bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f2937;
}

.photo-frame__media {
    position: relative;
    min-height: clamp(360px, 42vw, 540px);
    overflow: hidden;
    border-radius: 18px;
}

.photo-frame__media img,
.photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-frame__media::after,
.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 9, 13, .95) 5%, rgba(7, 9, 13, .2) 55%, transparent);
}

.photo-frame__caption {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: clamp(22px, 3vw, 36px);
}

.photo-frame__caption p {
    max-width: 30rem;
    margin-top: 14px;
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.photo-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 440px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0d1117;
}

.photo-card img {
    z-index: -2;
    transition: transform 1s var(--ease);
}

.photo-card::after {
    z-index: -1;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card__body {
    padding: 30px;
}

.photo-card__body p {
    margin-top: 10px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.compare {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

@media (min-width: 1024px) {
    .compare { grid-template-columns: 1fr 1fr; }
}

.compare__col {
    padding: clamp(28px, 4vw, 52px);
    background: var(--bg-2);
}

.compare__col--good {
    background:
        radial-gradient(90% 90% at 100% 0%, rgba(34, 211, 238, .12), transparent 60%),
        #0e141c;
    border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
    .compare__col--good {
        border-top: 0;
        border-left: 1px solid var(--line);
    }
}

.compare__col h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
}

.compare__col ul {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.compare__col li {
    position: relative;
    padding-left: 30px;
    color: var(--muted);
    line-height: 1.6;
}

.compare__col li::before {
    content: "×";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--danger);
    font-weight: 800;
}

.compare__col--good li {
    color: var(--soft);
}

.compare__col--good li::before {
    content: "✓";
    color: var(--accent-2);
}

.pain-card {
    padding: clamp(28px, 3vw, 40px);
}

.pain-card h3 {
    margin-top: 18px;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.pain-card p {
    margin-top: 12px;
    color: var(--muted);
}

.info-note {
    max-width: 56rem;
    margin: 32px auto 0;
    padding: 20px 24px;
    border: 1px solid rgba(251, 191, 36, .25);
    border-radius: 18px;
    background: rgba(251, 191, 36, .05);
    color: #fde68a;
    font-size: .9rem;
    line-height: 1.7;
}

.info-note strong {
    display: block;
    color: #fef3c7;
}

@media (max-width: 1023px) {
    .showcase__media { order: -1; }
}

/* Timeline vertical en todos los anchos */
@media (min-width: 1024px) {
    .timeline--vertical { grid-template-columns: 1fr; gap: 0; }
    .timeline--vertical .timeline__item { grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 40px; }
    .timeline--vertical .timeline__item:last-child { padding-bottom: 0; }
    .timeline--vertical .timeline__item::before { left: 27px; right: auto; top: 60px; bottom: 4px; width: 1px; height: auto; }
    .timeline--vertical .timeline__item h3 { padding-top: 12px; }
}

.container--narrow .prose {
    max-width: none;
}

/* ---------- Carrusel del hero (Héroes del panel) ---------- */

.hero-slides {
    display: grid;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slider[data-effect="slide"] .hero-slide {
    transform: translateX(6%);
}

.hero-slider[data-effect="slide"] .hero-slide.is-active {
    transform: none;
}

.hero-slide .solution-visual {
    min-height: clamp(300px, 34vw, 440px);
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 80px -20px rgba(34, 211, 238, .25);
}

.hero-slide .solution-visual > .dash__main,
.hero-slide .solution-visual > .platform,
.hero-slide .solution-visual > .auto-flow {
    min-height: inherit;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin-top: clamp(40px, 5vw, 64px);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(13, 17, 23, .7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hero-controls__btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    transition: border-color .2s, background-color .2s;
}

.hero-controls__btn:hover {
    border-color: var(--accent);
    background: rgba(34, 211, 238, .08);
}

.hero-controls__btn svg {
    width: 18px;
    height: 18px;
}

.hero-controls__dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    transition: width .35s var(--ease), background-color .3s;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--grad);
}

/* ---------- Servicios del panel ---------- */

.icon-box--tag {
    width: auto;
    min-width: 52px;
    padding: 0 12px;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 700;
}

.service-card .service-card__detail {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: #a5f3fc;
    font-size: .95rem;
}

/* ---------- Sobre Nexira ---------- */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.experience {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .02);
    transition: border-color .3s, transform .3s var(--ease);
}

.experience:hover {
    border-color: rgba(34, 211, 238, .3);
    transform: translateY(-3px);
}

.experience strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.experience span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

/* ---------- Footer compacto ---------- */

@media (min-width: 1080px) {
    .footer-top--compact {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (min-width: 720px) {
    .footer-top--compact .footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
