/* ==========================================================================
   FREQUENCY by MACH⁴ – Landing
   Sistema visual: documento de diseño web (sección 3)
   ========================================================================== */

:root {
    --bg: #05060A;
    --card: #0D0F16;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .16);
    --text: #FFFFFF;
    --muted: #A8ADBA;

    --m: #E6197E;
    --a: #F5B335;
    --c: #3B82F6;
    --h: #4CC77A;
    --spectrum: linear-gradient(90deg, var(--m), var(--a), var(--c), var(--h));

    --f-head: 'Sora', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, sans-serif;

    --wrap: 1280px;
    --gutter: 64px;
    --sec: 140px;
    --r: 22px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: 600ms;
}

@media (max-width: 900px) {
    :root { --gutter: 24px; --sec: 84px; }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.freq {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 18px/1.6 var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
@media (max-width: 900px) { body.freq { font-size: 16px; } }

.freq :where(h1, h2, h3) {
    font-family: var(--f-head);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0;
}
.freq :where(p) { margin: 0; }
.freq :where(a) { color: inherit; }
.freq :where(button) { font: inherit; color: inherit; cursor: pointer; }
.freq :focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.freq [hidden] { display: none !important; }
.f-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.f-skip:focus { top: 16px; }

.f-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.f-wrap--narrow { max-width: 920px; }

.t-m { color: var(--m); } .t-a { color: var(--a); } .t-c { color: var(--c); } .t-h { color: var(--h); }
[data-f="m"] { --fc: var(--m); } [data-f="a"] { --fc: var(--a); } [data-f="c"] { --fc: var(--c); } [data-f="h"] { --fc: var(--h); }

/* ── Tipografía ───────────────────────────────────────────────────────── */

.f-eyebrow {
    font: 400 13px/1 var(--f-head);
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}
.freq :where(h1) { font-size: clamp(40px, 6.2vw, 84px); }
.freq :where(h2) { font-size: clamp(30px, 3.6vw, 50px); }
.freq :where(h3), .f-h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; }
.f-lead, .f-sub { color: var(--muted); max-width: 60ch; }
.f-lead { font-size: clamp(16px, 1.35vw, 20px); }
.f-sub { margin-top: 18px; }
.f-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.f-disclaimer { font-size: 13px; color: var(--muted); opacity: .7; margin-top: 18px; }

.f-head { margin-bottom: 64px; max-width: 760px; }
.f-head--center { margin-inline: auto; text-align: center; }
.f-head--center .f-sub { margin-inline: auto; }

.f-statement {
    font: 300 clamp(24px, 2.8vw, 38px)/1.3 var(--f-head);
    text-align: center;
    max-width: 30ch;
    margin: 96px auto 0;
    color: var(--muted);
}
.f-statement em { font-style: normal; color: var(--text); }

/* ── Logo ─────────────────────────────────────────────────────────────── */

.f-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.f-logo__word { font: 300 22px/1 var(--f-head); letter-spacing: .42em; margin-right: -.42em; }
.f-logo__sub { display: flex; align-items: center; gap: 10px; margin-top: 6px; width: 100%; }
.f-logo__line { flex: 1; height: 1.5px; border-radius: 2px; }
.f-logo__line--l { background: linear-gradient(90deg, transparent, var(--m), var(--a)); }
.f-logo__line--r { background: linear-gradient(90deg, var(--c), var(--h), transparent); }
.f-logo__mach { font: 600 12px/1 var(--f-head); letter-spacing: .04em; position: relative; padding-right: .95em; }
.f-logo__mach b { font-weight: 600; }
.f-logo__mach .m { color: var(--m); } .f-logo__mach .a { color: var(--a); } .f-logo__mach .c { color: var(--c); } .f-logo__mach .h { color: var(--h); }
.f-four {
    position: absolute; right: 0; top: -.55em;
    width: .95em; height: .95em; font-size: .78em; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-weight: 600;
    background: radial-gradient(var(--bg) 58%, transparent 60%), conic-gradient(var(--m), var(--a), var(--c), var(--h), var(--m));
}
.f-logo--sm .f-logo__word { font-size: 15px; }
.f-logo--sm .f-logo__mach { font-size: 10px; }
.f-logo--lg .f-logo__word { font-size: clamp(30px, 5vw, 56px); }
.f-logo--lg .f-logo__mach { font-size: clamp(16px, 2.2vw, 26px); }
.f-logo--lg .f-logo__sub { margin-top: 14px; gap: 18px; }

/* ── Botones ──────────────────────────────────────────────────────────── */

.f-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: 999px;
    font: 500 15px/1 var(--f-body); letter-spacing: .02em; text-decoration: none;
    border: 1px solid transparent; background: #fff; color: var(--bg);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color .3s, background .3s;
}
.f-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255, 255, 255, .18); }
.f-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.f-btn--ghost:hover { border-color: #fff; }
.f-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.f-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.f-actions--center { justify-content: center; }
.f-link { background: none; border: 0; padding: 0; text-align: left; }

/* IKI avatar: círculo luminoso */
.f-iki-avatar {
    display: inline-block; width: 28px; height: 28px; border-radius: 50%; flex: none; position: relative;
    background: radial-gradient(circle at 50% 50%, #0b0d14 52%, transparent 54%), conic-gradient(var(--m), var(--a), var(--c), var(--h), var(--m));
    box-shadow: 0 0 14px rgba(59, 130, 246, .25);
    animation: f-spin 12s linear infinite;
}
.f-iki-avatar::after {
    content: ''; position: absolute; inset: 35%; border-radius: 50%;
    background: radial-gradient(#fff, rgba(255, 255, 255, .2) 70%);
}
.f-iki-avatar--lg { width: 64px; height: 64px; }
@keyframes f-spin { to { transform: rotate(360deg); } }
.f-dot-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--h); box-shadow: 0 0 0 3px rgba(76, 199, 122, .2); }

.f-btn-iki {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px;
    border-radius: 999px; border: 1px solid var(--line-2); background: rgba(13, 15, 22, .8);
    font-size: 14px; font-weight: 500; transition: border-color .3s;
}
.f-btn-iki:hover { border-color: rgba(255, 255, 255, .5); }

/* ── Progreso ─────────────────────────────────────────────────────────── */

.f-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.f-progress span { display: block; height: 100%; width: 100%; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Navegación ───────────────────────────────────────────────────────── */

.f-nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.f-nav__pill {
    max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 28px;
    padding: 10px 10px 10px 26px; border-radius: 999px;
    background: rgba(5, 6, 10, .55); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.f-nav__brand { text-decoration: none; }
.f-nav__links { display: flex; gap: 26px; margin-left: auto; }
.f-nav__links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .3s; }
.f-nav__links a:hover { color: #fff; }
.f-nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.f-nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.f-nav__burger span:first-child { top: 18px; } .f-nav__burger span:last-child { top: 25px; }
.f-nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.f-nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1080px) {
    .f-nav__pill { gap: 8px; padding-left: 20px; }
    .f-nav__links {
        position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; gap: 0;
        background: rgba(13, 15, 22, .96); border: 1px solid var(--line); border-radius: var(--r); padding: 8px;
        opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
    }
    .f-nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .f-nav__links a { padding: 14px 16px; font-size: 16px; color: #fff; }
    .f-nav__burger { display: block; }
    .f-btn-iki { margin-left: auto; }
}
@media (max-width: 420px) { .f-btn-iki > span:nth-child(2) { display: none; } .f-btn-iki { padding: 0 12px 0 8px; } }

/* ── Waves canvas ─────────────────────────────────────────────────────── */

.f-waves { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ── 1. Hero ──────────────────────────────────────────────────────────── */

.f-hero {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
    padding: 140px 0 120px; overflow: hidden; isolation: isolate;
}
.f-hero::before { /* grano */
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.f-hero__shade { /* vignette + degradado bajo el texto */
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse 62% 70% at 24% 50%, rgba(5, 6, 10, .94) 35%, rgba(5, 6, 10, .6) 60%, transparent 80%),
        radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .7));
}
.f-hero .f-waves { z-index: 0; }
.f-hero__inner { z-index: 3; width: 100%; }
.f-hero h1 { max-width: 12ch; }
.f-hero__colors { font: 400 clamp(17px, 1.6vw, 22px)/1.4 var(--f-head); margin: 28px 0 22px; letter-spacing: .01em; }
.f-hero__tag {
    position: absolute; right: var(--gutter); bottom: 64px; z-index: 3; text-align: right;
    font: 400 12px/2 var(--f-head); letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) {
    .f-hero { align-items: flex-start; padding-top: 128px; }
    .f-hero__shade { background: linear-gradient(180deg, rgba(5, 6, 10, .9) 0 50%, transparent 72%); }
    .f-hero .f-actions { flex-direction: column; }
    .f-hero .f-btn { width: 100%; }
    .f-hero__tag { display: none; }
}

/* ── Secciones ────────────────────────────────────────────────────────── */

.f-section { padding: var(--sec) 0; position: relative; }
.f-section--tight { padding-top: 0; }

.f-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; }
@media (max-width: 600px) { .f-panel { padding: 24px; } }

.f-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .f-split { grid-template-columns: 1fr; } }

