/* Turbo Fart — sitio web (turbofart.com). Colores y letras del juego: DynaPuff para títulos, Fredoka para texto. */
:root {
  --yellow: #ffd12e;
  --yellow-deep: #ffb800;
  --pink: #ff6fa8;
  --pink-deep: #e8477f;
  --green: #5bd93d;
  --green-deep: #36a91f;
  --lime: #b4f05a;
  --blue: #2fa8ff;
  --sky-top: #8edcff;
  --sky-low: #45b4ff;
  --water: #1c8cf0;
  --water-deep: #0f63c9;
  --purple-950: #150628;
  --purple-900: #1f0b3a;
  --purple-800: #2a1250;
  --purple-700: #3b1c6e;
  --purple-500: #6b46c1;
  --lavender: #c3b2ff;
  --cream: #fff7e8;
  --ink: #1b0f2e;
  --text-soft: rgba(255, 255, 255, 0.82);
  --radius-l: 32px;
  --radius-m: 22px;
  --shadow-candy: 0 8px 0 rgba(27, 15, 46, 0.9);
  --shadow-soft: 0 18px 40px rgba(10, 2, 30, 0.35);
  --max: 1180px;
  --font-title: "DynaPuff", "Fredoka", system-ui, sans-serif;
  --font-text: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  color: #fff;
  background: var(--purple-900);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

/* idioma: se ve el bloque del idioma elegido */
html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* ---------------------------------------------------------------- encabezado */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.top.scrolled { background: rgba(31, 11, 58, 0.86); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.brand span { font-family: var(--font-title); font-weight: 700; font-size: 22px; letter-spacing: 0.3px; text-shadow: 0 3px 0 var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: 16px; }
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.lang { display: flex; background: rgba(0, 0, 0, 0.28); border-radius: 999px; padding: 3px; margin-left: 6px; }
.lang button {
  border: 0; background: transparent; color: #fff; font: 700 14px var(--font-text); padding: 6px 11px;
  border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.brand span { white-space: nowrap; }
@media (max-width: 760px) { .nav a.hide-m { display: none; } .brand span { font-size: 17px; } }

/* ---------------------------------------------------------------- botones */
.btn {
  --c: var(--green); --d: var(--green-deep);
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff;
  font: 700 20px var(--font-title); padding: 16px 26px; border-radius: 999px; border: 4px solid var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff) 0%, var(--c) 55%, var(--d) 100%);
  box-shadow: 0 6px 0 var(--ink); text-shadow: 0 2px 0 rgba(27, 15, 46, 0.55);
  transition: transform 0.12s, box-shadow 0.12s; position: relative; overflow: hidden;
}
.btn::after { content: ""; position: absolute; left: 10%; right: 10%; top: 6px; height: 34%; border-radius: 999px; background: rgba(255, 255, 255, 0.32); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); color: #fff; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn small { display: block; font: 600 12px var(--font-text); opacity: 0.9; letter-spacing: 0.4px; text-transform: uppercase; }
.btn .t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn svg { width: 30px; height: 30px; flex: none; }
.btn.store { --c: #2a1250; --d: #150628; }
.btn.yellow { --c: var(--yellow); --d: var(--yellow-deep); color: var(--ink); text-shadow: none; }
.btn.pink { --c: var(--pink); --d: var(--pink-deep); }
.soon { display: inline-block; margin-left: 4px; font: 700 11px var(--font-text); background: var(--pink); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }

/* ---------------------------------------------------------------- portada */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding: 110px 0 170px;
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(255, 255, 255, 0.45), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 55%, var(--water) 100%);
  overflow: hidden; isolation: isolate;
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero { padding-top: 96px; } }

