/* ==========================================================================
   XWeb v3
   Radios: tarjetas 24px, bloques destacados 32px, botones y chips en píldora, campos 12px.
   Capas (z-index): 1 contenido sobre fondos, 50 header, 60 enlace de salto.
   ========================================================================== */

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #f6f6f9;
    --surface: #ffffff;
    --ink: #0c0d16;
    --ink-2: #2a2d3c;
    --muted: #5d6173;
    --soft: #7b8094;
    --line: rgba(12, 13, 22, .1);
    --violet: #6a45f0;
    --blue: #3e6bf5;
    --tint: #ece8ff;
    --dark: #0b0c15;
    --danger: #c0283a;
    --grad: linear-gradient(120deg, #7a4bf7 0%, #5a58f6 50%, #3e79f5 100%);
    --shadow: 0 1px 2px rgba(28, 22, 70, .04), 0 12px 32px -12px rgba(28, 22, 70, .16);
    --shadow-lg: 0 2px 4px rgba(28, 22, 70, .04), 0 28px 60px -20px rgba(28, 22, 70, .28);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --container: 1240px;
    --gutter: clamp(20px, 4vw, 40px);
    --r-card: 24px;
    --r-block: 32px;
}

@view-transition { navigation: auto; }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: #fff; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

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

.skip { position: fixed; top: 8px; left: 8px; z-index: 60; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border: 1px solid transparent; border-radius: 999px;
    font-weight: 500; font-size: 1rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 10px 18px; font-size: .925rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--violet); box-shadow: 0 10px 24px -10px rgba(106, 69, 240, .7); }
.btn-ghost { border-color: rgba(12, 13, 22, .16); }
.btn-ghost:hover { background: var(--surface); border-color: rgba(12, 13, 22, .3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .36); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--violet); }
.link-arrow .ico { transition: transform .4s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

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

.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; }

.header { position: fixed; inset: 12px 0 auto; z-index: 50; padding-inline: clamp(12px, 3vw, 28px); }
.header-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    max-width: calc(var(--container) + 72px); height: 60px; margin-inline: auto; padding: 0 10px 0 22px;
    /* Vidrio esmerilado: fondo translúcido, desenfoque de lo que pasa por detrás y un filo de luz en el borde */
    background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .6)); border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
    -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(12, 13, 22, .05), 0 8px 24px -14px rgba(28, 22, 70, .18);
    transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.header.is-scrolled .header-bar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(12, 13, 22, .07), 0 14px 36px -14px rgba(28, 22, 70, .3); }
