/* Garbí Games · paleta mediterránea: mar, atardecer y coral. Tipografía Fredoka (la del juego, OFL). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f3f5f8;
  --ink: #0d1b2a;
  --ink-soft: #566575;
  --sea: #0a7fb5;
  --sea-deep: #0d1b2a;
  --sky: #f3f5f8;
  --sun: #ffb648;
  --coral: #ff5a36;
  --coral-dark: #e8441f;
  --leaf: #2f9564;
  --line: rgba(13, 27, 42, .1);
  --sunset: radial-gradient(700px 360px at 85% 0%, rgba(255, 90, 54, .45), transparent 65%), radial-gradient(600px 320px at 0% 100%, rgba(10, 127, 181, .4), transparent 65%), #0d1b2a;
  --sunset-soft: #ffffff;
  --radius: 22px;
  --shadow: 0 24px 60px -20px rgba(13, 27, 42, .35);
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::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: 400 17px/1.6 var(--text);
  overflow-x: hidden;
}
main { overflow-x: clip; } /* la cinta girada y el zoom de la portada no deben crear scroll lateral */
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
h1, h2, h3 { font-family: var(--font); line-height: 1.05; margin: 0 0 .45em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); }
.eyebrow, .kicker {
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: .8em;
}
.section-h { text-align: center; margin-bottom: 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }

