/* InBox STR — web de presentación (2026-11-29).
   Marca: fondo negro, letras blancas, Space Grotesk (29-logos/inbox-str). Sin acento de color: el blanco es el acento.
   Dirección: «el título fijo» — InBox STR se queda quieto mientras pasan los pasos de la app. */

@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/assets/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); }

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #222;
  --ink: #fff;
  --muted: #a6a6a6;          /* 8,4:1 sobre --bg */
  --paper: #f2f2f0;          /* campo claro del formulario */
  --paper-ink: #0a0a0a;
  --paper-muted: #4d4d4d;    /* 7,9:1 sobre --paper */

  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans Arabic', 'PingFang SC', 'Hiragino Sans', sans-serif;
  /* Cinco tamaños: display, título, medio, texto, pequeño. */
  --fs-display: clamp(64px, 12vw, 200px);
  --fs-h2: clamp(40px, 5.4vw, 84px);
  --fs-mid: clamp(21px, 2.1vw, 30px);
  --fs-body: 17px;
  --fs-small: 14px;

  --m: clamp(16px, 2.6vw, 36px);      /* margen exterior, el mismo en toda la página */
  --gap-sec: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: var(--fs-body); line-height: 1.5; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
h1, h2, h3, p, ul, dl, dd, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3em; min-height: 52px; padding: 0 26px; background: var(--ink); color: var(--bg); font: 700 var(--fs-body)/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background-color .18s var(--ease), transform .18s var(--ease); }
.btn:hover { background: #d6d6d6; }
.btn:active { transform: scale(.97); }
.btn--chico { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--neg { background: var(--paper-ink); color: var(--paper); }
.btn--neg:hover { background: #333; }
.btn--neg:focus-visible { outline-color: var(--paper-ink); }

/* ---------- marca ---------- */
.marca { display: inline-flex; align-items: baseline; gap: .3em; line-height: 1; }
.marca b { font-weight: 700; letter-spacing: -.01em; }
.marca span { font-weight: 500; letter-spacing: .2em; font-size: .72em; }

/* ---------- cabecera ---------- */
.top { display: flex; align-items: center; gap: 24px; padding: 14px var(--m); position: absolute; inset: 0 0 auto; z-index: 20; }
body:has(.texto) .top { position: relative; }
.top__logo { font-size: 22px; text-decoration: none; }
.top__nav { margin-inline-start: auto; }
.top__nav ul { display: flex; gap: 28px; }
.top__nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.top__nav a:hover { color: var(--ink); }
.top__side { display: flex; align-items: center; gap: 12px; margin-inline-start: 28px; }
@media (max-width: 767px) { .top__nav { display: none; } .top__side { margin-inline-start: auto; } }

.lang { position: relative; }
.lang__btn { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px; cursor: pointer; color: var(--muted); font-size: 15px; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn svg { width: 18px; height: 18px; }
.lang__btn:hover, .lang[open] .lang__btn { color: var(--ink); }
.lang__list { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface-2); padding: 8px 0; min-width: 190px; z-index: 30; }
[dir="rtl"] .lang__list { right: auto; left: 0; }
.lang__list a { display: block; padding: 9px 16px; text-decoration: none; font-size: 15px; }
.lang__list a:hover { background: var(--surface); }
.lang__list a[aria-current] { font-weight: 700; }

/* ---------- portada: título fijo, pasos de la app debajo ---------- */
.hero { position: relative; height: 260svh; }
.hero__stage {
  position: sticky; top: 0; height: 100svh; min-height: 560px;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "t t t" "q q q" "lead media btn";
  grid-template-rows: auto auto minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 64px); padding: 68px var(--m) clamp(24px, 4svh, 40px);
}
.hero__t { grid-area: t; justify-self: center; font-size: var(--fs-display); font-weight: 700; line-height: .86; letter-spacing: -.045em; white-space: nowrap; padding-bottom: clamp(12px, 2.5svh, 28px); }
.hero__str { font-weight: 500; letter-spacing: .02em; }
.hero__que { grid-area: q; justify-self: center; text-align: center; font-size: var(--fs-mid); font-weight: 700; padding-bottom: clamp(16px, 3svh, 36px); }
.hero__media { grid-area: media; position: relative; min-height: 0; display: flex; align-items: center; }
.hero__pie { grid-area: lead; align-self: end; max-width: 30ch; display: grid; gap: 14px; }
.hero__lead { font-size: var(--fs-body); font-weight: 700; }
.hero__cuando { color: var(--muted); font-size: var(--fs-small); }
.hero__btn { grid-area: btn; align-self: end; justify-self: end; }
.hero__pies { position: absolute; left: calc(100% + clamp(20px, 3vw, 48px)); top: 50%; translate: 0 -50%; display: grid; gap: 10px; width: max-content; }
[dir="rtl"] .hero__pies { left: auto; right: calc(100% + clamp(20px, 3vw, 48px)); }
.hero__pies li { font-size: var(--fs-mid); font-weight: 700; color: #4a4a4a; transition: color .3s var(--ease); }
.hero__pies li.is-on { color: var(--ink); }
.hero__pasos { position: absolute; inset: 0; pointer-events: none; }

/* La pantalla de la app: fragmento de interfaz hecho en HTML (data-ui). */
.pantalla { position: relative; height: 100%; max-height: 600px; aspect-ratio: 10 / 16; max-width: 100%; background: var(--surface); border-radius: 28px; overflow: hidden; font-size: 15px; }
.pantalla__paso { position: absolute; inset: 0; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; opacity: 0; translate: 0 18px; transition: opacity .45s var(--ease), translate .45s var(--ease); }
.pantalla__paso.is-on { opacity: 1; translate: 0 0; }
.ui__barra { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; padding-bottom: 6px; }
.ui__barra b { color: var(--ink); }
.ui__archivo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.ui__play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; }
.ui__play::after { content: ''; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--bg); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ui__onda { width: 100%; height: auto; color: var(--ink); }
.ui__onda--chica { height: 22px; color: #8a8a8a; margin-top: 4px; }
.ui__meta, .ui__nota { color: var(--muted); font-size: 14px; }
.ui__etq { font-weight: 700; margin-top: 6px; }
.ui__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ui__chips span { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.ui__chips span.is-on { background: var(--ink); color: var(--bg); font-weight: 700; }
.ui__btn { margin-top: auto; background: var(--ink); color: var(--bg); font-weight: 700; text-align: center; padding: 13px; border-radius: 12px; }
.ui__btn--2 { margin-top: 0; background: var(--surface-2); color: var(--ink); }
.ui__fila { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.ui__fila p { font-size: 14px; font-weight: 700; }
.ui__num { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ui__com { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.ui__quien { color: var(--muted); font-size: 13px; }
.ui__grande { font-size: 24px; font-weight: 700; line-height: 1.15; }

@media (max-width: 1023px) {
  .hero { height: 240svh; }
  .hero__stage { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "t" "q" "media" "lead" "btn"; row-gap: 12px; padding-top: 64px; padding-bottom: 20px; }
  .hero__t { font-size: clamp(44px, 16vw, 120px); justify-self: start; padding-bottom: 0; }
  .hero__que { justify-self: start; text-align: start; padding-bottom: 4px; }
  .hero__media { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pantalla { max-height: 54svh; align-self: center; }
  .pantalla { font-size: 14px; }
  .pantalla__paso { padding: 16px 14px; gap: 10px; }
  .hero__pies { position: static; translate: none; width: auto; align-self: center; }
  .hero__pies li { display: none; font-size: 17px; }
  .hero__pies li.is-on { display: block; }
  .hero__pie { max-width: none; gap: 6px; }
  .hero__btn { justify-self: stretch; }
}
@media (max-height: 640px) and (max-width: 767px) { .ui__onda--chica, .ui__meta { display: none; } }
html.no-js .hero { height: auto; }
html.no-js .hero__stage { position: relative; }

/* ---------- cómo funciona: un verbo por pantalla ---------- */
.verbo { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #111; }
.verbo picture, .verbo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verbo img { filter: brightness(.62); }
.verbo__p { position: sticky; top: 50%; translate: 0 -50%; margin-top: 50svh; text-align: center; font-size: clamp(64px, 16vw, 270px); font-weight: 700; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; padding: 0 var(--m); white-space: nowrap; }
.verbo__p span { display: inline-block; }
.verbo__t { position: absolute; left: var(--m); bottom: clamp(24px, 5svh, 48px); max-width: 34ch; font-size: var(--fs-mid); font-weight: 700; line-height: 1.25; background: rgba(10,10,10,.78); padding: 14px 18px; }
[dir="rtl"] .verbo__t { left: auto; right: var(--m); }
@media (max-width: 767px) { .verbo__t { right: var(--m); max-width: none; font-size: 18px; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .verbo img { animation: acercar linear both; animation-timeline: view(); }
    @keyframes acercar { from { scale: 1.14; } to { scale: 1; } }
  }
}

/* ---------- tú decides quién lo oye (lo interactivo) ---------- */
.quien-oye { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; padding: var(--gap-sec) var(--m) 0; align-items: start; }
.quien-oye__txt { grid-column: 1 / 6; display: grid; gap: 24px; }
.quien-oye__txt p { font-size: var(--fs-mid); line-height: 1.3; max-width: 26ch; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: .95; letter-spacing: -.035em; max-width: 14ch; }
.oye { grid-column: 7 / 13; display: grid; gap: 28px; }
.oye__ops { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.oye__ops label, .aviso__soy label { position: relative; cursor: pointer; }
.oye__ops input, .aviso__soy input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.oye__ops span, .aviso__soy span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; background: var(--surface-2); font-weight: 700; transition: background-color .18s var(--ease), color .18s var(--ease); }
.oye__ops label:hover span { background: #333; }
.oye__ops input:checked + span { background: var(--ink); color: var(--bg); }
.oye__ops input:focus-visible + span, .aviso__soy input:focus-visible + span { outline: 3px solid currentColor; outline-offset: 3px; }
.oye__res { display: grid; gap: 8px; background: var(--surface); padding: clamp(20px, 3vw, 36px); }
.oye__res > div { display: grid; grid-template-columns: minmax(9em, 1fr) 2fr; gap: 16px; padding: 12px 0; align-items: baseline; }
.oye__res dt { color: var(--muted); }
.oye__res dd { font-size: var(--fs-mid); font-weight: 700; line-height: 1.2; display: none; animation: aparece .35s var(--ease); }
.oye:has([value="publico"]:checked) .o-publico, .oye:has([value="sellos"]:checked) .o-sellos, .oye:has([value="directo"]:checked) .o-directo { display: block; }
@supports not selector(:has(*)) { .oye__res .o-publico { display: block; } }
.oye__nota { color: var(--muted); }
@keyframes aparece { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1023px) { .quien-oye__txt, .oye { grid-column: 1 / -1; } }
@media (max-width: 479px) { .oye__res > div { grid-template-columns: 1fr; gap: 4px; } .oye__ops span { padding: 0 16px; } }

/* ---------- para quién: tabla a un solo tamaño ---------- */
.para { padding: var(--gap-sec) var(--m) 0; display: grid; gap: clamp(40px, 5vw, 72px); }
.para__t { width: 100%; border-collapse: collapse; font-size: var(--fs-mid); line-height: 1.25; }
.para__t th, .para__t td { text-align: start; vertical-align: top; padding: 0 24px 1.1em 0; font-weight: 500; }
.para__t th { font-weight: 700; width: 22%; }
.para__t td { color: var(--muted); width: 26%; }
@media (min-width: 768px) { .para__t td:last-child { padding-inline-end: 0; text-align: end; } }
.para__t tr:hover td { color: var(--ink); }
.para__t td { transition: color .2s; }
@media (max-width: 767px) {
  .para__t, .para__t tbody, .para__t tr, .para__t th, .para__t td { display: block; width: auto; }
  .para__t tr { padding-bottom: 28px; }
  .para__t th { font-size: 26px; padding: 0 0 6px; }
  .para__t td { font-size: var(--fs-body); padding: 0 0 2px; }
}

/* ---------- preguntas ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; padding: var(--gap-sec) var(--m) var(--gap-sec); }
.faq .h2 { grid-column: 1 / 5; }
.faq__lista { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; display: block; position: relative; padding: 22px 64px 22px 24px; font-size: var(--fs-mid); font-weight: 700; line-height: 1.2; transition: background-color .18s; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 22px; font-weight: 500; transition: rotate .25s var(--ease); }
[dir="rtl"] .faq summary { padding: 22px 24px 22px 64px; }
[dir="rtl"] .faq summary::after { right: auto; left: 24px; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 24px 24px; font-size: 18px; max-width: 60ch; }
@media (max-width: 1023px) { .faq .h2, .faq__lista { grid-column: 1 / -1; } .faq summary { padding: 18px; padding-inline-end: 56px; } .faq summary::after { right: 18px; top: 18px; } [dir="rtl"] .faq summary::after { right: auto; left: 18px; } .faq details p { padding: 0 18px 20px; } }

/* ---------- avísame: campo claro ---------- */
.avisame { background: var(--paper); color: var(--paper-ink); padding: clamp(72px, 10vw, 150px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; }
.avisame .h2 { grid-column: 1 / 7; max-width: 12ch; }
.avisame__lead { grid-column: 1 / 7; font-size: var(--fs-mid); line-height: 1.3; }
.aviso { grid-column: 8 / 13; grid-row: 1 / span 3; display: grid; gap: 22px; align-content: start; }
.aviso__campo { display: grid; gap: 8px; }
.aviso__campo label, .aviso__soy legend { font-weight: 700; }
.aviso input[type="email"] { width: 100%; min-height: 60px; padding: 0 16px; font: 500 20px var(--font); color: var(--paper-ink); background: #fff; border: 2px solid var(--paper-ink); border-radius: 0; }
.aviso input[type="email"]::placeholder { color: #767676; }
.aviso input[type="email"]:focus-visible { outline: 3px solid var(--paper-ink); outline-offset: 2px; }
.aviso__soy { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aviso__soy legend { padding: 0; margin-bottom: 8px; }
.aviso__soy span { background: #e0e0dd; min-height: 46px; padding: 0 18px; }
.aviso__soy label:hover span { background: #d0d0cc; }
.aviso__soy input:checked + span { background: var(--paper-ink); color: var(--paper); }
.aviso__ok { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--paper-muted); cursor: pointer; }
.aviso__ok input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--paper-ink); flex: none; }
.aviso__ok a { color: var(--paper-ink); }
.aviso { position: relative; }
.aviso__trampa { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: honeypot oculto */
.aviso .btn { justify-self: start; min-width: 200px; }
.aviso .btn[disabled] { opacity: .6; cursor: progress; }
.aviso__estado { font-weight: 700; min-height: 1.5em; }
.aviso__estado.is-error { color: #a30000; }
.aviso__sinjs { font-size: 15px; color: var(--paper-muted); }
html:not(.no-js) .aviso__sinjs { display: none; }
.aviso--alt { gap: 20px; }
.aviso--alt p { font-size: var(--fs-body); max-width: 40ch; }
.aviso--alt a:not(.btn) { color: var(--paper-ink); }
.cf-turnstile { min-height: 65px; }
@media (max-width: 1023px) { .avisame .h2, .avisame__lead, .aviso { grid-column: 1 / -1; grid-row: auto; } .aviso { margin-top: 12px; } .aviso .btn { justify-self: stretch; } }

/* ---------- pie: foto y menú ---------- */
.pie { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; background: var(--bg); }
.pie__foto { position: relative; overflow: hidden; }
.pie__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); }
.pie__menu { padding: clamp(40px, 6vw, 80px) var(--m); display: grid; align-content: start; gap: 40px; }
.pie__marca { font-size: 26px; }
.pie__nav { display: grid; gap: 14px; }
.pie__nav a { font-size: clamp(26px, 2.6vw, 42px); font-weight: 700; text-decoration: none; display: inline-block; transition: translate .2s var(--ease), color .2s; }
.pie__nav:hover a { color: var(--muted); }
.pie__nav a:hover, .pie__nav a:focus-visible { color: var(--ink); translate: 12px 0; }
.pie__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 15px; color: var(--muted); }
.pie__datos a { color: var(--ink); }
.pie__legal { font-size: var(--fs-small); color: var(--muted); align-self: end; }
@media (max-width: 767px) {
  .pie { grid-template-columns: 1fr; }
  .pie__foto { height: 46svh; }
  .pie__nav a { font-size: 28px; }
  .pie__datos { grid-template-columns: 1fr; }
}

/* ---------- páginas de texto (privacidad, gracias, 404) ---------- */
.texto { padding: clamp(48px, 8vw, 120px) var(--m) var(--gap-sec); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.texto > * { grid-column: 1 / 9; }
.texto h1 { font-size: var(--fs-h2); line-height: .95; letter-spacing: -.035em; margin-bottom: 32px; }
.texto h2 { font-size: var(--fs-mid); margin: 40px 0 10px; }
.texto p, .texto li { max-width: 68ch; margin-bottom: 12px; }
.texto ul { list-style: disc; padding-inline-start: 1.2em; }
.texto .nota { color: var(--muted); }
@media (max-width: 1023px) { .texto > * { grid-column: 1 / -1; } }

/* ---------- entradas al hacer scroll (main.js) ---------- */
html:not(.no-js) .rv { opacity: 0; translate: 0 24px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: var(--d, 0ms); }
html:not(.no-js) .rv.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html:not(.no-js) .rv { opacity: 1 !important; translate: none !important; }
  .pantalla__paso { translate: none; }
}
@media (hover: none) { .para__t tr:hover td { color: var(--muted); } .pie__nav:hover a { color: var(--ink); } }