.logo { margin: 0; font-family: var(--font-title); font-weight: 700; line-height: 0.92; letter-spacing: 1px; }
.logo .l1, .logo .l2 {
  display: block; color: var(--yellow);
  -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill;
  text-shadow: 0 10px 0 var(--ink);
}
.logo .l1 { font-size: clamp(44px, 7vw, 82px); color: #fff; }
.logo img { display: block; width: min(100%, 600px); height: auto; margin-left: -12px; filter: drop-shadow(0 8px 0 rgba(27, 15, 46, 0.25)); }
@media (max-width: 900px) { .logo img { margin: 0 auto; width: min(100%, 520px); } }
.logo .l2 { font-size: clamp(66px, 11.5vw, 150px); transform: rotate(-2deg); transform-origin: left; }
@media (max-width: 900px) { .logo .l2 { transform-origin: center; } }
.tagline {
  display: inline-block; margin: 26px 0 10px; font: 700 clamp(20px, 2.6vw, 28px) var(--font-title);
  background: var(--pink); color: #fff; padding: 10px 22px; border-radius: 999px; border: 4px solid var(--ink);
  box-shadow: var(--shadow-candy); transform: rotate(-1.5deg); text-shadow: 0 2px 0 rgba(27, 15, 46, 0.5);
}
.hero p.lead { font-size: clamp(18px, 2vw, 22px); color: #fff; max-width: 560px; text-shadow: 0 2px 8px rgba(15, 60, 120, 0.5); margin: 18px 0 30px; }
@media (max-width: 900px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 900px) { .cta { justify-content: center; } }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 900px) { .badges { justify-content: center; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink);
  background: rgba(255, 255, 255, 0.92); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 0 4px 0 var(--ink);
}
.badge i { font-style: normal; font-size: 18px; }

/* el celular con el video del juego */
.phone-stage { position: relative; justify-self: center; width: min(360px, 78vw); }
.phone {
  position: relative; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px; background: #120522;
  border: 5px solid var(--ink); box-shadow: 0 30px 60px rgba(8, 30, 80, 0.45), inset 0 0 0 3px #3a2063;
  transform: rotate(4deg); animation: bob 6s ease-in-out infinite;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: #120522; border-radius: 999px; z-index: 2; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #2fa8ff; }
@keyframes bob { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-14px); } }
.phone-stage .pal { position: absolute; width: 42%; filter: drop-shadow(0 10px 14px rgba(10, 30, 70, 0.4)); z-index: 3; }
.phone-stage .pal.a { left: -28%; bottom: 6%; transform: rotate(-8deg); animation: peek 5s ease-in-out infinite; }
.phone-stage .pal.b { right: -26%; top: 10%; transform: rotate(9deg) scaleX(-1); animation: peek 5.6s ease-in-out infinite reverse; }
@keyframes peek { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 900px) { .phone-stage { margin-top: 20px; } .phone-stage .pal.a { left: -18%; } .phone-stage .pal.b { right: -16%; } }

/* nubes de pedo que suben */
.puffs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.puff {
  position: absolute; bottom: -120px; width: var(--s, 90px); height: var(--s, 90px); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4ffd6 0%, #c8f56a 38%, #8fd63c 72%, #5fae2a 100%);
  opacity: 0.8; filter: drop-shadow(0 6px 10px rgba(40, 90, 20, 0.25)); animation: rise var(--t, 14s) linear infinite; animation-delay: var(--d, 0s);
}
.puff::before, .puff::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.puff::before { width: 70%; height: 70%; left: -38%; top: 22%; }
.puff::after { width: 60%; height: 60%; right: -30%; top: 30%; }
@keyframes rise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 0.8; }
  100% { transform: translate(var(--x, 40px), -120vh) scale(1.25); opacity: 0; }
}