/* Sin soporte de desenfoque, o si el usuario pide menos transparencia, el fondo pasa a ser casi opaco */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .header-bar { background: rgba(255, 255, 255, .94); } }
@media (prefers-reduced-transparency: reduce) { .header-bar { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 78px; height: 30px; }

.nav { display: flex; align-items: center; gap: 4px; }
.header-bar { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    background: none; border: 0; border-radius: 999px; cursor: pointer;
    font-size: .95rem; font-weight: 500; color: var(--ink);
    transition: background-color .25s, color .25s;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"] { background: rgba(12, 13, 22, .06); color: var(--ink); }
.nav-link .ico { width: .8em; height: .8em; transition: transform .3s var(--ease); }
.has-menu:hover .nav-link .ico, .nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }

.menu {
    position: absolute; top: calc(100% + 10px); left: 50%; width: min(1120px, 100%);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.menu::before { content: ""; position: absolute; inset: -24px 0 auto; height: 24px; }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.is-open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu-link { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; transition: background-color .25s; }
.menu-link:hover { background: var(--bg); }
.menu-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tint); color: var(--violet); }
.menu-link strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.menu-link small { display: block; margin-top: 3px; font-size: .82rem; line-height: 1.4; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(12, 13, 22, .06); cursor: pointer; }
.burger span { position: absolute; left: 12px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-nav {
    display: grid; gap: 2px; max-width: calc(var(--container) + 72px); margin: 8px auto 0; padding: 20px;
    max-height: calc(100dvh - 100px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
    animation: drop .4s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-title { padding: 0 10px 6px; font-size: .82rem; color: var(--muted); }
.mobile-link { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; font-weight: 500; }
.mobile-link:hover { background: var(--bg); }
.mobile-link .ico { color: var(--violet); }
.mobile-nav hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }

@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

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

.hero, .page-hero {
    background:
        radial-gradient(55% 60% at 85% 0%, rgba(106, 69, 240, .13), transparent 70%),
        radial-gradient(40% 50% at 5% 0%, rgba(62, 107, 245, .09), transparent 70%);
}

.hero { padding: 128px 0 56px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: min(calc(100dvh - 190px), 640px); }

.hero h1 { font-size: clamp(2.75rem, 6.3vw, 5.4rem); line-height: 1; letter-spacing: -.05em; }
.hero h1 span { color: var(--soft); }
.lead { max-width: 56ch; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.js [data-hero] { animation: rise 1s var(--ease) both; }
.js [data-hero]:nth-child(2) { animation-delay: .09s; }
.js [data-hero]:nth-child(3) { animation-delay: .18s; }
.js [data-hero]:nth-child(4) { animation-delay: .27s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.hero-art { position: relative; justify-self: end; width: min(100%, 520px); aspect-ratio: 1; --mx: 0; --my: 0; }
.art-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(106, 69, 240, .38), rgba(62, 121, 245, .16) 55%, transparent 72%); filter: blur(36px); }
.art-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.art-ring-1 { inset: 2%; border-style: dashed; animation: spin 90s linear infinite; }
.art-ring-2 { inset: 20%; background: rgba(255, 255, 255, .45); }
@keyframes spin { to { transform: rotate(360deg); } }

[data-depth] { transform: translate3d(calc(var(--mx) * var(--d, 0) * 1px), calc(var(--my) * var(--d, 0) * 1px), 0); transition: transform .9s var(--ease); }

.art-x { position: absolute; inset: 27%; }
.art-bar { position: absolute; top: 50%; left: 50%; width: 34%; height: 132%; border-radius: 26px; }
.art-bar-a { background: var(--grad); box-shadow: 0 30px 60px -18px rgba(90, 88, 246, .65); transform: translate(-50%, -50%) rotate(40deg); animation: bar-a 1.3s var(--ease) both .15s; }
.art-bar-b {
    background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .34));
    border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 44px -18px rgba(28, 22, 70, .32);
    -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
    transform: translate(-50%, -50%) rotate(-40deg); animation: bar-b 1.3s var(--ease) both .3s;
}
@keyframes bar-a { from { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scaleY(.2); } }
@keyframes bar-b { from { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scaleY(.2); } }

