/* Acteva — Landing
   Identidad: blanco / negro / grises, Inter, líneas finas. Fotografía a sangre en blanco y negro.
   Rojo y naranja solo para estados (igual que en la app). */

:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --tint: #eef0ee;              /* banda gris cálida, como el papel de una bitácora */
    --ink: #0a0a0a;
    --ink-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e2e8f0;
    --line-2: #cbd5e1;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-line: #fecaca;
    --warn: #ea580c;
    --radius: 4px;
    --wrap: 1280px;
    --gutter: 32px;
    --nav-h: 68px;
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
}
::selection { background: var(--ink); color: #fff; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: var(--nav-h); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--sans); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.muted { color: var(--faint); }

/* Fotografía: siempre en blanco y negro, ligeramente contrastada */
.hero-media img, .band-media img, .closing-media img, .feature-photo img, .overlap-photo img, .drum-photos img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06);
    background: #1f2328;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; background: var(--ink); color: #fff; border: 1px solid var(--ink);
    border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: #262626; }
.btn:active { transform: scale(.98); }
.btn span { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.btn:hover span { transform: translateX(3px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #e7e7e7; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .3s, border-color .3s, color .3s;
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.011em; }
.brand-mark { width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 3px; display: grid; place-items: center; }
.brand-mark span { width: 6px; height: 6px; background: currentColor; border-radius: 1px; }
.nav-links { display: flex; gap: 30px; font-size: 13.5px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 8px 4px; }
.nav-login:hover { color: var(--ink); }
.lang-switch { display: flex; gap: 2px; font-size: 12.5px; font-weight: 500; }
.lang-switch > * { padding: 4px 7px; border-radius: 3px; color: var(--faint); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-current { color: var(--ink); }
/* Sobre la foto del inicio: transparente y en blanco */
.nav.is-over { background: transparent; border-bottom-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-over .nav-links, .nav.is-over .nav-login, .nav.is-over .lang-switch > * { color: rgba(255,255,255,.72); }
.nav.is-over .nav-links a:hover, .nav.is-over .nav-login:hover, .nav.is-over .lang-switch .is-current { color: #fff; }
.nav.is-over .btn-signup { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Hero: foto a sangre ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; color: #fff; background: #111; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { /* oscurece abajo a la izquierda para leer el texto */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.2) 100%),
                linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 60%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 40px; }
.hero-title { font-size: clamp(42px, 6.6vw, 96px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 560; max-width: 13em; }
.hero-title .line { display: block; text-wrap: balance; }
.hero-title .muted { color: rgba(255,255,255,.5); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 40px; }
.hero-copy p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Secciones ---------- */
.section { padding: 128px 0; background: #fff; }
.section-tint { background: var(--tint); }
.section-line { border-top: 1px solid var(--line); }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 560; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; margin-top: 20px; max-width: 34em; }

/* Etiqueta de sección: número en recuadro + nombre sobre negro */
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; vertical-align: .55em;
    background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; padding-right: 8px; }
.tag b { font-weight: 500; background: #fff; color: var(--ink); padding: 0 7px; margin-right: 8px; border-right: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.tag-light { background: #fff; color: var(--ink); border-color: #fff; }
.tag-light b { background: transparent; color: #fff; border-right-color: #fff; }

/* Frase grande de apertura (estilo bitácora) */
.statement { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.16; letter-spacing: -0.022em; font-weight: 520; max-width: 22em; }
.statement p { display: inline; text-wrap: pretty; }
.statement .tag { margin-right: 18px; letter-spacing: 0; }
.statement .muted { color: var(--faint); }

/* Producto: foto + celdas */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 88px; align-items: stretch; }
.feature-photo { border-radius: 8px; overflow: hidden; min-height: 520px; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.cell { padding: 26px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; row-gap: 6px; }
.cell svg { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.cell h3 { font-size: 20px; font-weight: 560; letter-spacing: -0.014em; }
.cell p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Rueda de activos (gira con el scroll) ---------- */
.drum { position: relative; height: calc(var(--n, 12) * 22vh + 100vh); background: #fff; border-top: 1px solid var(--line); }
.drum-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.drum-head { position: absolute; top: calc(var(--nav-h) + 36px); left: 0; right: 0; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); z-index: 2; display: flex; align-items: baseline; gap: 18px; }
.drum-title { color: var(--muted); font-size: 15px; }
.drum-list {
    position: absolute; top: var(--nav-h); bottom: 0; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: 46vw;
    margin: 0; padding: 0; list-style: none; perspective: 1600px; perspective-origin: 0 50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 26%, #000 78%, transparent 96%);
    mask-image: linear-gradient(to bottom, transparent 6%, #000 26%, #000 78%, transparent 96%);
}
.drum-item {
    position: absolute; left: 0; top: 50%; white-space: nowrap;
    font-size: clamp(30px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1;
    color: #e6e9ee; transform: translateY(-50%); transform-origin: 0 50%;
    backface-visibility: hidden; will-change: transform, color;
}
.drum:not(.is-ready) .drum-item:not(:first-child) { opacity: 0; }
.drum-stage { position: absolute; top: calc(50% + var(--nav-h) / 2); right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: min(58vh, 40vw); aspect-ratio: 1; transform: translateY(-50%); }
.drum-ring { position: absolute; inset: 0; }
.drum-ring i { position: absolute; left: 50%; top: 0; width: 1px; height: 12px; margin-left: -.5px; background: var(--line-2); transform-origin: 50% calc(min(58vh, 40vw) / 2); transition: background .25s, height .25s; }
.drum-ring i.on { background: var(--ink); height: 16px; }
.drum-photos { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; background: #f1f3f5; }
.drum-photos img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .55s ease, transform 1.2s cubic-bezier(.16,1,.3,1); }
.drum-photos img.on { opacity: 1; transform: scale(1); }
.drum-count { position: absolute; bottom: 36px; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.drum-count b { color: var(--ink); font-weight: 500; }
/* Movimiento reducido: lista fija */
.drum.is-static { height: auto; padding: 120px 0; }
.drum.is-static .drum-sticky { position: static; height: auto; overflow: visible; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.drum.is-static .drum-head { position: static; padding: 0; margin-bottom: 32px; }
.drum.is-static .drum-list { position: static; width: auto; display: flex; flex-direction: column; gap: 10px; -webkit-mask-image: none; mask-image: none; }
.drum.is-static .drum-item { position: static; transform: none; color: var(--ink); opacity: 1 !important; font-size: clamp(26px, 4vw, 48px); }
.drum.is-static .drum-stage, .drum.is-static .drum-count { display: none; }

/* ---------- Banda con foto a sangre ---------- */
.band { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #fff; background: #111; overflow: hidden; }
.band-media { position: absolute; inset: 0; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.1) 100%), linear-gradient(to top, rgba(0,0,0,.5), transparent 50%); }
.band-inner { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 96px; }
.band h2 { max-width: 13em; margin-top: 22px; }
.band-quote { margin-top: 32px; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; letter-spacing: -0.01em; max-width: 26em; padding-left: 18px; border-left: 2px solid #fff; }
.band-text { margin-top: 22px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 32em; }

/* ---------- Foto con tarjeta encimada ---------- */
.overlap { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.overlap-photo { grid-column: 1 / 9; grid-row: 1; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 11; }
.overlap-card { grid-column: 7 / 13; grid-row: 1; position: relative; z-index: 1; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 44px 44px 36px; border-radius: 8px; box-shadow: 0 40px 80px -40px rgba(15,23,42,.35); }
.overlap-card h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 20px; }
.overlap-card .lead { font-size: 16px; }
.overlap-reverse .overlap-photo { grid-column: 5 / 13; }
.overlap-reverse .overlap-card { grid-column: 1 / 7; }
.overlap-card-wide { padding-bottom: 28px; }

.scatter { margin-top: 28px; border-top: 1px solid var(--ink); }
.scatter li { display: grid; grid-template-columns: 50px 82px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.scatter .t { color: var(--faint); font-variant-numeric: tabular-nums; }
.scatter .src { color: var(--ink); font-size: 13px; font-weight: 500; }
.scatter .c { color: var(--ink-2); }
.scatter li:last-child .c { color: var(--faint); font-style: italic; }

/* ---------- Tarjetas (agentes) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 72px; }
.card { background: #fff; border-radius: 8px; padding: 26px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-start; gap: 48px; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(15,23,42,.35); }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 24px; font-weight: 560; letter-spacing: -0.02em; }
.card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.rule-box { margin-top: 12px; padding: 28px 32px; background: var(--ink); color: #fff; border-radius: 8px; display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: baseline; }
.rule-box p { font-size: 20px; letter-spacing: -0.011em; line-height: 1.45; }
.rule-label { font-size: 13px; color: var(--faint); }

/* ---------- Consola de demostración ---------- */
.console { margin-top: 72px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 30px 70px -30px rgba(15,23,42,.25); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); display: block; }
.console-title { color: var(--ink-2); flex: 1; font-size: 13px; font-weight: 500; }
.console-tag { color: var(--faint); font-size: 12px; }
.console-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.pane { padding: 28px; display: flex; flex-direction: column; }
.pane-in { border-right: 1px solid var(--line); }
.pane-label { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.msg { border: 1px solid var(--line); border-radius: 6px; padding: 18px; background: var(--bg-alt); }
.msg-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; color: var(--muted); margin-bottom: 12px; }
.msg-meta span:first-child::before { content: '●'; margin-right: 6px; font-size: 8px; vertical-align: 1px; }
.msg-text { font-size: 16px; line-height: 1.6; min-height: 5.2em; color: var(--ink); }
.msg-text .caret { display: inline-block; width: 1px; height: 1.1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.msg-attach { display: flex; gap: 8px; margin-top: 14px; min-height: 52px; }
.thumb { width: 64px; height: 52px; border-radius: 3px; border: 1px solid var(--line-2); background: repeating-linear-gradient(135deg, #eef2f6 0 6px, #e2e8f0 6px 7px); display: flex; align-items: flex-end; padding: 3px 4px; font-family: var(--mono); font-size: 8px; color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.thumb.in { opacity: 1; transform: none; }
.agents-run { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding-top: 28px; }
.agent-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--faint); transition: color .3s; }
.agent-step .ring { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; transition: all .3s; }
.agent-step.active { color: var(--ink); }
.agent-step.active .ring { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,10,.08); animation: pulse 1s ease-in-out infinite; }
.agent-step.done { color: var(--ink); }
.agent-step.done .ring { border-color: var(--ink); background: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(10,10,10,.04); } }
/* Líneas entre los centros de los puntos, con el mismo respiro a cada lado */
.agent-line { position: absolute; top: calc(28px + 6px); height: 1px; width: calc(100% / 3 - 32px); background: var(--line); overflow: hidden; }
.agent-line:nth-child(2) { left: calc(100% / 6 + 16px); }
.agent-line:nth-child(4) { left: calc(100% / 2 + 16px); }
.agent-line::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.agent-line.done::after { transform: scaleX(1); }
.record { display: flex; flex-direction: column; flex: 1; }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.record-id { color: var(--muted); margin-bottom: 4px; font-size: 13px; }
.record-name { font-size: 20px; font-weight: 500; letter-spacing: -0.011em; min-height: 1.4em; }
.status { font-size: 12px; font-weight: 500; padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; transition: all .3s; }
.status-stop { color: var(--danger); border-color: var(--danger-line); background: var(--danger-bg); }
.status-ok { color: var(--ink); border-color: var(--line-2); }
.status-new { color: var(--ink); border-color: var(--ink); }
.fields { margin-top: 6px; }
.fields > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; opacity: 0; transform: translateX(6px); transition: opacity .35s, transform .35s cubic-bezier(.16,1,.3,1); }
.fields > div.in { opacity: 1; transform: none; }
.fields dt { font-size: 12.5px; color: var(--muted); padding-top: 2px; }
.fields dd { font-weight: 500; }
.fields dd small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.pending { margin-top: 16px; font-size: 13px; color: var(--ink-2); border-left: 2px solid var(--warn); padding: 4px 0 4px 12px; opacity: 0; transition: opacity .35s; }
.pending.in { opacity: 1; }
.pending b { font-weight: 500; }
.pending .pending-label { display: block; color: var(--warn); font-size: 12px; margin-bottom: 2px; }
.confirm { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; opacity: 0; transition: opacity .35s; }
.confirm.in { opacity: 1; }
.confirm-note { color: var(--muted); font-size: 13px; }
.confirm-btn { font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; transition: all .25s; }
.confirm.pressed .confirm-btn { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.confirm.pressed .confirm-btn::before { content: '✓ '; }
.console-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.console-foot b { color: var(--ink); font-weight: 500; }
.demo-nav { display: flex; gap: 6px; }
.demo-nav button { width: 22px; height: 3px; padding: 0; border: 0; background: var(--line-2); cursor: pointer; border-radius: 2px; transition: background .2s, width .3s; }
.demo-nav button.on { background: var(--ink); width: 34px; }
.demo-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- Historial: dossier ---------- */
.dossier { margin-top: 26px; }
.dossier-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dossier-name { font-size: 22px; font-weight: 500; letter-spacing: -0.014em; }
.dossier-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); padding: 14px 0 18px; border-bottom: 1px solid var(--line); margin-top: 10px; font-size: 14px; }
.dossier-meta b { color: var(--ink); font-weight: 500; margin-left: 6px; }
.tl { margin: 22px 0 0 5px; border-left: 1px solid var(--line); }
.tl li { position: relative; padding: 0 0 20px 22px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.tl li::before { content: ''; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--faint); }
.tl li:first-child::before { border-color: var(--ink); }
.tl-alert::before { border-color: var(--danger) !important; background: var(--danger-bg) !important; }
.tl-alert b { color: var(--danger); }
.tl b { font-weight: 500; color: var(--ink); }
.tl-d { color: var(--faint); }
.src-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; font-size: 11.5px; color: var(--muted); vertical-align: 1px; }
.dossier-foot { color: var(--faint); font-size: 11.5px; text-align: right; }

/* ---------- Principios ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin-top: 72px; }
.principle { padding-top: 22px; border-top: 1px solid var(--ink); }
.principle h3 { margin-bottom: 12px; font-size: 19px; }
.principle p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Cierre ---------- */
.closing { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; background: #111; overflow: hidden; }
.closing-media { position: absolute; inset: 0; }
.closing::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.closing-inner { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 120px; }
.closing h2 { font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -0.03em; max-width: 11em; }
.closing p { margin-top: 26px; font-size: 19px; color: rgba(255,255,255,.75); max-width: 32em; line-height: 1.6; }
.closing .hero-cta { margin-top: 40px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head h2 { margin-top: 22px; max-width: 9em; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 24px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.012em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover span { color: var(--ink-2); }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq-item summary i { position: relative; flex-shrink: 0; width: 14px; height: 14px; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-item p { padding: 0 48px 28px 0; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 40em; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #a3a3a3; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 56px; }
.footer-brand p { margin-top: 18px; color: #fff; font-size: 15px; line-height: 1.5; max-width: 16em; }
.footer-brand p span { color: #737373; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h3 { font-size: 13px; font-weight: 500; color: #fff; letter-spacing: 0; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-contact a, .footer-contact p { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid #262626; font-size: 13px; color: #737373; }

.brand-small { font-size: 14px; color: #fff; }
.brand-small .brand-mark { width: 15px; height: 15px; }
.brand-small .brand-mark span { width: 5px; height: 5px; }

/* ---------- Intro ---------- */
.no-intro .intro { display: none; }
.intro-active, .intro-active body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 100; background: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .7s cubic-bezier(.76, 0, .24, 1), opacity .7s ease; }
.intro.is-leaving { transform: translateY(-100%); pointer-events: none; }
.intro-center { display: flex; align-items: center; gap: 18px; }
.intro-mark { position: relative; width: 60px; height: 60px; display: grid; place-items: center; }
.intro-dots { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.intro-dots i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0; transform: translate(var(--x), var(--y)) scale(var(--s)); transition: opacity .35s ease, transform .75s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--d) * .4), var(--d); }
.intro-dots i.is-stop { background: var(--danger); }
.intro.is-scattered .intro-dots i { opacity: 1; }
.intro.is-converging .intro-dots i { transform: translate(0, 0) scale(.5); }
.intro.is-formed .intro-dots i { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
.intro-core { width: 20px; height: 20px; background: var(--ink); border-radius: 3px; transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.intro.is-formed .intro-core { transform: scale(1); }
.intro-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-frame rect { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s cubic-bezier(.65, 0, .35, 1) .1s; }
.intro.is-formed .intro-frame rect { stroke-dashoffset: 0; }
.intro-word { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; opacity: 0; transform: translateX(-8px); clip-path: inset(0 100% 0 0); transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1), clip-path .5s cubic-bezier(.16, 1, .3, 1); }
.intro.is-named .intro-word { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .cards { grid-template-columns: 1fr 1fr; }
    .principles { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 900px) {
    :root { --gutter: 18px; --nav-h: 60px; }
    .nav-links { display: none; }
    .section { padding: 88px 0; }
    .hero-foot { flex-direction: column; align-items: flex-start; gap: 0; }
    .hero-copy p { font-size: 17px; }
    .feature { grid-template-columns: 1fr; margin-top: 56px; }
    .feature-photo { min-height: 0; aspect-ratio: 4 / 3; }
    .cells { grid-template-columns: 1fr; }
    .overlap { display: flex; flex-direction: column; }
    .overlap-photo { aspect-ratio: 4 / 3; width: 100%; }
    .overlap-card { margin: -64px 12px 0; padding: 28px 22px; }
    .overlap-reverse .overlap-photo { order: 0; }
    .rule-box { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
    .rule-box p { font-size: 18px; }
    .console-grid { grid-template-columns: 1fr; min-height: 0; }
    .pane { padding: 20px; }
    .pane-in { border-right: 0; border-bottom: 1px solid var(--line); }
    .console-tag { display: none; }
    .fields > div { grid-template-columns: 100px 1fr; }
    .band { min-height: 0; }
    .faq { grid-template-columns: 1fr; gap: 40px; }
    .faq-head { position: static; }
    .faq-item summary { font-size: 17px; padding: 20px 0; }
    .faq-item p { padding-right: 0; }
    .band-inner { padding-top: 200px; padding-bottom: 64px; }
    /* rueda: foto arriba, nombres abajo */
    .drum { height: calc(var(--n, 12) * 18vh + 100vh); }
    .drum-head { top: calc(var(--nav-h) + 20px); flex-direction: column; gap: 10px; }
    .drum-stage { top: calc(var(--nav-h) + 128px); right: 50%; transform: translateX(50%); width: min(62vw, 40vh); }
    .drum-ring i { transform-origin: 50% calc(min(62vw, 40vh) / 2); }
    .drum-list { top: calc(var(--nav-h) + 128px + min(62vw, 40vh)); width: auto; right: var(--gutter); }
    .drum-item { font-size: clamp(28px, 8vw, 52px); }
    .drum-count { bottom: 24px; }
}
@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
    .card { min-height: 0; gap: 22px; }
    .principles { grid-template-columns: 1fr; }
    .nav-end { gap: 8px; }
    .btn-signup { display: none; }
    .nav-login { border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .scatter li { grid-template-columns: 42px 70px 1fr; gap: 10px; font-size: 13.5px; }
    .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 56px; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .intro-mark { width: 46px; height: 46px; }
    .intro-core { width: 15px; height: 15px; }
    .intro-word { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Páginas legales ---------- */
.legal-page .nav { background: rgba(255,255,255,.92); }
.legal { padding: calc(var(--nav-h) + 72px) 0 112px; }
.legal-inner { display: grid; grid-template-columns: 3fr 9fr; gap: 64px; align-items: start; }
.legal-side { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.legal-side a:hover, .legal-side a[aria-current] { color: var(--ink); }
.legal-side a[aria-current] { font-weight: 500; }
.legal-back { color: var(--ink); font-weight: 500; margin-bottom: 14px; }
.footer-bottom a:hover { color: #fff; }
.legal-doc { max-width: 44em; }
.legal-doc h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 560; }
.legal-date { margin-top: 16px; color: var(--muted); font-size: 14px; }
.legal-doc h2 { font-size: 21px; letter-spacing: -0.012em; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-doc p, .legal-doc li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal-doc p { margin-top: 14px; }
.legal-doc ul { margin-top: 12px; display: grid; gap: 8px; }
.legal-doc li { position: relative; padding-left: 20px; }
.legal-doc li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 1.5px; background: var(--ink); }
.legal-doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal-note { margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--ink); background: var(--bg-alt); font-size: 14px !important; color: var(--muted) !important; }
.legal-doc .legal-intro { font-size: 18px; color: var(--ink); margin-top: 32px; }
@media (max-width: 900px) {
    .legal { padding-top: calc(var(--nav-h) + 40px); }
    .legal-inner { grid-template-columns: 1fr; gap: 32px; }
    .legal-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
    .legal-back { flex-basis: 100%; margin-bottom: 4px; }
}