/* ── 2. Tarjetas de frecuencia ────────────────────────────────────────── */

.f-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.f-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: 36px 26px 30px; text-align: center; outline: none;
    transition: filter .5s var(--ease), border-color .5s, box-shadow .5s var(--ease), transform .5s var(--ease);
}
.f-cards.has-focus .f-card:not(.is-on) { filter: brightness(.5); }
.f-card.is-on { border-color: color-mix(in srgb, var(--fc) 55%, transparent); box-shadow: 0 0 60px -10px color-mix(in srgb, var(--fc) 30%, transparent); transform: translateY(-4px); }
.f-card h3 { color: var(--fc); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-top: 28px; }
.f-card__frase { margin-top: 12px; }
.f-card__claves { margin-top: 14px; font-size: 14px; color: var(--muted); }
.f-card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); font-size: 15px; color: var(--muted); text-align: left; }
.f-card__more > div { overflow: hidden; min-height: 0; }
.f-card__more p:first-child { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 20px; }
.f-card__more p + p { margin-top: 10px; }
.f-card__more span { color: var(--fc); }
.f-card.is-on .f-card__more { grid-template-rows: 1fr; }

.f-orb { width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; position: relative; }
.f-orb::before { /* aro */
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 200deg, var(--fc), color-mix(in srgb, var(--fc) 30%, #fff), var(--fc));
    -webkit-mask: radial-gradient(circle, transparent 61px, #000 62px); mask: radial-gradient(circle, transparent 61px, #000 62px);
    box-shadow: 0 0 34px color-mix(in srgb, var(--fc) 28%, transparent);
}
.f-orb span { /* paisaje abstracto: horizonte + luz */
    position: absolute; inset: 8px; border-radius: 50%; overflow: hidden;
    background:
        radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--fc) 75%, #fff) 0 6%, transparent 30%),
        linear-gradient(180deg, #0a0c13 0 45%, color-mix(in srgb, var(--fc) 35%, #0a0c13) 62%, #07080d 63% 100%);
}
.f-orb span::after { /* línea de onda */
    content: ''; position: absolute; left: -10%; right: -10%; top: 58%; height: 30px; border-top: 1.5px solid var(--fc);
    border-radius: 50%; opacity: .8; filter: drop-shadow(0 0 4px var(--fc));
}

@media (max-width: 1000px) {
    .f-cards {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
        overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px;
        margin: 0 calc(var(--gutter) * -1); scrollbar-width: none;
    }
    .f-cards::-webkit-scrollbar { display: none; }
    .f-card { scroll-snap-align: center; }
}
@media (min-width: 560px) and (max-width: 1000px) { .f-cards { grid-auto-columns: 46%; } }

/* ── 3. Mini-test ─────────────────────────────────────────────────────── */

.f-quiz { overflow: hidden; }
.f-quiz .f-waves--quiz { opacity: .9; }
.f-quiz .f-wrap { z-index: 1; }
.f-quiz__card {
    max-width: 760px; margin: 0 auto; position: relative; overflow: hidden;
    background: rgba(13, 15, 22, .82); border: 1px solid var(--line); border-radius: 28px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding: 56px clamp(24px, 5vw, 56px); min-height: 420px; display: flex; flex-direction: column; justify-content: center;
}
.f-quiz__bar { position: absolute; inset: 0 0 auto; height: 2px; background: var(--line); }
.f-quiz__bar span { display: block; height: 100%; width: 0; background: #fff; transition: width .6s var(--ease); }
.f-quiz__intro { text-align: center; color: var(--muted); }
.f-quiz__intro .f-btn { margin-top: 28px; }
.f-quiz__intro .f-quiz__mail { margin-top: 24px; padding-top: 0; border-top: 0; }
.f-quiz__intro .f-quiz__fields .f-btn { margin-top: 8px; }
.f-quiz__count { font: 400 13px/1 var(--f-head); letter-spacing: .24em; color: var(--muted); margin-bottom: 18px; }
.f-quiz__q h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; margin-bottom: 32px; }
.f-quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-quiz__opt {
    min-height: 64px; padding: 16px 20px; text-align: left; border-radius: 16px;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); font-size: 16px; line-height: 1.35;
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.f-quiz__opt:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.f-quiz__opt.is-picked { background: #fff; color: var(--bg); }
@media (max-width: 640px) { .f-quiz__opts { grid-template-columns: 1fr; } .f-quiz__opt { min-height: 56px; } }

.f-quiz__result { text-align: center; }
.f-quiz__pre { color: var(--muted); }
.f-quiz__dom {
    font: 300 clamp(40px, 6vw, 72px)/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase;
    color: var(--fc); margin: 14px 0 32px; text-shadow: 0 0 40px color-mix(in srgb, var(--fc) 30%, transparent);
}
.f-quiz__read { max-width: 52ch; margin: 32px auto 0; font-size: 18px; line-height: 1.5; color: #fff; }
.f-quiz__dev { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.f-quiz__dev strong { color: var(--fc); font-weight: 500; }
.f-quiz__note { color: var(--muted); max-width: 52ch; margin: 28px auto 0; font-size: 16px; }
.f-quiz__note em { color: #fff; font-style: normal; }
.f-quiz__mail { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.f-quiz__mail label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.f-quiz__mail div { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.f-quiz__mail input, .f-iki__input input {
    flex: 1; min-width: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: #fff;
}
.f-quiz__mail-ok { margin-top: 12px; color: var(--h); font-size: 14px; }
.f-quiz__mail-title { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.f-quiz__mail .f-quiz__fields { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 420px; }
.f-quiz__mail .f-quiz__fields[hidden] { display: none; }
.f-quiz__mail .f-quiz__fields .f-btn { justify-self: center; min-width: 160px; }
.f-quiz__mail input[aria-invalid="true"] { border-color: var(--m); }
.f-quiz__mail-err { margin: 12px auto 0; max-width: 420px; color: var(--m); font-size: 14px; }.f-bars--compact { max-width: 440px; margin: 0 auto; text-align: left; }

/* ── Barras de resultado ──────────────────────────────────────────────── */

.f-bars { display: grid; gap: 18px; }
.f-bar { display: grid; grid-template-columns: 112px 1fr 48px; align-items: center; gap: 14px; font-size: 15px; }
.f-bar__name { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.f-bar__name::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--fc); flex: none; }
.f-bar__track { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.f-bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--fc); width: 0; box-shadow: 0 0 16px color-mix(in srgb, var(--fc) 35%, transparent); transition: width .9s var(--ease); }
.f-bar__val { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 4. Proceso (sticky) ──────────────────────────────────────────────── */

.f-process { position: relative; height: 400vh; }
.f-process__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.f-process__tint { position: absolute; inset: 0; background: var(--tint, transparent); opacity: .05; transition: background .8s var(--ease); pointer-events: none; }
.f-process .f-wrap { width: 100%; }
.f-process .f-head { margin-bottom: 48px; }

.f-track { position: relative; height: 2px; margin: 0 0 -30px; }
.f-track__line { position: absolute; left: 32px; right: 32px; top: 30px; height: 2px; background: var(--line); }
.f-track__line span { display: block; height: 100%; width: 100%; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 14px rgba(255, 255, 255, .2); }

.f-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.f-step__node {
    width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
    font: 400 22px/1 var(--f-head); background: var(--bg); border: 1.5px solid var(--line-2); color: var(--muted);
    transition: background .5s, border-color .5s, color .5s, box-shadow .5s;
}
.f-step h3 { margin-top: 24px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .5s; }
.f-step__sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.f-step__panel { margin-top: 20px; opacity: .25; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.f-step__panel ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.f-step__panel li { padding: 5px 0 5px 16px; position: relative; }
.f-step__panel li::before { content: ''; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--fc); }
.f-step__res { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.f-step__res span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fc); }
.f-step__res strong { display: block; font-weight: 500; margin: 6px 0; font-size: 16px; }
.f-step__res p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.f-step.is-on .f-step__node { background: var(--fc); border-color: var(--fc); color: #fff; box-shadow: 0 0 30px color-mix(in srgb, var(--fc) 40%, transparent); }
.f-step.is-on h3 { color: var(--fc); }
.f-step.is-on .f-step__panel { opacity: 1; transform: none; }
.f-step.is-done .f-step__node { border-color: var(--fc); color: var(--fc); }
.f-step.is-done .f-step__panel { opacity: .55; transform: none; }

@media (max-height: 820px) and (min-width: 1001px) {
    .f-process .f-head .f-sub { display: none; }
    .f-process .f-head { margin-bottom: 32px; }
    .f-step__panel ul { display: none; }
}

/* Móvil / sin sticky: vertical, línea bajando por la izquierda */
@media (max-width: 1000px) {
    .f-process { height: auto; padding: var(--sec) 0; }
    .f-process__sticky { position: static; height: auto; display: block; overflow: visible; }
    .f-track { display: none; }
    .f-steps { grid-template-columns: 1fr; gap: 0; }
    .f-step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 40px; position: relative; }
    .f-step::before { content: ''; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: linear-gradient(var(--fc), color-mix(in srgb, var(--fc) 20%, transparent)); }
    .f-step:last-child::before { display: none; }
    .f-step__node { width: 48px; height: 48px; font-size: 18px; background: var(--fc); border-color: var(--fc); color: #fff; }
    .f-step h3 { margin-top: 10px; color: var(--fc); }
    .f-step__panel { opacity: 1; transform: none; }
}

/* ── Ideal para ───────────────────────────────────────────────────────── */

.f-ideal { border-top: 1px solid var(--line); padding-top: 64px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
@media (max-width: 900px) { .f-ideal { grid-template-columns: 1fr; gap: 28px; } }
.f-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.f-checks li { display: flex; gap: 14px; align-items: baseline; }
.f-checks li::before { content: '✓'; color: var(--h); flex: none; }

/* ── 5. Resultado individual ──────────────────────────────────────────── */

.f-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.f-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; color: var(--muted); transition: all .3s; }
.f-tabs button[aria-selected="true"] { background: #fff; color: var(--bg); border-color: #fff; }
@media (max-width: 640px) {
    .f-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 24px; padding: 0 var(--gutter); scrollbar-width: none; }
    .f-tabs button { flex: none; }
}

.f-person { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.f-person__avatar {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
    font: 400 20px/1 var(--f-head); background: var(--bg); border: 1.5px solid var(--fc, var(--line-2));
    box-shadow: 0 0 24px color-mix(in srgb, var(--fc, #fff) 25%, transparent);
}
.f-person strong { display: block; font: 400 20px/1.2 var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.f-person span { font-size: 14px; color: var(--muted); }

.f-reading { display: flex; flex-direction: column; gap: 6px; }
.f-reading .f-label { margin-top: 18px; }
.f-reading .f-label:first-child { margin-top: 0; }
.f-reading__big { font: 400 30px/1.2 var(--f-head); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.f-reading__mid { font: 400 22px/1.2 var(--f-head); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.f-reading__big::before, .f-reading__mid::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 14px var(--fc); }
.f-reading__quote { font: 300 clamp(20px, 2vw, 26px)/1.35 var(--f-head); }
.f-reading .f-btn { margin-top: 28px; align-self: flex-start; }
.f-reading .f-checks { margin: 28px 0 0; }

.f-plan { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: p; }
.f-plan li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 15px; }
.f-plan li b { display: block; font: 400 12px/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

[data-profile-view] { transition: opacity .35s var(--ease); }
[data-profile-view].is-swapping { opacity: .2; }

/* ── 6. Equipo ────────────────────────────────────────────────────────── */

.f-team { position: relative; }
.f-team__stage { position: absolute; inset: 70px 36px 90px; pointer-events: none; }
.f-team__dot {
    position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--fc);
    box-shadow: 0 0 14px var(--fc); left: var(--x); top: var(--y);
    transition: left 1.1s var(--ease), top 1.1s var(--ease), opacity .6s, transform .6s;
}
.f-team.is-grouped .f-team__dot { left: var(--tx); top: var(--ty); }
.f-team.is-charted .f-team__dot { opacity: 0; transform: scale(.4); }

.f-team__chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; height: 280px; align-items: end; margin-top: 28px; }
.f-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 10px; }
.f-col span { width: 100%; max-width: 64px; height: calc(var(--v) * 1% * 2); border-radius: 10px 10px 4px 4px; background: linear-gradient(var(--fc), color-mix(in srgb, var(--fc) 55%, #000)); box-shadow: 0 0 24px color-mix(in srgb, var(--fc) 25%, transparent); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.f-col b { font: 400 22px/1 var(--f-head); opacity: 0; transition: opacity .6s .5s; }
.f-col em { font-style: normal; font-size: 13px; color: var(--muted); }
.f-team.is-charted .f-col span { transform: scaleY(1); }
.f-team.is-charted .f-col b { opacity: 1; }
.f-team.is-charted .f-col:nth-child(2) span { transition-delay: .15s; }
.f-team.is-charted .f-col:nth-child(3) span { transition-delay: .3s; }
.f-team.is-charted .f-col:nth-child(4) span { transition-delay: .45s; }
@media (max-width: 640px) { .f-team__chart { height: 220px; gap: 8px; } .f-col b { font-size: 17px; } .f-col em { font-size: 11px; } }

/* ── 7. Medición ──────────────────────────────────────────────────────── */

.f-measure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.f-measure__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; border-top: 2px solid var(--fc); }
.f-measure__t { font: 400 13px/1 var(--f-head); letter-spacing: .24em; text-transform: uppercase; color: var(--fc); }
.f-measure__item h3 { margin: 18px 0 10px; }
.f-measure__item p { color: var(--muted); font-size: 15px; }
.f-countries { margin-top: 56px; text-align: center; font: 300 13px/1 var(--f-head); letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .f-measure { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-measure { grid-template-columns: 1fr; } }

/* ── 8. FAQ ───────────────────────────────────────────────────────────── */

.f-faq { border-top: 1px solid var(--line); }
.f-faq__item { border-bottom: 1px solid var(--line); position: relative; }
.f-faq__item::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--fc); box-shadow: 0 0 10px var(--fc); transition: width .7s var(--ease); }
.f-faq__item[open]::before { width: 100%; }
.f-faq summary { list-style: none; cursor: pointer; padding: 28px 48px 28px 0; font: 300 clamp(18px, 1.7vw, 22px)/1.35 var(--f-head); position: relative; }
.f-faq summary::-webkit-details-marker { display: none; }
.f-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--muted); transition: transform .4s var(--ease), color .4s; }
.f-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--fc); }
.f-faq__item p { padding: 0 48px 28px 0; color: var(--muted); max-width: 65ch; }

/* ── 9. Cierre ────────────────────────────────────────────────────────── */

.f-close { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: #000; overflow: hidden; padding: 120px var(--gutter); }
.f-close__inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.f-close h2 { font-size: clamp(28px, 4vw, 52px); max-width: 20ch; }
.f-close__line--b { font: 300 clamp(22px, 2.8vw, 36px)/1.25 var(--f-head); color: var(--muted); max-width: 24ch; }
.f-close__line { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.f-close__line.is-in { opacity: 1; transform: none; }
.f-close .f-logo { margin-top: 24px; }

/* ── 10. Footer ───────────────────────────────────────────────────────── */

.f-footer { border-top: 1px solid var(--line); padding: 72px 0 120px; font-size: 15px; color: var(--muted); }
.f-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.f-footer__grid nav, .f-footer__contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.f-footer a, .f-footer .f-link { text-decoration: none; color: var(--muted); transition: color .3s; }
.f-footer a:hover, .f-footer .f-link:hover { color: #fff; }
.f-footer .f-logo { align-items: flex-start; color: #fff; }
.f-footer .f-logo__sub { width: auto; }
.f-footer__credit { margin-top: 24px; max-width: 36ch; font-size: 14px; }
.f-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 800px) { .f-footer__grid { grid-template-columns: 1fr; gap: 36px; } .f-footer__bottom { flex-direction: column; } }

/* ── IKI ──────────────────────────────────────────────────────────────── */

.f-iki { position: fixed; z-index: 70; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.f-iki > * { pointer-events: auto; }

.f-iki__launcher { width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; background: none; position: relative; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6)); }
.f-iki__launcher .f-iki-avatar { width: 64px; height: 64px; }
.f-iki__launcher .f-dot-on { position: absolute; right: 4px; top: 4px; border: 2px solid var(--bg); width: 14px; height: 14px; box-shadow: none; }

.f-iki__bar {
    display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border-radius: 999px;
    background: rgba(13, 15, 22, .92); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px);
    opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.f-iki__bar.is-in { opacity: 1; transform: none; visibility: visible; }
.f-iki__bar .f-iki-avatar { width: 36px; height: 36px; }
.f-iki__bar strong { display: block; font-size: 14px; font-weight: 500; }
.f-iki__bar span { font-size: 13px; color: var(--muted); }
.f-iki__x { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; }
.f-iki__x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
@media (max-width: 640px) { .f-iki__bar { display: none; } .f-iki { right: 16px; bottom: 16px; } }

.f-iki__panel {
    position: fixed; right: 24px; bottom: 100px; width: 400px; height: min(620px, calc(100vh - 140px));
    display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
    background: #0A0C12; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
    animation: f-pop .45s var(--ease);
}
.f-iki__panel[hidden] { display: none; }
@keyframes f-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 640px) { .f-iki__panel { inset: 0; width: auto; height: auto; border-radius: 0; } }

.f-iki__head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 18px; border-bottom: 1px solid var(--line); position: relative; }
.f-iki__head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--spectrum); opacity: .6; }
.f-iki__head .f-iki-avatar { width: 40px; height: 40px; }
.f-iki__head strong { display: block; font-family: var(--f-head); font-weight: 400; letter-spacing: .14em; }
.f-iki__head span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.f-iki__head .f-dot-on { width: 6px; height: 6px; }
.f-iki__head .f-iki__x { margin-left: auto; }

.f-iki__msgs { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; overscroll-behavior: contain; }
.f-msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; white-space: pre-line; animation: f-pop .35s var(--ease); }
.f-msg--iki { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.f-msg--me { background: #fff; color: var(--bg); border-bottom-right-radius: 6px; align-self: flex-end; }
.f-msg--typing { color: var(--muted); }
.f-msg--typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 4px; animation: f-blink 1.2s infinite; }
.f-msg--typing i:nth-child(2) { animation-delay: .2s; } .f-msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes f-blink { 50% { opacity: .2; } }
.f-msg a.f-btn { margin-top: 12px; color: var(--bg); }

.f-iki__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.f-iki__quick:empty { display: none; }
.f-iki__quick button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; transition: border-color .3s, background .3s; }
.f-iki__quick button:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

.f-iki__input { display: flex; gap: 8px; padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.f-iki__input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--bg); font-size: 18px; flex: none; }

body.f-iki-open { overflow: hidden; }
@media (min-width: 641px) { body.f-iki-open { overflow: auto; } }

/* ── Reveal ───────────────────────────────────────────────────────────── */

.f-reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.f-reveal.is-in { opacity: 1; transform: none; }
.no-js .f-reveal, .no-js .f-close__line { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .f-reveal, .f-close__line { opacity: 1; transform: none; transition: none; }
    .f-iki-avatar { animation: none; }
    .f-bar__fill, .f-col span, .f-team__dot { transition: none; }
}
