/* La Pira 2 · web pública (lapira.plantekia.com)
   Estilo del juego: cielo pintado, cartón, papel, cinta y pegatina (Docs/ArtBible del proyecto de Unity).
   Solo modo claro (lección WEB-03 de la fábrica). Escala de espacio: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96. */

@font-face { font-family: "Bangers"; src: url("/fonts/bangers-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #2B1A10;          /* tinta marrón de los rótulos */
  --ink-2: #5B4232;
  --papel: #FBF4DA;        /* fondo de página */
  --papel-2: #F6EBB0;      /* papel crema de las tarjetas (paleta UI) */
  --blanco: #FFFDF6;
  --carton: #A0592C;
  --carton-claro: #D98B4E;
  --carton-osc: #6E3A1A;
  --naranja: #EB6200;      /* naranja del título */
  --amarillo: #F7CE08;     /* amarillo de BUM */
  --verde: #87DE00;        /* verde acción */
  --verde-canto: #4A9F00;
  --cielo: #0098B8;
  --sombra: 0 10px 24px rgba(43, 26, 16, .18), 0 2px 4px rgba(43, 26, 16, .12);
  --display: "Bangers", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --gutter: 16px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: clip;
  background: var(--papel); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1.18; }
h3 { font-size: 30px; line-height: 1.2; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.tag + h1, .tag + h2 { padding-top: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- piezas del juego ---------- */
.tag {
  display: inline-block; font-family: var(--body); font-weight: 800; font-size: 14px; line-height: 1.3;
  letter-spacing: .1em; text-transform: uppercase; color: var(--carton-osc);
}
/* pegatina: amarilla, con contorno blanco y un poco torcida (el giro pide aire: margen ≥ 12 px) */
.sticker {
  display: inline-block; padding: .02em .22em .04em; margin: 12px .06em 4px;
  background: var(--amarillo); color: var(--ink); border-radius: 8px;
  box-shadow: 0 0 0 4px #fff, 0 8px 16px rgba(43, 26, 16, .22);
  transform: rotate(-2deg);
}
.sticker.verde { background: var(--verde); }
.sticker.naranja { background: var(--naranja); color: #fff; }
/* tarjeta de papel con un trozo de cinta */
.paper {
  position: relative; background: var(--papel-2); border-radius: 6px;
  box-shadow: var(--sombra); padding: 40px 24px 32px;
}
.paper::before {
  content: ""; position: absolute; top: -18px; left: 24px; width: 132px; height: 47px;
  background: url("/img/tira.webp") center / contain no-repeat; transform: rotate(-5deg);
}
@media (min-width: 600px) { .paper { padding: 48px 40px 40px; } }
/* foto con marco blanco, como una captura pegada */
.shot { background: #fff; padding: 8px; border-radius: 6px; box-shadow: var(--sombra); }
.shot img { border-radius: 3px; width: 100%; }
@media (min-width: 900px) { .shot { padding: 12px; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  font-family: var(--body); font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none;
  color: var(--ink); background: var(--verde); border-radius: 12px;
  box-shadow: inset 0 -5px 0 var(--verde-canto), 0 4px 10px rgba(43, 26, 16, .2);
}
.btn:hover { filter: brightness(1.05); }
.btn.papel { background: var(--blanco); box-shadow: inset 0 -4px 0 #E2D6A6, 0 4px 10px rgba(43, 26, 16, .16); }

/* ---------- cabecera ---------- */
header { position: relative; z-index: 2; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: block; flex: none; }
.brand img { width: 128px; filter: drop-shadow(0 4px 6px rgba(0, 40, 60, .25)); }
@media (min-width: 900px) { .brand img { width: 168px; } header .wrap { padding-top: 24px; } }
nav.main { display: flex; align-items: center; gap: 8px; }
nav.main a, .lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 253, 246, .92); color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 40, 60, .18);
}
nav.main a:hover { background: #fff; }
.lang { gap: 4px; padding: 2px 4px; }
.lang b, .lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; border-radius: 999px; font-size: 15px; }
.lang b { background: var(--ink); color: var(--blanco); }
.lang a { background: none !important; box-shadow: none !important; padding: 0 !important; }
@media (max-width: 899px) { .hide-sm { display: none !important; } }

/* ---------- portada (cielo pintado del juego) ---------- */
.hero {
  position: relative; color: var(--ink);
  background: var(--cielo) url("/img/cielo-1200.jpg") center bottom / cover no-repeat;
  padding-bottom: 64px;
}
@media (min-width: 900px) { .hero { background-image: url("/img/cielo-2400.jpg"); padding-bottom: 128px; } }
.hero-grid { display: grid; gap: 48px; padding-top: 24px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 64px; padding-top: 16px; }
  .why.paper { padding-top: 40px; }
}
.why { display: grid; gap: 24px; }
.why .step { display: grid; gap: 8px; }
.why h1 { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.16; text-wrap: pretty; }
.why .how, .why .what { font-size: 18px; line-height: 1.6; max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 8px; border-top: 2px dashed rgba(110, 58, 26, .3); margin-top: 8px; padding-top: 24px; }
.platforms { font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.art-movil { margin: 8px auto 8px; max-width: 280px; width: 100%; transform: rotate(2deg); }
@media (min-width: 960px) { .art-movil { display: none; } }
@media (max-width: 959px) { .art { display: none; } }
.art { position: relative; max-width: 360px; width: 100%; margin: 0 auto; padding: 12px 12px 40px; }
.art .shot { transform: rotate(2.5deg); padding: 12px; }
.art .shot img { aspect-ratio: 1; object-fit: cover; }
.art .boom { position: absolute; left: -8px; bottom: 0; width: 42%; max-width: 210px; transform: rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(43, 26, 16, .3)); }
@media (min-width: 960px) { .art { max-width: 480px; margin: 0 0 0 auto; } .art .boom { left: -40px; } }

/* ---------- franja de cartón ---------- */
.promises {
  background: linear-gradient(rgba(60, 25, 5, .15), rgba(60, 25, 5, .15)), var(--carton) url("/img/carton.jpg") center / cover;
  border-top: 4px solid var(--carton-osc); border-bottom: 4px solid var(--carton-osc);
  color: #FFF6DC;
}
.promises ul {
  list-style: none; margin: 0 auto; max-width: 1200px; padding: 24px var(--gutter);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
  font-weight: 800; font-size: 16px; line-height: 1.35;
}
.promises li { display: flex; align-items: flex-start; gap: 8px; text-shadow: 0 1px 0 rgba(60, 25, 5, .5); }
.promises li::before { content: ""; flex: none; margin-top: .4em; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 2px #fff; }
@media (min-width: 760px) { .promises ul { display: flex; flex-wrap: wrap; justify-content: space-between; } }

/* ---------- secciones ---------- */
.band { padding: 64px 0; }
@media (min-width: 900px) { .band { padding: 96px 0; } }
.head { display: grid; gap: 8px; max-width: 760px; margin-bottom: 48px; }
.head p { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin-top: 8px; }
@media (min-width: 900px) { .head p { font-size: 19px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.steps li { display: grid; gap: 8px; align-content: start; }
.steps .shot { margin-bottom: 16px; }
.steps li:nth-child(1) .shot { transform: rotate(-1.2deg); }
.steps li:nth-child(2) .shot { transform: rotate(1deg); }
.steps li:nth-child(3) .shot { transform: rotate(-.6deg); }
.num { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--naranja); letter-spacing: .04em; }
.steps p { color: var(--ink-2); max-width: 46ch; }

/* cielo de noche */
.sky { background: linear-gradient(180deg, #D3ECF2 0%, #EAF5F1 100%); }
.band.snug { padding-top: 32px; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }
.split .head { margin-bottom: 0; }
.figure { position: relative; padding: 24px 8px 8px; }
.figure .shot { transform: rotate(1deg); }
.figure .pegatina { position: absolute; top: -12px; right: 0; width: 34%; max-width: 220px; transform: rotate(6deg); filter: drop-shadow(0 6px 10px rgba(43, 26, 16, .3)); }

/* garaje: titular arriba y la captura grande debajo */
.garage .shot { transform: rotate(-.5deg); }
@media (max-width: 599px) { .garage .figure { margin: 0 -8px; } }
.garage .head { max-width: 760px; }
.garage .figure { padding-top: 0; }
.garage .figure .pegatina { top: auto; bottom: -88px; right: -8px; width: 26%; max-width: 230px; transform: rotate(-6deg); }
@media (max-width: 599px) { .garage .figure .pegatina { bottom: -56px; right: 8px; width: 34%; } }
@media (min-width: 1100px) { .garage .figure .pegatina { right: -40px; } }

/* privacidad en una tarjeta */
.private { display: grid; gap: 24px; align-items: center; }
.private h2 { font-size: clamp(34px, 4.4vw, 50px); }
.private p { color: var(--ink-2); max-width: 62ch; margin-top: 12px; }
@media (min-width: 900px) { .private { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

/* soporte */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--blanco); border-radius: 12px; box-shadow: 0 2px 8px rgba(43, 26, 16, .1); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 20px; font-weight: 800; font-size: 18px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--papel-2); font-family: var(--body); font-weight: 800; font-size: 24px; line-height: 1; color: var(--carton-osc); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); max-width: 70ch; }
.faq details p + p { padding-top: 0; margin-top: -8px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 48px; }
.contact span { color: var(--ink-2); }

/* cierre */
.final { text-align: center; background: var(--cielo) url("/img/cielo-1200.jpg") center bottom / cover no-repeat; padding: 64px 0 160px; }
@media (min-width: 900px) { .final { background-image: url("/img/cielo-2400.jpg"); padding: 96px 0 220px; } }
.final .logo { width: min(440px, 80%); margin: 0 auto; filter: drop-shadow(0 8px 12px rgba(0, 40, 60, .3)); }
.final .paper { display: inline-grid; gap: 16px; justify-items: center; margin-top: 32px; max-width: 560px; }
.final .paper::before { left: 50%; margin-left: -66px; }
.final h2 { font-size: clamp(34px, 4.4vw, 48px); }
.final .carro { width: 180px; margin: 8px auto 0; filter: drop-shadow(0 6px 10px rgba(43, 26, 16, .3)); }

/* ---------- pie (lección WEB-04) ---------- */
footer { background: var(--papel); border-top: 4px solid var(--carton); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 40px; font-size: 15px; color: var(--ink-2); }
.by { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.by img { height: 22px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer .marks { flex-basis: 100%; font-size: 13px; line-height: 1.5; color: #7A6555; max-width: 90ch; }

/* ---------- páginas de texto (privacidad) ---------- */
.doc-hero { background: var(--cielo) url("/img/cielo-1200.jpg") center bottom / cover no-repeat; padding-bottom: 72px; }
@media (min-width: 900px) { .doc-hero { background-image: url("/img/cielo-2400.jpg"); padding-bottom: 112px; } }
.doc-hero .paper { max-width: 756px; margin: 24px auto 0; }
.doc-hero h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.16; margin-top: 8px; }
.updated { color: var(--ink-2); margin-top: 16px; font-size: 16px; }
.doc { max-width: 820px; margin: 0 auto; padding: 64px var(--gutter) 96px; display: grid; gap: 24px; }
.doc section { background: var(--blanco); border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(43, 26, 16, .08); }
@media (min-width: 600px) { .doc section { padding: 32px 40px; } }
.doc p, .doc ul { max-width: 64ch; }
.doc h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.2; margin-bottom: 12px; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--naranja); }
.doc .short { background: var(--papel-2); }
