@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: block; src: url("/fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: block; src: url("/fonts/dmsans-latin.woff2") format("woff2"); }
/* Páginas de leer de piquefit.app (PIQ-668): cómo funciona, guías, preguntas, prensa, soporte y
   legales. Misma casa que la portada (portada.css): sus colores, su letra, su barra, sus botones
   y su pie, con una columna de lectura centrada. Los colores de :root son los de portada.css y
   un test exige que sigan iguales. */
:root {
  color-scheme: dark;
  --page: #0A0B0D; --bg: #0F1114; --surface: #191B1F; --surface-hi: #222429; --surface-higher: #2E3137;
  --line: #2A2D33; --spec: rgba(255,255,255,.07);
  --text: #F2F3F5; --soft: #C9CDD3; --muted: #9EA3AB;
  --accent: #C6F432; --on-accent: #0F1012; --acc-cont: #1E280B; --acc-border: #3D5214;
  --mob: #7CC8FF; --mob-cont: #13283A; --rival: #FF8A6B;
  --f-display: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.6; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--page); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }

/* Botones, barra y pie: los de la portada */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 16px; font-weight: 700; padding: 15px 26px; font-size: 16px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(198,244,50,.5); }
.btn:active { transform: scale(.97); }
.btn.sm { padding: 10px 16px; font-size: 14px; border-radius: 999px; white-space: nowrap; }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 12px; }
.nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 999px; background: rgba(15,17,20,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.links { display: flex; gap: 4px; }
.links a { text-decoration: none; color: var(--soft); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.links a:hover { background: var(--surface-hi); color: var(--text); }
.nav-r { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 12px; font-weight: 700; }
.lang a, .lang span { text-decoration: none; padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang .on { background: var(--surface-hi); color: var(--text); }
body > footer { padding: 36px 0 56px; color: var(--muted); font-size: 14px; }
body > footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
body > footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
body > footer a { color: var(--soft); text-decoration: none; }
body > footer a:hover { color: var(--text); }
@media (max-width: 900px) { .links { display: none; } }
@media (max-width: 420px) { .nav .btn.sm { padding: 9px 12px; font-size: 13px; } .nav .lang { display: none; } }

/* Columna de lectura, centrada */
main { max-width: 760px; margin-inline: auto; padding: clamp(28px, 5vw, 56px) var(--gr) 40px var(--gl); }
/* Pestañas de la ayuda. La elegida va en gris claro, nunca en lima */
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: fit-content; max-width: 100%; margin: 0 auto clamp(28px, 4vw, 44px); padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--surface-higher); view-transition-name: pastilla; transition: transform .32s var(--ease); }
.tabs.t1 i { transform: translateX(100%); } .tabs.t2 i { transform: translateX(200%); }
.tabs a { position: relative; text-align: center; text-decoration: none; color: var(--soft); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; white-space: nowrap; transition: color .2s; }
.tabs a:hover, .tabs a[aria-current], .tabs a.va { color: var(--text); }
.tabs.yendo a[aria-current]:not(.va) { color: var(--soft); }
.tabs a:nth-of-type(1) { view-transition-name: pest-1; } .tabs a:nth-of-type(2) { view-transition-name: pest-2; } .tabs a:nth-of-type(3) { view-transition-name: pest-3; }
@media (max-width: 380px) { .tabs a { padding: 9px 12px; font-size: 13px; } th, td { padding: 10px 8px; font-size: 14px; overflow-wrap: anywhere; } th { letter-spacing: .04em; } }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; font-stretch: 125%; line-height: .94; letter-spacing: -.03em; text-transform: uppercase; text-align: center; }
.updated { color: var(--soft); font-size: clamp(17px, 1.6vw, 19px); text-align: center; max-width: 34em; margin: 18px auto 0; }
.updated + * { margin-top: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; margin: 44px 0 10px; }
h3 { font-size: 19px; font-weight: 800; margin: 28px 0 6px; }
p, li, dd { color: var(--soft); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--muted); font-weight: 700; }
strong, b { color: var(--text); }
main a { color: var(--accent); text-underline-offset: 3px; }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--text); line-height: 1.5; }
.soft { color: var(--soft); }
.crumbs { font-size: 14px; text-align: center; margin: 0 0 14px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.k { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Tablas, notas y cajas: la superficie de las tarjetas de la portada */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0 20px; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; color: var(--soft); border-top: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--surface-hi); border-top: 0; }
td:first-child { color: var(--text); font-weight: 700; }
.note { background: var(--acc-cont); border: 1.5px solid var(--acc-border); border-radius: 16px; padding: 16px 18px; margin: 20px 0; }
.note p { margin: 0; color: var(--text); }
.note strong { color: var(--accent); }
.box { background: var(--surface); border-radius: 16px; padding: 18px 20px; margin: 12px 0; display: grid; gap: 6px; }
.box p { margin: 0; color: var(--text); }
.qa { background: var(--surface); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
.qa b { display: block; font-weight: 700; margin-bottom: 4px; }
.qa span { color: var(--soft); font-size: 16px; }

/* Preguntas: las mismas tarjetas que «Lo que nos preguntan» */
.faq { display: grid; gap: 10px; }
.faq h2 { margin: 34px 0 4px; }
.faq h2:first-child { margin-top: 0; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding-bottom: 18px; font-size: 16px; }

/* Índice de guías */
.guides { list-style: none; padding: 0; margin-bottom: 0; display: grid; gap: 10px; }
.guides li { margin: 0; }
.guides a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 20px; background: var(--surface); border-radius: 16px; text-decoration: none; transition: background .2s; }
.guides a::after { content: "›"; grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 26px; line-height: 1; }
.guides a b { font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.2; }
.guides a span { color: var(--soft); font-size: 15px; }
.guides a:hover { background: var(--surface-hi); }
.guides a:hover::after { color: var(--accent); }