/* olas entre secciones */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 140px; z-index: 1; }
.wave svg { width: 112%; margin-left: -6%; height: 100%; display: block; } /* (más ancha: al moverse no se ve el borde) */
.wave .w1 { animation: drift 9s ease-in-out infinite alternate; }
.wave .w2 { animation: drift 12s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* ---------------------------------------------------------------- secciones */
section { position: relative; }
.band { padding: 96px 0; }
.band.purple { background: linear-gradient(180deg, var(--purple-800), var(--purple-900)); }
.band.deep { background: var(--purple-950); }
.band.water { background: linear-gradient(180deg, var(--water-deep), #0a4fa6); }
.band.cream { background: var(--cream); color: var(--ink); }
.kicker { display: inline-block; font: 700 14px var(--font-text); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 6px 14px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
h2 { font: 700 clamp(34px, 5vw, 58px) / 1.05 var(--font-title); margin: 18px 0 14px; letter-spacing: 0.4px; color: #fff; text-shadow: 0 5px 0 var(--ink); }
.band.cream h2 { color: var(--purple-700); text-shadow: none; }
.sub { font-size: 20px; color: var(--text-soft); max-width: 720px; margin: 0 0 40px; }
.band.cream .sub { color: #4b3a66; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* cómo se juega */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: #fff; color: var(--ink); border-radius: var(--radius-l); padding: 30px 28px 28px;
  border: 4px solid var(--ink); box-shadow: var(--shadow-candy); text-align: left;
}
.step .n { position: absolute; top: -22px; left: 24px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 24px var(--font-title); color: #fff; background: var(--pink); border: 4px solid var(--ink); }
.step .ico { width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 14px; border: 4px solid var(--ink); }
.step .ico svg { width: 60px; height: 60px; }
.step:nth-child(1) .ico { background: #d9ffc0; }
.step:nth-child(2) .ico { background: #e6dcff; }
.step:nth-child(3) .ico { background: #ffe9a8; }
.step h3 { font: 700 26px var(--font-title); margin: 0 0 6px; color: var(--purple-700); }
.step p { margin: 0; color: #4b3a66; }

/* mapas */
.maps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 20px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.map { scroll-snap-align: start; background: var(--purple-700); border-radius: var(--radius-m); border: 4px solid var(--ink); box-shadow: var(--shadow-candy); overflow: hidden; transition: transform 0.2s; }
.map:hover { transform: translateY(-6px) rotate(-1deg); }
.map img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; object-position: center 62%; }
.map div { padding: 12px 16px 14px; }
.map b { display: block; font: 700 20px var(--font-title); }
.map span { font-size: 15px; color: var(--lavender); }

/* online */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feats li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-m); padding: 16px 18px; }
.feats .dot { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.feats b { display: block; font: 700 21px var(--font-title); margin-bottom: 2px; }
.feats p { margin: 0; color: var(--text-soft); font-size: 17px; }
.shots { position: relative; height: 700px; }
.shots img { position: absolute; width: 48%; border-radius: 28px; border: 5px solid var(--ink); box-shadow: var(--shadow-soft); }
.shots img:nth-child(1) { left: 2%; top: 50px; transform: rotate(-6deg); }
.shots img:nth-child(2) { right: 2%; top: 10px; transform: rotate(5deg); z-index: 2; }
@media (max-width: 900px) { .shots { height: 118vw; max-height: 720px; margin-top: 10px; } }

/* personajes */
.crew { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-items: end; margin: 10px 0 34px; }
@media (max-width: 900px) { .crew { grid-template-columns: repeat(5, 1fr); } }
.crew figure { margin: 0; text-align: center; }
.crew img { width: 100%; filter: drop-shadow(0 10px 10px rgba(27, 15, 46, 0.25)); transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1); }
.crew figure:hover img { transform: translateY(-10px) scale(1.08) rotate(-3deg); }
.crew figcaption { font: 700 15px var(--font-title); color: var(--purple-700); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.chip:nth-child(3n+1) { background: #ffe0ec; } .chip:nth-child(3n+2) { background: #e6dcff; } .chip:nth-child(3n) { background: #dcffc9; }

/* preguntas */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-m); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font: 700 20px var(--font-title); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--yellow); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-soft); }

/* final */
.final { text-align: center; padding: 110px 0 120px; background: radial-gradient(700px 300px at 50% 0%, rgba(255, 209, 46, 0.25), transparent 70%), var(--purple-900); }
.final .cta { justify-content: center; margin-top: 30px; }
.final .icon-big { width: 150px; height: 150px; border-radius: 36px; margin: 0 auto 10px; border: 5px solid var(--ink); box-shadow: var(--shadow-candy); transform: rotate(-5deg); }

/* pie */
footer { background: var(--purple-950); color: rgba(255, 255, 255, 0.7); padding: 46px 0 40px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: #fff; text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--yellow); }

/* aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- páginas de texto (privacidad, términos…) */
.page-hero { padding: 120px 0 70px; background: linear-gradient(180deg, var(--purple-700), var(--purple-800)); position: relative; overflow: hidden; }
.page-hero h1 { font: 700 clamp(36px, 6vw, 60px) / 1.05 var(--font-title); margin: 12px 0 8px; text-shadow: 0 5px 0 var(--ink); }
.page-hero p { color: var(--text-soft); margin: 0; }
.doc { background: var(--purple-800); padding: 0 0 90px; }
.doc .card {
  background: var(--cream); color: var(--ink); border-radius: var(--radius-l); border: 4px solid var(--ink);
  box-shadow: var(--shadow-candy); padding: clamp(24px, 5vw, 56px); max-width: 900px; margin: -40px auto 0; position: relative;
}
.doc h2 { font: 700 26px var(--font-title); color: var(--purple-700); text-shadow: none; margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 700 20px var(--font-title); color: var(--purple-500); margin: 22px 0 6px; }
.doc p, .doc li { color: #33264a; }
.doc a { color: var(--pink-deep); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 2px solid #eadcc4; vertical-align: top; }
.doc th { background: #f6e8cf; color: var(--purple-700); }
.doc .note { background: #fff; border: 3px dashed #d8c3a0; border-radius: 18px; padding: 16px 18px; }
.doc .steps-list { counter-reset: s; list-style: none; padding: 0; }
.doc .steps-list li { counter-increment: s; position: relative; padding: 14px 16px 14px 64px; background: #fff; border-radius: 18px; border: 3px solid var(--ink); margin: 12px 0; box-shadow: 0 4px 0 var(--ink); }
.doc .steps-list li::before { content: counter(s); position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font: 700 18px var(--font-title); display: grid; place-items: center; border: 3px solid var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.toc a { font-size: 15px; text-decoration: none; background: #fff; border: 2px solid #e3cfac; padding: 4px 12px; border-radius: 999px; color: var(--purple-700); }
.mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: var(--yellow); color: var(--ink) !important; padding: 6px 14px; border-radius: 999px; border: 3px solid var(--ink); text-decoration: none; }
