/*  Integraly · estilos comunes de todas las páginas
    · Papel cálido y tinta cálida. El morado como acento ligero: antetítulos, cifras, subrayados,
      hover del botón, línea del método. Nunca dos colores dentro de un mismo texto.
    · La estructura la dan la tipografía, el aire y filetes finos. Nada de cajas ni tarjetas.
    · Movimiento solo donde cuenta algo: los sistemas reales, los números, la línea del método y los verbos.
      Todo se reproduce solo al aparecer en pantalla, nunca atado al scroll. */
/* ─── Sistema de diseño (20 nov 2026) ───
    Fuente propia (Inter Tight) para que se vea igual en Mac, Windows y Android.
    Contraste: --t1 y --t2 pasan AA sobre el papel; --t3 solo para filetes, separadores y números decorativos. */
@font-face {
    font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('../fonts/inter-tight-latin.woff2') format('woff2');
}
:root {
    /* Color */
    --paper:   #F1EDE6;
    --ink:     #211C19;
    --night:   #211C19;
    --purple:  #6B5BB5;
    --t1:      rgba(33,28,25,0.94);   /* texto principal */
    --t2:      rgba(33,28,25,0.72);   /* texto secundario · 5,8:1 */
    --t3:      rgba(33,28,25,0.46);   /* solo decorativo */
    --rule:    rgba(33,28,25,0.14);
    /* Tipografía */
    --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --fs-display: clamp(44px, 6vw, 88px);
    --fs-h2:      clamp(34px, 4.4vw, 64px);
    --fs-h3:      clamp(28px, 3.2vw, 46px);
    --fs-lead:    20px;
    --fs-body:    17px;
    --fs-small:   14px;
    --track-display: -.035em;
    --track-head:    -.025em;
    /* Espacio, radios y sombras */
    --gutter: 56px;
    --sec:    160px;
    --r-s:    6px;
    --r-m:    14px;
    --r-pill: 100px;
    --shadow-device: 0 40px 90px -40px rgba(33,28,25,.5);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 2px; }
html.i18n-pending body { opacity: 0; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--t1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* ─── Tipografía ─── */
.label { font-size: 13px; font-weight: 600; color: var(--purple); letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
::selection { background: rgba(107,91,181,.22); }
.display {
    font-size: var(--fs-display); text-wrap: balance;
    font-weight: 700; letter-spacing: var(--track-display); line-height: .98;
}
.h2 {
    font-size: var(--fs-h2);
    font-weight: 700; letter-spacing: var(--track-head); line-height: 1.04; text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--t2); }
.body { font-size: var(--fs-body); line-height: 1.65; color: var(--t2); }

.sec { padding: var(--sec) 0; }
.sec-head { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; margin-bottom: 96px; align-items: baseline; }
.sec-foot { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; padding-top: 40px; }

/* ─── Botones y enlaces ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 54px; padding: 0 30px;
    background: var(--ink); color: var(--paper);
    border-radius: var(--r-pill); border: none; cursor: pointer;
    font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: 0;
    text-decoration: none; transition: background .25s;
}
.btn:hover { background: var(--purple); }
.link {
    font-size: 16px; font-weight: 500; text-decoration: none;
    background-image: linear-gradient(var(--purple), var(--purple));
    background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
    padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ─── Nav ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 76px;
    background: rgba(241,237,230,.82);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent; transition: border-color .3s;
}
nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 22px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--t2); text-decoration: none; transition: color .2s; padding-bottom: 3px; }
.nav-links a:hover { color: var(--t1); }
.nav-links a[aria-current="page"] { color: var(--t1); box-shadow: inset 0 -1px 0 var(--purple); }
.lang-btn {
    font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--t2);
    background: none; border: none; cursor: pointer; padding: 6px 0; transition: color .2s;
}
.lang-btn:hover { color: var(--t1); }
.nav-cta { height: 42px; padding: 0 20px; font-size: 14px; }
/* Menú del móvil: lista de texto, sin caja */
.menu-btn { display: none; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--t1); background: none; border: none; cursor: pointer; padding: 6px 0; }
.mob-menu { display: none; }