/* Cabecera fija con cristal */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .3s ease;
}
.top.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(11, 42, 64, .06); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a, .langs a, .langs span {
  font-weight: 600; font-size: .98rem; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink);
}
.nav a:hover, .langs a:hover { background: rgba(20, 48, 74, .07); color: var(--ink); }
.langs { display: flex; gap: 2px; }
.langs a { color: var(--ink-soft); }
.langs span { background: var(--ink); color: #fff; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 14px 28px; border-radius: 999px;
  background: var(--coral); color: #fff; text-decoration: none; border: 0;
  font: 600 1.08rem/1 var(--font);
  box-shadow: 0 10px 24px rgba(255, 107, 77, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { color: #fff; background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 107, 77, .42); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-soon { background: var(--ink); box-shadow: 0 10px 24px rgba(20, 48, 74, .25); cursor: default; }
.btn-soon:hover { background: var(--ink); transform: none; box-shadow: 0 10px 24px rgba(20, 48, 74, .25); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 6px 18px rgba(11, 42, 64, .06); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 10px 22px rgba(11, 42, 64, .1); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(11, 42, 64, .18); }
.btn-light:hover { background: var(--coral); color: #fff; }

.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li {
  font-weight: 500; font-size: .95rem; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: none;
}
.chips li::before { content: "✓"; color: var(--leaf); font-weight: 700; margin-right: 6px; }
.chips.small { justify-content: flex-start; margin: 0 0 14px; }
.chips.small li { font-size: .85rem; padding: 5px 11px; }
.when { margin: 14px 0 0; font-size: .95rem; color: var(--ink-soft); }

/* Portada del juego */
.hero { position: relative; overflow: hidden; background: var(--sunset-soft); padding-bottom: 72px; }
.hero-art { overflow: hidden; }
.hero-img {
  width: 100%; aspect-ratio: 2000 / 505; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
  transform-origin: 50% 35%;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }
.hero-copy { position: relative; z-index: 3; text-align: center; max-width: 880px; margin-top: -1vw; }
.hero-copy .lede { max-width: 640px; margin: 0 auto 1.2em; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Brisa: ráfagas y hojas (las crea main.js) */
.breeze { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.breeze svg.gusts { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 1px rgba(10, 127, 181, .55)); }
.gust { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 150 1000; stroke-dashoffset: 1150; opacity: 0; animation: gust var(--d, 8s) ease-in-out var(--delay, 0s) infinite; }
@keyframes gust {
  0% { stroke-dashoffset: 1150; opacity: 0; }
  12% { opacity: .85; }
  75% { opacity: .55; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.leaf { position: absolute; left: -60px; top: var(--y); width: var(--s); animation: fly var(--d) linear var(--delay) infinite; }
.leaf svg { display: block; width: 100%; height: auto; animation: sway var(--sw, 2.4s) ease-in-out infinite alternate; }
@keyframes fly { to { transform: translate(calc(100vw + 120px), var(--dy)); } }
@keyframes sway { from { transform: translateY(-14px) rotate(-28deg); } to { transform: translateY(14px) rotate(32deg); } }

/* Cinta de palabras */
.marquee { background: var(--coral); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin: -26px 0 0; position: relative; z-index: 4; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); white-space: nowrap; padding-right: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pantalla con clip */
.screen { background: var(--ink); padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow); }
.screen .clip { width: 100%; border-radius: calc(var(--radius) - 8px); aspect-ratio: 16 / 9; object-fit: cover; background: #0b2a40; }
.ride { display: grid; grid-template-columns: 1.45fr 1fr; gap: 56px; align-items: center; padding-top: 110px; padding-bottom: 40px; }
.ride .screen { transform: rotate(-1.5deg); }
.ride-copy p:last-child { font-size: 1.15rem; color: var(--ink-soft); }

/* Rejilla de pilares */
.pillars { padding-top: 90px; padding-bottom: 100px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 250px; gap: 18px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sea-deep);
  box-shadow: 0 10px 30px rgba(11, 42, 64, .12); isolation: isolate;
}
.card > img, .card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.card:hover > img, .card:hover > video { transform: scale(1.06); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(8, 28, 44, .82)); z-index: 1; }
.card-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: #fff; z-index: 2; }
.card-text h3 { margin-bottom: .2em; font-size: 1.6rem; }
.card-text p { margin: 0; font-size: 1rem; line-height: 1.4; color: rgba(255, 255, 255, .88); max-width: 46ch; }
.card-explore { grid-column: span 4; grid-row: span 2; }
.card-explore .card-text h3 { font-size: 2.2rem; }
.card-care { grid-column: span 2; grid-row: span 2; }
.card-build, .card-compete, .card-friends { grid-column: span 2; }
.card-friends { background: #f3e4cf; }
.card-friends > img.pixel { object-fit: contain; object-position: 50% 30%; padding: 14px 10px 70px; image-rendering: pixelated; }
.card-friends:hover > img.pixel { transform: scale(1.04); }
.card-wild { grid-column: span 6; }

/* Historia (noche) */
.story { position: relative; background: var(--sea-deep); color: #eef6fa; padding: 110px 0; overflow: hidden; }
.story .kicker { color: var(--sun); }
.story .lede { color: rgba(238, 246, 250, .86); }
.story-more { color: rgba(238, 246, 250, .66); }
.story-in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; z-index: 1; }
.screen-dark { background: #1b2d40; transform: rotate(1.4deg); }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 44% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 63% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 78% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 88% 76%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 6% 84%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 52% 88%, #fff 50%, transparent 51%);
  opacity: .5; animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .7; } }

/* Familias */
.families { background: var(--sky); padding: 110px 0 100px; }
.fam-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fam-grid li { background: #fff; border-radius: 20px; padding: 26px 24px 22px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.fam-grid li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgba(13, 27, 42, .3); }
.fam-grid h3 { font-size: 1.25rem; margin: 14px 0 .35em; }
.fam-grid p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--coral); color: #fff; font-size: 1.1rem; }
.fam-grid li:nth-child(2n) .ico { background: var(--sea); }
.fam-grid li:nth-child(3n) .ico { background: var(--leaf); }
.fam-note { max-width: 760px; margin: 34px auto 0; text-align: center; color: var(--ink-soft); font-size: 1rem; }

/* Quiénes somos */
.made { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding-top: 110px; padding-bottom: 110px; }
.made-img { border-radius: var(--radius); box-shadow: var(--shadow); animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-6px) rotate(-1deg); } to { transform: translateY(8px) rotate(1deg); } }
.made p:last-child { font-size: 1.12rem; color: var(--ink-soft); }

/* Aviso */
.notify { position: relative; overflow: hidden; background: var(--sunset); padding: 110px 0; }
.notify-in { position: relative; z-index: 3; text-align: center; max-width: 720px; }
.notify-in { color: #fff; }
.notify-in p { font-size: 1.15rem; color: rgba(255, 255, 255, .78); }

/* Página del estudio */
.hero-home { padding: 70px 0 100px; }
.home-in { position: relative; z-index: 3; display: grid; grid-template-columns: .85fr 1.25fr; gap: 56px; align-items: center; }
.home-copy p:not(.lede):not(.eyebrow) { color: var(--ink-soft); }
.home-img { border-radius: var(--radius); box-shadow: var(--shadow); animation: float 7s ease-in-out infinite alternate; }
.home-game { padding-top: 40px; padding-bottom: 90px; }
.game-card {
  display: grid; grid-template-columns: 1.3fr 1fr; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .3s ease;
}
.game-card:hover { color: inherit; transform: translateY(-4px); }
.game-card-media .clip { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.game-card-text { padding: 30px; }
.game-card-logo { width: 100%; max-width: 300px; border-radius: 18px; margin-bottom: 18px; }
.game-card-text p { color: var(--ink-soft); }
.game-card .when { margin: 0 0 18px; }
.contact { padding-bottom: 100px; }
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; }
.contacts div { background: var(--surface); border-radius: 20px; padding: 24px; text-align: center; }
.contacts dt { font-weight: 600; margin-bottom: 4px; }
.contacts dd { margin: 0; overflow-wrap: anywhere; }

/* Textos legales */
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 90px; font: 400 17px/1.65 var(--text); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal .lead { font-size: 1.1rem; background: var(--sky); padding: 18px 22px; border-radius: 18px; }
.legal .updated { color: var(--ink-soft); }
.legal li { margin-bottom: .4em; }
.missing { background: #ffd9cf; color: #8a1c00; padding: 0 4px; border-radius: 4px; }

/* 404 */
.notfound { text-align: center; max-width: 720px; padding-top: 56px; padding-bottom: 90px; }
.notfound .screen { margin-bottom: 36px; }

/* Pie */
.foot { background: var(--sea-deep); color: rgba(238, 246, 250, .8); padding: 44px 0; font-size: .98rem; }
.foot a { color: #fff; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.foot-logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 12px; }
.foot-brand { margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }

/* Aparición al hacer scroll (solo con JS; sin JS todo se ve) */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .ride .screen[data-reveal] { transform: translateY(40px) rotate(-4deg); }
.js .ride .screen[data-reveal].in { transform: rotate(-1.5deg); }
.js .story .screen[data-reveal] { transform: translateY(40px) rotate(4deg); }
.js .story .screen[data-reveal].in { transform: rotate(1.4deg); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .card-explore, .card-wild { grid-column: span 2; }
  .card-explore { grid-row: span 2; }
  .card-care { grid-column: span 1; grid-row: span 2; }
  .card-build, .card-compete, .card-friends { grid-column: span 1; }
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .langs { margin-left: auto; }
  .brand img { height: 30px; }
  .hero { padding-bottom: 56px; }
  .hero-img { aspect-ratio: 900 / 505; }
  .hero-copy { margin-top: -4vw; }
  .ctas .btn { width: 100%; }
  .marquee { margin-top: -18px; padding: 14px 0; }
  .ride, .story-in, .made, .home-in, .game-card { grid-template-columns: 1fr; gap: 28px; }
  .ride { padding-top: 70px; }
  .pillars, .families, .story, .made, .notify { padding-top: 72px; padding-bottom: 72px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 14px; }
  .card-explore, .card-care, .card-build, .card-compete, .card-friends, .card-wild { grid-column: span 1; grid-row: span 1; }
  .card-explore .card-text h3 { font-size: 1.8rem; }
  .fam-grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .hero-home { padding-top: 40px; }
  .game-card-text { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Escena viva de la portada: el sol brilla, pasan pájaros y (con capas) la familia se sienta uno a uno */
.scene { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.scene-plate { width: 100%; }
.scene-glow {
  position: absolute; left: 60%; top: 43%; width: 30%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, .75) 0%, rgba(255, 196, 120, .28) 40%, transparent 70%);
  mix-blend-mode: screen; animation: glow 5s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glow { from { opacity: .55; scale: .92; } to { opacity: 1; scale: 1.08; } }
.scene-birds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bird { fill: none; stroke: #4a3a3a; stroke-width: 1.1; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: birdfly 22s linear infinite, flap .7s ease-in-out infinite alternate; }
.b1 { animation-delay: -4s, 0s; }
.b2 { animation-delay: -11s, -.3s; scale: .8; }
.b3 { animation-delay: -17s, -.5s; scale: .65; }
@keyframes birdfly { from { translate: 110px 6px; } to { translate: -30px -2px; } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
.actor { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.js .scene.has-actors .actor { opacity: 0; translate: 0 18%; }
.js .scene.has-actors.in .actor { animation: sitdown 1.1s cubic-bezier(.3, 1.35, .5, 1) both; }
.js .scene.has-actors.in .actor-1 { animation-delay: .5s; }
.js .scene.has-actors.in .actor-2 { animation-delay: 1.3s; }
.js .scene.has-actors.in .actor-3 { animation-delay: 2.1s; }
.js .scene.has-actors.in .actor-4 { animation-delay: 2.9s; }
@keyframes sitdown {
  0% { opacity: 0; translate: 0 18%; }
  40% { opacity: 1; }
  100% { opacity: 1; translate: 0 0; }
}


/* Cómo lo hacemos */
.howwe { background: var(--sky); padding: 100px 0; }
.howwe-intro { max-width: 720px; margin: -.6em auto 40px; text-align: center; color: var(--ink-soft); font-size: 1.15rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.steps li { position: relative; background: #fff; border-radius: 20px; padding: 28px 24px 24px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.steps li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -18px rgba(13, 27, 42, .3); }
.steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -15px; top: 38px; font-size: 1.3rem; color: var(--sea); z-index: 1;
}
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; font-size: 1.2rem; }
.steps li:nth-child(2) .step-n { background: var(--sun); color: var(--ink); }
.steps li:nth-child(3) .step-n { background: var(--sea); }
.steps li:nth-child(4) .step-n { background: var(--leaf); }
.steps h3 { font-size: 1.25rem; margin: 16px 0 .4em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.made-more { font-size: 1.05rem !important; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .howwe { padding: 72px 0; }
  .story2 { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .scene.has-actors .actor { opacity: 1; translate: none; }
}

/* Estilo limpio: Fredoka solo donde da personalidad */
.btn, .marquee, .step-n, .chips li, .card-text h3, .contacts dt { font-family: var(--font); }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
.hero-copy h1 { margin-bottom: .35em; }
.section-h { letter-spacing: -.015em; }
.legal { font-family: var(--text); }
.foot { border-top: 1px solid rgba(255, 255, 255, .08); }

/* Sistema de texto: titulares Fredoka 600, lectura en sans a la izquierda, frases destacadas como cita */
p { max-width: 68ch; }
p.center, .center p, .section-h, .hero-copy p, .made-more, .notify-in p, .howwe-intro, .fam-note { margin-left: auto; margin-right: auto; }
.lede { color: var(--ink); line-height: 1.5; }
.quote {
  margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--coral);
  font: 500 clamp(1.3rem, 2.3vw, 1.65rem)/1.35 var(--font); color: var(--ink); letter-spacing: -.005em; max-width: 34ch;
}
.quote-center { border-left: 0; padding: 0; margin: 44px auto 0; text-align: center; max-width: 40ch; }
.quote-center::before { content: "“"; display: block; font-size: 3.2rem; line-height: .6; color: var(--coral); margin-bottom: 10px; }

/* Nuestra historia: dos columnas, como una revista */
.story2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; padding-top: 96px; padding-bottom: 104px; }
.story2-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin: 0; }
.story2-body p:not(.lede) { color: var(--ink-soft); font-size: 1.08rem; }
.story2-body .lede { font-size: clamp(1.15rem, 1.9vw, 1.32rem); }
@media (max-width: 860px) {
  .story2 { grid-template-columns: 1fr; gap: 20px; padding-top: 64px; padding-bottom: 72px; }
}

/* Página del juego: extras en chips, nota de compras en tarjeta */
.extras { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.extras li {
  font: 500 .95rem/1 var(--font); color: #eef6fa; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.fam-note {
  display: flex; gap: 14px; align-items: flex-start; max-width: 780px; margin: 36px auto 0; padding: 18px 22px;
  background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); text-align: left;
}
.fam-note p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.fam-note-ico {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 .9rem/1 var(--font);
}
.made-img { animation: none; }
.made h2 { margin-bottom: .4em; }
.ride-copy h2 { margin-bottom: .35em; }
.story .lede { font-size: clamp(1.1rem, 1.8vw, 1.25rem); }

/* Página provisional «Muy pronto» */
.page-soon { min-height: 100svh; display: flex; flex-direction: column; }
.page-soon main { flex: 1; display: flex; }
.soon { position: relative; overflow: hidden; flex: 1; display: grid; place-items: center; padding: 48px 0 64px; }
.soon-glow {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(520px 340px at 78% 22%, rgba(255, 90, 54, .16), transparent 70%),
    radial-gradient(560px 360px at 18% 82%, rgba(10, 127, 181, .14), transparent 70%);
  animation: soonglow 14s ease-in-out infinite alternate;
}
@keyframes soonglow { to { transform: translate(3%, -2%) scale(1.06); } }
.soon-in { position: relative; z-index: 3; text-align: center; max-width: 760px; }
.soon-logo { width: min(340px, 72vw); margin: 0 auto 30px; }
.soon h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: .25em; }
.soon .lede { margin: 0 auto 30px; max-width: 34ch; }
.soon-top { position: relative; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.soon-top .brand { visibility: hidden; }
.soon-foot { text-align: center; padding: 22px 16px 28px; color: var(--ink-soft); font-size: .9rem; }
.soon-foot p { margin: 0 auto; }
.page-soon .legal { padding-top: 24px; }
.page-soon:has(.legal) .soon-top .brand { visibility: visible; }
.soon-top .langs { margin-left: auto; }
.soon-in p { margin-left: auto; margin-right: auto; }