/* Cierre: a la beta */
.next { margin-top: 56px; padding: clamp(24px, 4vw, 36px); background: var(--surface); border-radius: 24px; display: grid; gap: 16px; justify-items: center; text-align: center; box-shadow: inset 0 1px 0 var(--spec); }
.next p { margin: 0; color: var(--text); font-family: var(--f-display); font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2; text-wrap: balance; }

/* Prensa */
.press main { max-width: 900px; }
.press .lead { max-width: 40em; }
dl.facts { margin: 16px 0; background: var(--surface); border-radius: 16px; padding: 4px 20px; }
dl.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 4px 20px; padding: 14px 0; }
dl.facts div + div { border-top: 1px solid var(--line); }
dl.facts dt { font-weight: 700; color: var(--text); }
dl.facts dd { margin: 0; }
blockquote { margin: 0; color: var(--text); }
.press .copy { display: inline-block; margin-top: 8px; font-size: 14px; }
.logos { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }
.logos a { display: grid; gap: 8px; justify-items: start; color: var(--soft); text-decoration: none; font-size: 14px; }
.logos img { width: 96px; height: 96px; border-radius: 22px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.shots a { display: grid; gap: 6px; color: var(--soft); text-decoration: none; font-size: 13px; min-width: 0; }
.shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 640px) {
  dl.facts div { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* «Cómo funciona» visual (PIQ-669): cada regla junto a su captura real de la app */
.how main { max-width: 1040px; }
.how main > .tabs ~ h1, .how .updated, .how main > .lead, .how .rule.solo, .how .next { max-width: 728px; margin-inline: auto; }
.how main > .lead { text-align: center; }
.ph { width: min(280px, 68vw); flex: none; margin-inline: auto; padding: 7px; border-radius: 44px; background: #000; box-shadow: 0 0 0 1px var(--surface-higher), 0 50px 90px -50px #000, inset 0 0 0 1px var(--spec); }
.ph img { display: block; width: 100%; height: auto; border-radius: 37px; }
.hero-ph { margin-top: clamp(32px, 5vw, 52px); }
.rule { margin-top: clamp(56px, 8vw, 104px); }
.rule:not(.solo) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px clamp(32px, 7vw, 96px); }
.rule.rev { grid-template-columns: auto minmax(0, 1fr); }
.rule.rev .txt { order: 2; }
.rule:not(.solo) { max-width: 900px; margin-inline: auto; }
.rule h2 { margin-top: 0; }
.rule .txt > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .rule:not(.solo), .rule.rev { grid-template-columns: minmax(0, 1fr); } .rule.rev .txt { order: 0; } }

/* Calculadora de puntos */
[hidden] { display: none !important; }
.calc { background: var(--surface); border-radius: 24px; padding: clamp(20px, 3vw, 28px); margin-top: 20px; display: grid; gap: 14px; box-shadow: inset 0 1px 0 var(--spec); }
.calc p { margin: 0; }
.calc > label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--text); }
.calc output { font: 800 22px var(--f-display); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; height: 32px; margin: -6px 0 0; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 4px; border-radius: 14px; background: var(--bg); }
.seg label { position: relative; display: grid; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { text-align: center; padding: 11px 4px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--soft); }
.seg input:checked + span { background: var(--surface-higher); color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc .res { font-size: 17px; color: var(--soft); text-align: center; padding-top: 6px; }
.calc .res b { display: block; font: 900 clamp(48px, 9vw, 72px)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc.cap .res b { color: var(--rival); }
.calc .why { text-align: center; font-size: 15px; color: var(--muted); min-height: 3em; }
@media (max-width: 380px) { h1 { font-size: clamp(22px, 7.4vw, 30px); } }

/* Cambiar de página sin saltos y con suavidad (PIQ-668). La letra llega precargada y no se pinta
   antes otra (font-display: block). Donde el navegador lo admite, al pasar de una página a otra
   la barra y las pestañas se quedan quietas, la pastilla gris se desliza a la elegida y el
   contenido sale y entra con un fundido corto que sube 10 px. La pastilla empieza a moverse en el
   mismo toque (js/pagina.js), sin esperar a que llegue la página. Sin muelles ni rebotes. Con
   «reducir movimiento», corte seco. */
@view-transition { navigation: auto; }
.nav .bar { view-transition-name: barra; }
::view-transition-group(pastilla) { animation-duration: .32s; animation-timing-function: var(--ease); }
::view-transition-old(pastilla), ::view-transition-new(pastilla) { height: 100%; }
::view-transition-old(root) { animation: pg-sale .1s ease-in both; }
::view-transition-new(root) { animation: pg-entra .24s var(--ease) .06s both; }
@keyframes pg-sale { to { opacity: 0; } }
@keyframes pg-entra { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } .tabs i { transition: none; } }