/* ─── Cabecera de página ─── */
/* Portada: texto a la izquierda, un sistema real funcionando a la derecha, logos debajo.
   En móvil: texto → logos → sistema. */
.hero { padding: 152px 0 0; }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 64px; align-items: center;
    grid-template-areas: "txt sys" "clients clients";
}
.hero-txt { grid-area: txt; }
.hero-sys { grid-area: sys; }
.hero .clients { grid-area: clients; }
.hero .display { font-size: clamp(44px, 5.6vw, 84px); margin-bottom: 32px; }
.hero .label { display: block; margin-bottom: 28px; }
.hero .lead { max-width: 26em; margin-bottom: 40px; }
.hero-ctas { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-sys .duo { padding-left: 72px; }
.hero-sys .duo .phone { width: min(148px, 24%); border-radius: 26px; padding: 6px; }
.hero-sys .duo .phone .reel { border-radius: 21px; }
.hero-sys figcaption { margin-top: 18px; padding-left: 72px; font-size: var(--fs-small); line-height: 1.5; color: var(--t2); max-width: 46ch; }
.hero-sys figcaption b { color: var(--t1); font-weight: 600; }
.page-head { padding: 188px 0 96px; border-bottom: 1px solid var(--rule); }
.page-head .label { display: block; margin-bottom: 28px; }
.page-head .display { max-width: 15ch; }
.page-head .lead { max-width: 560px; margin-top: 32px; }

/* ─── Clientes ─── */
.clients {
    margin-top: 96px; padding: 36px 0 44px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    display: flex; flex-direction: column; gap: 32px;
}
/* Logos en cinta: se mueven solos hacia la izquierda, grandes y separados para no ver de golpe que se repiten */
.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); }
.logos { display: flex; align-items: center; width: max-content; }
.logos a { display: block; flex: none; margin-right: 160px; }
.logos img { height: 44px; width: auto; filter: brightness(0); opacity: .6; transition: opacity .25s; }
.logos a:hover img { opacity: .95; }
.logos .lg-galtes { height: 40px; }
.logos .lg-euro { height: 62px; }
.logos .lg-dpages { height: 56px; }
.logos.run { animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee:hover .logos.run { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos.run { animation: none; } }

/* ─── Resultados ─── */
.results { padding: 160px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 0 48px; border-left: 1px solid var(--rule); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat-num {
    display: block; font-size: clamp(64px, 8vw, 128px); font-weight: 700;
    letter-spacing: -.04em; line-height: .9; margin-bottom: 28px; font-variant-numeric: tabular-nums;
    color: var(--purple);
}
.stat-label { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.stat-src { font-size: 14px; color: var(--t2); }
/* Franja de color: los resultados sobre morado, todo el texto en papel */
.band { padding: 0 0 40px; }
.band .stats { background: #E4DEEF; border-radius: 6px; padding: 88px 64px; }
.band .stat { border-left-color: rgba(107,91,181,.22); }
.band .stat-src { color: rgba(33,28,25,.5); }

/* ─── Sistemas: cada uno con sus pantallas reales ─── */
.sys { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: 96px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 76px; }
.sys.flip { grid-template-columns: 7fr 5fr; }
.sys.flip .txt { order: 2; }
.sys-top { display: flex; align-items: center; gap: 20px; min-height: 30px; }
.num { font-size: 14px; color: var(--t2); font-variant-numeric: tabular-nums; }
.sys-logo img { height: 26px; width: auto; filter: brightness(0); opacity: .82; transition: opacity .25s; }
.sys-logo:hover img { opacity: 1; }
.sys-logo .lg-galtes { height: 22px; }
.sys-logo .lg-dpages { height: 32px; }
.sys-logo .lg-steknos { height: 24px; }
.sys h2, .sys h3 { font-size: var(--fs-h3); line-height: 1.04; letter-spacing: var(--track-head); font-weight: 700; margin: 18px 0 18px; text-wrap: balance; }
.sys p { font-size: 18px; line-height: 1.55; color: var(--t2); max-width: 40ch; }
.sys .quote { font-size: 18px; font-style: italic; color: var(--t1); margin-top: 22px; }
.sys .quote cite { display: block; margin-top: 4px; font-style: normal; font-size: 14px; color: var(--t2); }
.meta { display: flex; gap: 18px; margin-top: 28px; font-size: 14px; color: var(--t2); flex-wrap: wrap; align-items: baseline; }
.meta > * + *::before { content: "·"; margin-right: 18px; color: var(--t3); }
.meta .state { color: var(--t1); }
.meta a { font-size: 14px; }
.steps { list-style: none; margin-top: 28px; border-top: 1px solid var(--rule); }
.steps li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--t2); transition: color .4s var(--ease); }
.steps li.on { color: var(--t1); }
.sys-more { margin-top: 28px; }
.sys p.case + p.case { margin-top: 14px; }
.sys p.case b { color: var(--t1); font-weight: 600; }
.sys .sys-stat { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; max-width: none; }
.sys .sys-stat b { font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--purple); white-space: nowrap; }
.sys .sys-stat span { font-size: 15px; color: var(--t2); max-width: 26ch; line-height: 1.4; }
.sys .case-cta { margin-top: 24px; font-size: 16px; color: var(--t1); }
.hero-for { font-size: 15px; color: var(--t2); margin: -24px 0 40px; max-width: 30em; }

.stage { position: relative; }
.reel { position: relative; overflow: hidden; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .9s var(--ease); }
.reel img.on { opacity: 1; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.phone { width: min(330px, 72vw); margin: 0 auto; aspect-ratio: 1170/2532; border-radius: 46px; padding: 11px; background: var(--night); box-shadow: 0 40px 80px -30px rgba(33,28,25,.45); }
.phone .reel { width: 100%; height: 100%; border-radius: 36px; }

.browser { border-radius: var(--r-m); overflow: hidden; background: var(--night); box-shadow: var(--shadow-device); }
.bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(241,237,230,.22); }
.browser .reel { aspect-ratio: 16/10; }
.browser.pan .reel img { object-fit: cover; object-position: 0 0; }
.browser.pan.play .reel img.on { animation: pan 11s var(--ease) infinite alternate; }
@keyframes pan { from { transform: scale(1.02); object-position: 0 0; } to { transform: scale(1.18); object-position: 70% 100%; } }

/* Móvil delante del ordenador */
.duo { position: relative; padding: 0 0 48px 64px; }
.duo .phone { position: absolute; left: 0; bottom: 0; width: min(170px, 34%); border-radius: 30px; padding: 7px; z-index: 2; }
.duo .phone .reel { border-radius: 24px; }

/* Portada: los sistemas destacados, más compactos */
.featured .sys { padding: 72px 0; }
/* Sin titular: los casos siguen directamente a la cinta de logos */
.featured { padding-top: 32px; }
.featured-foot { padding-top: 48px; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.featured-foot p { font-size: 17px; color: var(--t2); }

/* ─── Proyectos: portada con contador y filtro ─── */
.count-row { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-end; margin-top: 56px; }
.big { font-size: clamp(64px, 9vw, 128px); font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--purple); font-variant-numeric: tabular-nums; }
.big-cap { font-size: 16px; color: var(--t2); max-width: 24ch; margin-top: 8px; }
.count-row .lead { max-width: 38ch; }

.filter { position: sticky; top: 76px; z-index: 50; background: rgba(241,237,230,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.filter .wrap { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.filter .wrap::-webkit-scrollbar { display: none; }
.filter button {
    flex: none; font-family: var(--font); font-size: 15px; color: var(--t2); background: none; border: none; cursor: pointer;
    padding: 20px 0 18px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.filter button:hover { color: var(--t1); }
.filter button[aria-pressed="true"] { color: var(--t1); border-bottom-color: var(--purple); }
.filter sup { font-size: 11px; color: var(--t3); margin-left: 3px; font-variant-numeric: tabular-nums; }

.more { padding: 96px 0 120px; }
.more h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; margin: 14px 0 40px; }
.idx { list-style: none; columns: 2; column-gap: 64px; }
.idx li { break-inside: avoid; display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 18px; line-height: 1.4; }
.idx small { font-size: 14px; color: var(--t2); white-space: nowrap; text-align: right; }
.idx small a { font-size: 14px; }
.empty { padding: 96px 0; font-size: 18px; color: var(--t2); }
.note { font-size: 13px; color: var(--t2); padding: 24px 0 0; border-top: 1px solid var(--rule); }

/* ─── Qué hacen nuestros sistemas ─── */
.verbs { font-size: clamp(44px, 6.4vw, 100px); font-weight: 700; letter-spacing: var(--track-display); line-height: 1; margin-bottom: 72px; }
.verbs span { color: var(--t3); transition: color .6s ease; }
.verbs span.on { color: var(--t1); }
.verb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; border-top: 1px solid var(--rule); padding-top: 28px; }
.verb-grid h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.verb-grid p { font-size: 15px; line-height: 1.55; color: var(--t2); }

/* ─── Método: la línea se dibuja al aparecer ─── */
.method { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.method::before, .method::after { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--rule); }
.method::after { background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.method.play::after { transform: scaleX(1); }
.m-step { position: relative; padding-right: 64px; }
.m-dot {
    width: 15px; height: 15px; border-radius: 50%; position: relative; z-index: 1;
    background: var(--paper); border: 1px solid var(--t3); margin-bottom: 40px;
    transition: background .4s, border-color .4s;
}
.method.play .m-dot { background: var(--purple); border-color: var(--purple); }
.method.play .m-step:nth-child(1) .m-dot { transition-delay: .2s; }
.method.play .m-step:nth-child(2) .m-dot { transition-delay: .95s; }
.method.play .m-step:nth-child(3) .m-dot { transition-delay: 1.7s; }
.method.four { grid-template-columns: repeat(4, 1fr); }
.method.four .m-step { padding-right: 40px; }
.method.play .m-step:nth-child(4) .m-dot { transition-delay: 2.4s; }
.m-num { font-size: 14px; color: var(--purple); display: block; margin-bottom: 12px; }
.m-step h3 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 14px; }

/* ─── Mantenimiento: filas con filete ─── */
.row { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; padding: 30px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row h3 { font-size: 17px; font-weight: 500; color: var(--t2); }
.row p { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }

/* ─── Nosotros ─── */
.about-top { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: end; }
.about-photo img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 30%; border-radius: 4px;
    filter: grayscale(1) sepia(.18) contrast(1.06) brightness(1.03);
}
.about-photo figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--t2); }
.quote-big { font-size: clamp(28px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; max-width: 980px; }
.quote-sign { margin-top: 32px; font-size: 15px; color: var(--t2); }
.quote-sign b { color: var(--t1); font-weight: 600; }
.about-row { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--rule); }
/* Nosotros: Eloi y Francesc al mismo nivel (24 nov 2026) */
.duo-team { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.duo-team .lead { color: var(--t1); max-width: 640px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pair > div { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; }
.pair img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.pair h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.pair .r { font-size: 14px; color: var(--t2); margin-top: 2px; }
.pair .d { font-size: 15px; line-height: 1.55; color: var(--t2); margin-top: 10px; }
.team-quote { margin-top: 120px; padding-top: 40px; border-top: 1px solid var(--rule); }
.region-na .team-quote { margin-top: 0; padding-top: 0; border-top: 0; }
.tech { margin-top: 40px; font-size: 16px; color: var(--t2); }
.region-na .team-only { display: none; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.roles h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.roles p { font-size: 15px; line-height: 1.55; color: var(--t2); }

/* ─── Contacto ─── */
.contact { display: grid; grid-template-columns: 6fr 6fr; gap: 96px; }
.contact .form { padding-top: 6px; }
.start { list-style: none; margin-top: 48px; border-top: 1px solid var(--rule); counter-reset: s; }
.start li { display: grid; grid-template-columns: 40px 1fr; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.start li::before { counter-increment: s; content: counter(s); color: var(--t3); font-size: 14px; padding-top: 2px; }
.contact-lines { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 16px; }
.contact-lines a { text-decoration: none; }
.contact-lines .muted { color: var(--t2); font-size: 15px; }
.fg input {
    width: 100%; height: 64px; background: transparent; border: none; border-bottom: 1px solid var(--rule);
    color: var(--t1); font-family: var(--font); font-size: 18px; letter-spacing: -.01em; outline: none; border-radius: 0;
    transition: border-color .25s;
}
.fg input::placeholder { color: var(--t2); }
.fg input:focus { border-bottom-color: var(--purple); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-meta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.form-meta .note-s { font-size: 14px; color: var(--t2); }
.form .btn:disabled { opacity: .6; cursor: default; }
#f-msg { display: none; margin-top: 16px; font-size: 15px; line-height: 1.5; }

/* ─── Preguntas ─── */
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 28px 0; background: none; border: none; cursor: pointer; text-align: left;
    font-family: var(--font); font-size: 20px; font-weight: 500; letter-spacing: -.015em; color: var(--t1);
}
.faq-icon { font-size: 24px; font-weight: 300; color: var(--t3); transition: transform .35s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-item.open .faq-ans { max-height: 400px; }
.faq-ans p { font-size: 17px; line-height: 1.65; color: var(--t2); padding-bottom: 30px; max-width: 680px; }

/* ─── Cierre y pie: el único bloque oscuro, al final de cada página ─── */
footer { background: var(--night); color: var(--paper); padding: 140px 0 40px; }
footer.slim { padding-top: 96px; }
.close-line { font-size: clamp(52px, 7.2vw, 112px); font-weight: 700; letter-spacing: var(--track-display); line-height: .98; margin-bottom: 48px; }
.close-ctas { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
footer .btn { background: var(--paper); color: var(--ink); }
footer .btn:hover { background: #fff; }
.f-grid {
    display: grid; grid-template-columns: 4fr 2fr 2fr 4fr; gap: 40px;
    margin-top: 140px; padding-top: 36px; border-top: 1px solid rgba(241,237,230,.16);
}
footer.slim .f-grid { margin-top: 0; }
.f-grid img { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.f-col h4 { font-size: 14px; font-weight: 500; color: rgba(241,237,230,.45); margin-bottom: 14px; }
.f-col a, .f-col span { display: block; font-size: 15px; line-height: 1.75; color: rgba(241,237,230,.8); text-decoration: none; }
.f-col a:hover { color: var(--paper); }
.f-bottom { margin-top: 56px; font-size: 13px; color: rgba(241,237,230,.4); }

/* Aparición: una vez, al entrar en pantalla */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rise.in { opacity: 1; transform: none; }
html.no-io .rise { opacity: 1; transform: none; }

/* ─── Tablet ─── */
@media (max-width: 1000px) {
    :root { --gutter: 32px; }
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .mob-menu { position: fixed; top: 76px; left: 0; right: 0; z-index: 99; background: var(--paper); border-bottom: 1px solid var(--rule); }
    .mob-menu.open { display: block; }
    .mob-menu ul { list-style: none; padding: 8px var(--gutter) 24px; }
    .mob-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
    .mob-menu a[aria-current="page"] { color: var(--purple); }
    .sec { padding: 120px 0; }
    .hero { padding-top: 150px; }
    .page-head { padding: 150px 0 72px; }
    .sec-head, .sec-foot, .row, .about-row { grid-template-columns: 1fr; gap: 16px; }
    .about-top { grid-template-columns: 1fr; gap: 40px; }
    .about-photo { max-width: 420px; }
    .sec-head { margin-bottom: 64px; }
    .sys, .sys.flip { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
    .sys.flip .txt { order: 0; }
    .featured .sys { padding: 56px 0; }
    .featured { padding-top: 16px; }
    .idx { columns: 1; }
    .verb-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .method, .method.four { grid-template-columns: 1fr; row-gap: 48px; }
    .method.play .m-step:nth-child(4) .m-dot { transition-delay: .8s; }
    .method::before, .method::after { display: none; }
    .m-dot { margin-bottom: 20px; }
    .method.play .m-step:nth-child(2) .m-dot { transition-delay: .4s; }
    .method.play .m-step:nth-child(3) .m-dot { transition-delay: .6s; }
    .roles { grid-template-columns: 1fr; gap: 24px; }
    .duo-team { grid-template-columns: 1fr; gap: 24px; }
    .team-quote { margin-top: 80px; }
    .contact { grid-template-columns: 1fr; gap: 72px; }
    .f-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Móvil ─── */
@media (max-width: 640px) {
    :root { --gutter: 16px; }
    nav { height: 64px; }
    .mob-menu { top: 64px; }
    .filter { top: 64px; }
    .sys { scroll-margin-top: 120px; }
    .logo img { height: 18px; }
    .pair { grid-template-columns: 1fr; gap: 28px; }
    .pair > div { grid-template-columns: 88px 1fr; gap: 18px; }
    .pair img { width: 88px; height: 88px; }
    .nav-right { gap: 18px; }
    .nav-cta { height: 38px; padding: 0 16px; font-size: 13px; }
    .sec { padding: 96px 0; }
    .hero { padding-top: 120px; }
    .page-head { padding: 120px 0 56px; }
    .display, .close-line { font-size: 44px; letter-spacing: var(--track-display); }
    .hero .display { font-size: 44px; }
    .lead { font-size: 18px; }
    .hero-ctas { gap: 24px; }
    .clients { margin-top: 72px; gap: 22px; }
    .logos a { margin-right: 80px; }
    .logos img { height: 32px; } .logos .lg-galtes { height: 29px; } .logos .lg-euro { height: 45px; } .logos .lg-dpages { height: 40px; }
    .results { padding-top: 96px; }
    .band .stats { padding: 48px 24px; }
    .band .stat, .band .stat:first-child { border-top-color: rgba(107,91,181,.22); }
    .stats { grid-template-columns: 1fr; }
    .stat, .stat:first-child { padding: 36px 0; border-left: none; border-top: 1px solid var(--rule); }
    .stat:first-child { border-top: none; padding-top: 0; }
    .stat-num { margin-bottom: 18px; }
    .sys p { font-size: 17px; }
    .duo { padding: 0 0 32px 32px; }
    .count-row { gap: 28px; margin-top: 40px; }
    .idx li { flex-direction: column; gap: 4px; }
    .idx small { text-align: left; white-space: normal; }
    .filter .wrap { gap: 24px; }
    .verbs { margin-bottom: 48px; }
    .verb-grid { grid-template-columns: 1fr; gap: 20px; }
    .row { padding: 24px 0; gap: 8px; }
    .faq-q { font-size: 18px; padding: 24px 0; }
    footer { padding-top: 96px; }
    footer.slim { padding-top: 72px; }
    .f-grid { grid-template-columns: 1fr; margin-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
    .rise { opacity: 1; transform: none; }
    .browser.pan.play .reel img.on { animation: none; }
}

/* Contacto como cabecera de su propia página */
.contact .display { font-size: clamp(44px, 4.8vw, 72px); }
.contact .lead { margin-top: 28px; }
.contact .form { padding-top: 54px; }
@media (max-width: 1000px) { .contact .form { padding-top: 0; } }

/* Casilla de privacidad del formulario */
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; font-size: 15px; line-height: 1.5; color: var(--t2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--purple); flex: none; cursor: pointer; }
.consent .link { font-size: 15px; }

/* Política de privacidad: un idioma visible cada vez */
html[lang="en"] .pp-es, html:not([lang="en"]) .pp-en { display: none; }
.row.legal { align-items: start; padding: 36px 0; }
.row.legal h2 { font-size: 17px; font-weight: 600; color: var(--t1); letter-spacing: -.01em; }
.row.legal p { font-size: 17px; font-weight: 400; line-height: 1.65; letter-spacing: 0; color: var(--t2); max-width: 680px; }
.row.legal p + p { margin-top: 14px; }
.row.legal b { color: var(--t1); font-weight: 600; }
.row.legal .link { font-size: inherit; }

/* Portada en tablet y móvil: texto → logos → sistema */
@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt" "clients" "sys"; }
    .hero .clients { margin-top: 64px; }
    .hero-sys { margin-top: 56px; max-width: 640px; }
}
@media (max-width: 640px) {
    .hero { padding-top: 112px; }
    .hero .display { margin-bottom: 24px; }
    .hero .label { margin-bottom: 20px; }
    .hero .lead { margin-bottom: 36px; }
    .hero .clients { margin-top: 48px; }
    .hero-sys { margin-top: 40px; }
    .hero-sys .duo { padding-left: 40px; }
    .hero-sys .duo .phone { width: 30%; border-radius: 20px; padding: 5px; }
    .hero-sys .duo .phone .reel { border-radius: 16px; }
    .hero-sys figcaption { padding-left: 0; }
}

/* ─── Casos de la portada: cifra arriba, antes/ahora, CTA al final (fase 2, 20 nov) ─── */
.case .case-stat { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.case .case-stat b { font-size: clamp(48px, 5.2vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: .95; color: var(--purple); }
.case .case-stat span { font-size: 15px; line-height: 1.4; color: var(--t2); max-width: 34ch; }
.sys.case h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.12; margin: 28px 0 0; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.ba dt { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t2); margin-bottom: 8px; }
.ba div + div dt { color: var(--purple); }
.ba dd { font-size: 16px; line-height: 1.5; color: var(--t2); }
.ba div + div dd { color: var(--t1); }
.sys.case .quote { font-size: 18px; margin-top: 24px; }
.case .meta { margin-top: 24px; }
.cases-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 80px; }
.cases-cta-line { font-size: clamp(34px, 3.8vw, 56px); font-weight: 700; letter-spacing: var(--track-head); line-height: 1.05; }
@media (max-width: 640px) {
    .case .case-stat { margin-top: 24px; }
    .ba { grid-template-columns: 1fr; gap: 18px; }
    .cases-cta { padding-top: 56px; gap: 24px; }
}
.case .meta .link { margin-left: auto; }
.case .meta .link::before { content: none; }

/* ─── Formulario: etiqueta visible encima de cada campo (fase 3, 20 nov) ─── */
.fg { padding-top: 18px; }
.fg label { display: block; font-size: 14px; font-weight: 500; color: var(--t2); }
.fg input { height: 48px; }
.fg:focus-within label { color: var(--purple); }

/* Contacto: en móvil el formulario va justo después del titular; los pasos, debajo */
.contact { grid-template-areas: "intro form" "more form"; align-items: start; row-gap: 0; }
.contact-intro { grid-area: intro; }
.contact .form { grid-area: form; }
.contact-more { grid-area: more; }
@media (max-width: 1000px) {
    .contact { grid-template-areas: "intro" "form" "more"; row-gap: 48px; }
    .contact .start { margin-top: 0; }
}

/* Método en móvil: el texto ocupa todo el ancho */
@media (max-width: 1000px) { .m-step, .method.four .m-step { padding-right: 0; } .m-step .body { max-width: 34em; } }

/* ─── Hero: escena «lo que entra → lo que sale» (3 sectores) ───
   El input (móvil / WhatsApp / hoja) se escanea, el dato viaja en una píldora,
   la pantalla del sistema se revela y SOLO la pieza clave sale hacia delante. */
.flow { position: relative; }
.fl { position: relative; height: 500px; }
.fl .scr { position: absolute; right: 0; top: 0; width: 78%; border-radius: var(--r-m); overflow: hidden; background: var(--night); box-shadow: var(--shadow-device); }
.fl .scr .bar { height: 30px; display: flex; gap: 7px; align-items: center; padding-left: 14px; }
.fl .scr .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.fl .view { position: relative; aspect-ratio: 16/10; background: #F6F5F2 repeating-linear-gradient(180deg, transparent 0 26px, rgba(33,28,25,.05) 26px 34px); transition: filter .9s var(--ease); }
.fl .scr.dim .view { filter: blur(2px) saturate(.6) brightness(.93); }
.fl .lay { position: absolute; inset: 0; opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity .5s, clip-path 0s .5s; }
.fl .lay.show { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.25,1), opacity 0s; }
.fl .lay img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.fl .pop { position: absolute; left: 0; top: 0; z-index: 6; border-radius: 10px; background: #fff no-repeat; transform-origin: 0 0; opacity: 0; pointer-events: none;
    box-shadow: 0 50px 90px -30px rgba(33,28,25,.55), 0 14px 30px -14px rgba(33,28,25,.35), 0 0 0 1px rgba(33,28,25,.06); }
.fl .in { position: absolute; left: 0; bottom: 0; z-index: 3; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .9s var(--ease); }
.fl .in.show { opacity: 1; transform: none; }
.fl .in.go { opacity: 0; transform: translateY(-10px); transition-duration: .5s; }
.fl.popped .in.show { filter: blur(1.5px) saturate(.6); opacity: .55; }
.fl .in .sk { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.fl .in .sk::after { content: ""; position: absolute; left: 0; right: 0; height: 38%; top: -40%; background: linear-gradient(180deg, rgba(107,91,181,0), rgba(107,91,181,.22) 70%, rgba(107,91,181,.55) 100%); }
.fl .in.scan .sk::after { animation: flscan 1s cubic-bezier(.5,0,.5,1) forwards; }
@keyframes flscan { to { top: 102%; } }
.fl .ph { width: 150px; aspect-ratio: 600/1298; border-radius: 24px; padding: 6px; background: var(--night); box-shadow: 0 30px 60px -28px rgba(33,28,25,.55); }
.fl .ph .sk { inset: 6px; border-radius: 19px; }
.fl .ph > img, .fl .ph .wa { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; display: block; }
.fl .paper { width: 44%; background: #fff; padding: 10px; box-shadow: 0 30px 60px -28px rgba(33,28,25,.5); rotate: -2.5deg; }
.fl .paper img { display: block; width: 100%; }
.fl .wa { background: #ECE5DD; display: flex; flex-direction: column; overflow: hidden; font-size: 11px; line-height: 1.35; }
.fl .wa .h { background: #075E54; color: #fff; padding: 22px 10px 8px; font-weight: 600; font-size: 11.5px; }
.fl .wa .h small { display: block; font-weight: 400; opacity: .75; font-size: 9.5px; }
.fl .wa .b { margin: 8px 8px 0; background: #fff; border-radius: 8px; padding: 7px 8px; color: #111; max-width: 88%; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.fl .wa .b i { display: block; text-align: right; font-style: normal; color: #888; font-size: 9px; margin-top: 3px; }
.fl .tok { position: absolute; left: 0; top: 0; z-index: 7; white-space: nowrap; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; padding: 8px 13px 8px 11px; border-radius: 100px; box-shadow: 0 14px 30px -12px rgba(33,28,25,.6); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.fl .tok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9C8EE0; }
.flow .cap { margin-top: 22px; min-height: 24px; font-size: 16px; color: var(--t2); transition: opacity .35s; }
.flow .cap b { color: var(--t1); font-weight: 600; }
.flow .segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.flow .segs i { height: 2px; background: var(--rule); overflow: hidden; display: block; }
.flow .segs b { display: block; height: 100%; width: 0; background: var(--purple); }
.flow .segs i.done b { width: 100%; }
.flow .segs i.run b { width: 100%; transition: width 7.5s linear; }
@media (max-width: 1000px) { .flow { margin-top: 56px; } }
@media (max-width: 640px) {
    .fl { height: 330px; }
    .fl .ph { width: 100px; border-radius: 17px; padding: 4px; }
    .fl .ph .sk { inset: 4px; border-radius: 14px; }
    .fl .ph > img, .fl .ph .wa { border-radius: 14px; }
    .fl .wa { font-size: 8px; } .fl .wa .h { padding: 13px 7px 5px; font-size: 8.5px; }
    .fl .scr { width: 86%; } .fl .scr .bar { height: 20px; }
    .fl .tok { font-size: 10.5px; padding: 6px 10px; }
    .flow .cap { font-size: 14px; }
}