.art-chip { position: absolute; }
.art-chip > span {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 11px;
    background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: .875rem; font-weight: 500; white-space: nowrap;
    animation: rise 1s var(--ease) both, float 7s ease-in-out infinite 1.2s;
}
.art-chip .ico { color: var(--violet); }
.art-chip-1 { top: 7%; left: 4%; }
.art-chip-2 { top: 17%; right: -2%; }
.art-chip-3 { top: 46%; left: -6%; }
.art-chip-4 { top: 55%; right: -5%; }
.art-chip-5 { bottom: 13%; left: 6%; }
.art-chip-6 { bottom: 3%; right: 7%; }
.art-chip-7 { top: 27%; left: -11%; }
.art-chip-8 { top: 36%; right: -9%; }
.art-chip-1 > span { animation-delay: .5s, 1.5s; }
.art-chip-2 > span { animation-delay: .6s, 2.4s; }
.art-chip-3 > span { animation-delay: .7s, 1.9s; }
.art-chip-4 > span { animation-delay: .8s, 3.1s; }
.art-chip-5 > span { animation-delay: .9s, 2.7s; }
.art-chip-6 > span { animation-delay: 1s, 3.6s; }
.art-chip-7 > span { animation-delay: 1.1s, 2.1s; }
.art-chip-8 > span { animation-delay: 1.2s, 2.9s; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* Tecnologías -------------------------------------------------------------- */

.tech { padding: 28px 0 8px; }
.tech-title { margin-bottom: 22px; font-size: .9rem; color: var(--muted); }
.marquee { 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; width: max-content; animation: marquee 68s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.marquee li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tech-logo { width: 26px; height: 26px; fill: currentColor; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones ---------------------------------------------------------------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.h-sm { margin-bottom: 28px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.eyebrow { margin-bottom: 16px; font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Bento de servicios -------------------------------------------------------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card {
    position: relative; isolation: isolate; overflow: hidden; grid-column: span 5;
    display: flex; flex-direction: column; min-height: 320px; padding: clamp(24px, 3vw, 36px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    transition: opacity .9s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease);
}
.bento-card:nth-child(1), .bento-card:nth-child(4), .bento-card:nth-child(5), .bento-card:nth-child(8) { grid-column: span 7; }
.js .bento-card.is-in:hover, .bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); transition-delay: 0s; }

.bento-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--violet); font-size: 1.3rem; }
.bento-body { margin-top: auto; padding-top: 48px; }
.bento-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.bento-body p { margin-top: 10px; max-width: 44ch; color: var(--muted); }
.bento-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.bento-arrow { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .5s var(--ease), background-color .3s; }
.bento-card:hover .bento-arrow { transform: rotate(45deg); background: var(--violet); }

.bento-tint { background: var(--tint); border-color: transparent; }
.bento-tint .bento-ico { background: #fff; }
.bento-tint .tags span { border-color: rgba(106, 69, 240, .22); }

.bento-ink, .bento-brand, .bento-photo { color: #fff; border-color: transparent; }
.bento-ink { background: radial-gradient(90% 90% at 100% 0%, rgba(106, 69, 240, .5), transparent 60%), var(--dark); }
.bento-brand { background: var(--grad); }
.bento-photo { background: var(--dark); }
.bento-ink p, .bento-brand p, .bento-photo p { color: rgba(255, 255, 255, .82); }
.bento-ink .bento-ico, .bento-brand .bento-ico, .bento-photo .bento-ico { background: rgba(255, 255, 255, .14); color: #fff; }
.bento-ink .tags span, .bento-brand .tags span, .bento-photo .tags span { border-color: rgba(255, 255, 255, .3); color: #fff; }
.bento-ink .bento-arrow, .bento-brand .bento-arrow, .bento-photo .bento-arrow { background: #fff; color: var(--ink); }
.bento-card.bento-ink:hover .bento-arrow, .bento-card.bento-brand:hover .bento-arrow, .bento-card.bento-photo:hover .bento-arrow { background: #fff; color: var(--violet); }
.bento-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1.4s var(--ease); }
.bento-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 12, 21, .25) 0%, rgba(11, 12, 21, .9) 62%); }
.bento-photo:hover .bento-bg { transform: scale(1.05); }

/* Bloque en dos columnas ---------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 112px; }
.split-head .link-arrow { margin-top: 28px; }

.reasons li { display: flex; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.reasons li:first-child { padding-top: 0; border-top: 0; }
.reasons li:last-child { padding-bottom: 0; }
.reasons .ico { width: 30px; height: 30px; margin-top: 2px; color: var(--violet); }
.reasons h3 { font-size: 1.3rem; }
.reasons p { margin-top: 8px; color: var(--muted); max-width: 56ch; }

/* Infraestructura ----------------------------------------------------------- */

.infra-section { padding-inline: clamp(12px, 2vw, 24px); }
#opiniones + .infra-section { padding-top: 0; }
.infra { position: relative; isolation: isolate; overflow: hidden; max-width: 1400px; margin-inline: auto; padding: clamp(36px, 7vw, 96px); background: var(--dark); color: #fff; border-radius: var(--r-block); }
.infra::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 78% 18%, rgba(106, 69, 240, .34), transparent 70%); }
.infra-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }

.infra-map { position: relative; aspect-ratio: 4 / 3; }
.infra-map > img { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.infra-routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.infra-routes path { stroke: #9d8bff; stroke-width: 1.4; stroke-linecap: round; opacity: .7; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .5s; }
.infra.is-in .infra-routes path, html:not(.js) .infra-routes path { stroke-dashoffset: 0; }
.node { position: absolute; width: 0; height: 0; }
.node i { position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: #b7a6ff; box-shadow: 0 0 0 3px rgba(183, 166, 255, .22); }
.node i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #b7a6ff; animation: ping 3s ease-out infinite; }
.node b { position: absolute; top: 0; left: 13px; transform: translateY(-50%); font-size: .8rem; font-weight: 500; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, .88); }
.node-l b { left: auto; right: 13px; }
.node-t b { top: auto; bottom: 12px; left: 0; transform: translateX(-50%); }
.node-main i { top: -7px; left: -7px; width: 14px; height: 14px; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .2); }
.node-main i::after { border-color: #fff; }
.node-main b { right: 18px; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; }
@keyframes ping { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(3.4); opacity: 0; } }

.infra-mid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.infra-ba { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-card); }
.infra-ba > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.infra-ba::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 12, 21, .94) 30%, rgba(24, 16, 70, .7)); }
.infra-ba .ico { width: 28px; height: 28px; color: #b7a6ff; }
.infra-ba h3 { margin-top: 18px; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.infra-ba p { margin-top: 10px; max-width: 58ch; color: rgba(255, 255, 255, .82); }
.infra-regions { display: grid; align-content: center; gap: 0; padding: 8px clamp(22px, 3vw, 32px); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-card); }
.infra-regions div { display: grid; grid-template-columns: 116px 1fr; gap: 2px 18px; padding: 16px 0; }
.infra-regions div + div { border-top: 1px solid rgba(255, 255, 255, .12); }
.infra-regions dt { grid-row: span 3; padding-top: 2px; font-size: .88rem; color: rgba(255, 255, 255, .62); }
.infra-regions dd { grid-column: 2; font-weight: 500; }
.infra-mid-solo { grid-template-columns: 1fr; }
.infra-mid-solo .infra-regions { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.infra-mid-solo .infra-regions div + div { border-top: 0; }
.infra-content { max-width: 560px; }
.infra-content p { margin-top: 20px; font-size: 1.1rem; color: rgba(255, 255, 255, .8); }
.infra-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.infra-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(32px, 4vw, 48px); }
.infra-facts .ico { width: 26px; height: 26px; margin-bottom: 14px; color: #b7a6ff; }
.infra-facts strong { display: block; font-size: 1.1rem; font-weight: 600; }
.infra-facts span { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }

/* Proceso ------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 180ms + 200ms); }
.steps li.is-in::before, html:not(.js) .steps li::before { transform: none; }
.steps h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.steps p { margin-top: 10px; color: var(--muted); }

/* Empresa ------------------------------------------------------------------- */

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-figure strong { display: block; font-size: clamp(5.5rem, 14vw, 11rem); font-weight: 600; line-height: .9; letter-spacing: -.07em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.about-figure span { display: block; max-width: 22ch; margin-top: 18px; font-size: 1.1rem; line-height: 1.4; color: var(--muted); }
.about-text p { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Opiniones ----------------------------------------------------------------- */

.reviews { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.reviews-head { position: sticky; top: 112px; }
.reviews-score { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.reviews-score strong { font-size: clamp(3.4rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.reviews-score span { display: block; font-size: .95rem; color: var(--muted); }
.reviews-score .stars { display: flex; gap: 2px; margin-bottom: 6px; color: #f5a623; }
.stars .ico { width: 20px; height: 20px; }
.reviews-head .link-arrow { margin-top: 28px; }
.reviews-list { columns: 2; column-gap: 16px; }
.review { break-inside: avoid; margin-bottom: 16px; padding: clamp(22px, 2.6vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.review-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--tint); color: var(--violet); font-weight: 600; }
.review figcaption strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.review figcaption small { display: block; font-size: .82rem; color: var(--muted); }
.review-main { background: var(--dark); border-color: transparent; color: #fff; }
.review-main blockquote p { font-size: 1.2rem; color: #fff; }
.review-main .review-avatar { background: rgba(255, 255, 255, .14); color: #fff; }
.review-main figcaption small { color: rgba(255, 255, 255, .65); }

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

.cta-section { padding-top: 0; }
.section-alt + .cta-section, .section-tight + .cta-section { padding-top: clamp(48px, 6vw, 80px); }
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 8vw, 104px) clamp(24px, 5vw, 64px); background: var(--grad); color: #fff; border-radius: var(--r-block); text-align: center; }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; top: 50%; right: 4%; width: 110px; height: 150%; border-radius: 40px; background: rgba(255, 255, 255, .09); }
.cta::before { transform: translateY(-50%) rotate(40deg); }
.cta::after { transform: translateY(-50%) rotate(-40deg); }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { max-width: 46ch; margin: 20px auto 0; font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

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

.page-hero { padding: 148px 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.page-hero .lead { margin-top: 24px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }

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

.ficha { padding: 6px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.ficha div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; }
.ficha div + div { border-top: 1px solid var(--line); }
.ficha dt { font-size: .92rem; color: var(--muted); }
.ficha dd { font-size: .95rem; font-weight: 500; text-align: right; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features li { padding: clamp(24px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.features .ico { width: 30px; height: 30px; color: var(--violet); }
.features h3 { margin-top: 26px; }
.features p { margin-top: 8px; font-size: 1rem; color: var(--muted); }

.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); background: radial-gradient(70% 90% at 0% 0%, rgba(62, 107, 245, .5), transparent 65%), var(--dark); color: #fff; border-radius: var(--r-block); }
.product-intro img { width: 56px; height: 56px; border-radius: 14px; }
.product-intro h2 { margin-top: 24px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.product-intro p { margin-top: 16px; color: rgba(255, 255, 255, .8); }
.product-intro .btn { margin-top: 30px; }
.product-items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: center; }
.product-items .ico { width: 26px; height: 26px; color: #b7a6ff; }
.product-items h3 { margin-top: 12px; font-size: 1.08rem; }
.product-items p { margin-top: 6px; font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.product-section { padding-top: 0; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--tint); border-radius: var(--r-card); }
.platforms li { padding: clamp(24px, 3vw, 38px); }
.platforms li + li { border-left: 1px solid rgba(106, 69, 240, .18); }
.platform-logo { width: 38px; height: 38px; fill: currentColor; color: var(--violet); }
.platforms h3 { margin-top: 22px; font-size: 1.5rem; letter-spacing: -.02em; }
.platforms p { margin-top: 8px; color: var(--ink-2); }
.platforms-section { padding-bottom: 0; }

.prose p + p { margin-top: 1.2em; }
.prose p { font-size: 1.12rem; color: var(--ink-2); max-width: 64ch; }
.prose h3 { margin: 48px 0 18px; font-size: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 500; }
.chips .ico { width: 1em; height: 1em; color: var(--violet); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet); }
.faq summary .ico { transition: transform .4s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); max-width: 68ch; }
.faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* Se acomodan solos: tantos por fila como entren, y la última fila se estira para no dejar huecos */
.others { display: flex; flex-wrap: wrap; gap: 12px; }
.others a { position: relative; flex: 1 1 150px; display: flex; flex-direction: column; gap: 18px; min-height: 148px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: opacity .9s var(--ease), transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.others a:hover { border-color: rgba(106, 69, 240, .4); box-shadow: var(--shadow); transform: translateY(-3px); }
.others .ico { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--tint); color: var(--violet); }
.others strong { margin-top: auto; font-weight: 500; line-height: 1.25; }
.others .others-arrow { position: absolute; top: 20px; right: 18px; width: 1.15em; height: 1.15em; padding: 0; border-radius: 0; background: none; color: var(--soft); transition: transform .4s var(--ease), color .3s; }
.others a:hover .others-arrow { transform: translate(2px, -2px); color: var(--violet); }

/* Contacto ------------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { display: grid; gap: 22px; margin-top: 44px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .ico { width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--violet); }
.contact-list span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.3; }
.contact-list a { font-weight: 500; }
.contact-list a:hover { color: var(--violet); }

.form-card { padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-block); box-shadow: var(--shadow-lg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: .92rem; font-weight: 500; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    display: block; width: 100%; padding: 13px 14px; font-size: 1rem; line-height: 1.4;
    background: #fff; color: var(--ink); border: 1px solid rgba(12, 13, 22, .22); border-radius: 12px;
    transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(12, 13, 22, .42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(106, 69, 240, .16); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error, .form-error { font-size: .88rem; color: var(--danger); }
.field-error:empty, .form-error:empty { display: none; }
.field-error { margin-top: 6px; }
.form-error { margin-bottom: 18px; padding: 12px 14px; background: #fdecee; border-radius: 12px; }
.form-note { margin-top: 16px; font-size: .88rem; color: var(--muted); text-align: center; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.captcha { margin-bottom: 18px; }
.captcha .g-recaptcha { min-height: 78px; transform-origin: left top; }
@media (max-width: 400px) { .captcha .g-recaptcha { transform: scale(.88); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { padding: 40px 0; text-align: center; }
.form-success[hidden] { display: none; }
.form-success .ico { width: 64px; height: 64px; margin: 0 auto 24px; padding: 16px; border-radius: 50%; background: var(--tint); color: var(--violet); }
.form-success h2 { font-size: 1.8rem; }
.form-success p { max-width: 36ch; margin: 12px auto 0; color: var(--muted); }
.form-success:focus { outline: 0; }

/* Legales y 404 ------------------------------------------------------------- */

.legal { max-width: 860px; }
.prose-legal { margin-top: 40px; font-size: 1.02rem; color: var(--ink-2); }
.prose-legal h2 { margin: 44px 0 14px; font-size: 1.45rem; letter-spacing: -.02em; }
.prose-legal p { font-size: 1.02rem; margin-top: 1em; }
.prose-legal ul, .prose-legal ol { margin: 14px 0; padding-left: 22px; list-style: disc; }
.prose-legal ol { list-style: decimal; }
.prose-legal a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

.notfound { min-height: 70dvh; display: grid; align-items: center; }

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

.footer { margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(56px, 7vw, 88px); background: var(--dark); color: rgba(255, 255, 255, .7); font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 176px; height: 68px; }
.footer-about p { max-width: 34ch; margin-top: 20px; }
.footer-opta a { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 500; }
.footer-opta .ico { width: .9em; height: .9em; }
.footer h2 { margin-bottom: 16px; font-size: .95rem; letter-spacing: 0; color: #fff; }
.footer li + li { margin-top: 9px; }
.footer a { transition: color .25s; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(40px, 6vw, 72px); padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer-bottom p:last-child { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 1020px) {
    .nav { display: none; }
    .burger { display: block; }
    .header-bar { padding-left: 20px; }
}

@media (max-width: 900px) {
    .hero { padding-top: 116px; }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-art { justify-self: center; width: min(86%, 400px); margin-top: 8px; }
    .art-chip > span { font-size: .8rem; padding: 7px 12px 7px 9px; }

    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .bento-card { grid-column: span 1; min-height: 280px; }

    .split, .about, .faq-wrap, .contact-grid, .page-hero-grid, .infra-top, .infra-mid, .product, .reviews { grid-template-columns: 1fr; }
    .reviews-head { position: static; }
    .split-head { position: static; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .page-hero { padding-top: 124px; }
    .cta::before, .cta::after { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .header-actions .btn { display: none; }
    .bento, .features, .steps, .infra-facts, .field-row, .product-items, .platforms { grid-template-columns: 1fr; }
    .platforms li + li { border-left: 0; border-top: 1px solid rgba(106, 69, 240, .18); }
    .field-row { gap: 0; }
    .reviews-list { columns: 1; }
    .bento .bento-card { min-height: 0; }
    .bento-body { padding-top: 36px; }
    .hero-actions .btn, .cta-actions .btn, .infra-actions .btn { width: 100%; }
    .art-chip-3 { left: -2%; }
    .art-chip-4 { right: -2%; }
    .marquee ul { gap: 40px; padding-right: 40px; }
    .node b { font-size: .7rem; }
    .infra-mid-solo .infra-regions { grid-template-columns: 1fr; gap: 0; }
    .infra-mid-solo .infra-regions div + div { border-top: 1px solid rgba(255, 255, 255, .12); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .marquee { overflow-x: auto; }
    @view-transition { navigation: none; }
}
