/* =========================================================
   Familia FC — Estilos
   Paleta clara, familiar y educativa
   ========================================================= */
:root {
  --cream: #FFFBF4;
  --white: #FFFFFF;
  --navy: #1F2A5A;
  --ink-2: #4A5682;
  --muted: #6B76A0;
  --line: #E8E3D8;

  --blue: #2E8BF0;
  --blue-l: #5EC2FF;
  --yellow: #FFC93C;
  --coral: #FF6B6B;
  --coral-d: #D9434A;
  --green: #3DD68C;
  --purple: #A78BFA;

  --sky-50: #EAF6FF;
  --yellow-50: #FFF6DB;
  --coral-50: #FFECEC;
  --green-50: #E5FAF0;
  --purple-50: #F2EDFF;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 6px rgb(31 42 90 / .06);
  --shadow: 0 10px 30px -8px rgb(31 42 90 / .15);
  --shadow-lg: 0 30px 60px -20px rgb(31 42 90 / .30);

  --font-display: "Fredoka", "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--blue); }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
section[tabindex="-1"]:focus { outline: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { inset-block-start: 1rem; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 1rem/1 var(--font-body);
  padding: 1rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 rgb(31 42 90 / .18);
  transition: translate .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { translate: 0 -2px; box-shadow: 0 6px 0 rgb(31 42 90 / .18); }
.btn:active { translate: 0 2px; box-shadow: 0 1px 0 rgb(31 42 90 / .18); }
.btn-primary { --bg: var(--navy); }
.btn-amazon { --bg: var(--yellow); --fg: var(--navy); box-shadow: 0 4px 0 #E0A800; }
.btn-amazon:hover { box-shadow: 0 6px 0 #E0A800; }
.btn-amazon:active { box-shadow: 0 1px 0 #E0A800; }
.btn-ghost { --bg: #fff; --fg: var(--navy); border-color: var(--navy); box-shadow: 0 4px 0 var(--navy); }
.btn-ghost:hover { box-shadow: 0 6px 0 var(--navy); }
.btn-ghost svg circle { fill: currentColor; stroke: none; }
.btn-sm { padding: .7rem 1.1rem; font-size: .95rem; }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 251 244 / .85);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  width: min(100% - 2rem, var(--container)); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
}
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-header.is-measuring * { transition: none !important; }

.site-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark { width: 46px; height: 46px; transition: rotate .4s cubic-bezier(.34,1.56,.64,1); }
.site-logo:hover .logo-mark { rotate: -8deg; }
.logo-word { font: 700 1.6rem/1 var(--font-display); color: var(--navy); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .35rem; }
.logo-fc { background: var(--coral); color: #fff; font-size: 1.05rem; padding: .3rem .55rem; border-radius: 10px; letter-spacing: 0; }

.site-nav { margin-inline-start: auto; }
.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: .45rem;
  font: 700 1rem/1 var(--font-body); color: var(--navy);
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
}
.menu-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Narrow: popover */
.site-menu {
  scroll-target-group: auto;
  position: fixed; inset: auto;
  inset-block-start: 4.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(80dvw, 20rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin: .6rem 0 0; padding: .6rem;
  overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.site-menu:is(:popover-open, .\:popover-open) { display: grid; gap: .2rem; }
.site-menu a {
  display: block; padding: .8rem 1rem; border-radius: 12px;
  font-weight: 700; color: var(--navy); text-decoration: none;
  transition: background-color .2s;
}
.site-menu a:hover { background: var(--sky-50); }
.site-menu a:is(:target-current, .target-current) { background: var(--sky-50); color: var(--blue); box-shadow: inset 4px 0 0 var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .site-menu {
    transition: opacity .2s, translate .2s, display .2s, overlay .2s;
    transition-behavior: allow-discrete;
    opacity: 0; translate: 0 -8px;
  }
  .site-menu:is(:popover-open, .\:popover-open) { opacity: 1; translate: 0 0; }
  @starting-style {
    .site-menu:is(:popover-open, .\:popover-open) { opacity: 0; translate: 0 -8px; }
  }
}

/* Wide: inline */
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: .15rem;
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none;
  overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
  opacity: 1; translate: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: .55rem .9rem; border-radius: 999px; }
.site-header.is-wide .site-menu a:is(:target-current, .target-current) { box-shadow: inset 0 -3px 0 var(--blue); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: 3px; box-shadow: var(--shadow-sm);
}
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .32rem;
  min-block-size: 32px; min-inline-size: 46px;
  font: 800 .78rem/1 var(--font-body); letter-spacing: .03em; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: .35rem .55rem;
  cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn[aria-pressed="true"] {
  background: var(--sky-50); color: var(--navy);
  box-shadow: inset 0 0 0 1.5px #B8DEFF;
}
.flag-ic { width: 18px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(31 42 90 / .14); }

.header-cta svg { width: 18px; height: 18px; }
@media (max-width: 500px) {
  .header-inner { width: min(100% - 1.25rem, var(--container)); gap: .35rem; }
  .site-logo { gap: .38rem; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-word { font-size: 1.15rem; gap: .25rem; }
  .logo-fc { font-size: .82rem; padding: .2rem .38rem; border-radius: 7px; }
  .menu-button { padding: .45rem .62rem; font-size: .86rem; gap: .3rem; }
  .menu-button svg { width: 17px; height: 17px; }
  .lang-switch { padding: 2px; }
  .lang-btn { min-inline-size: 28px; min-block-size: 28px; padding: .22rem .3rem; }
  .lang-btn span { display: none; }
  .flag-ic { width: 17px; height: 13px; }
  .header-cta span { display: none; }
  .header-cta { padding: .52rem; }
  .header-cta svg { width: 17px; height: 17px; }
}

/* ---------- Utilidades de sección ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2, .featured-copy h2, .about-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.eyebrow {
  display: inline-block; font: 800 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: var(--sky-50); padding: .5rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow-light { background: rgb(255 255 255 / .2); color: #fff; }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 50% at 85% 20%, #DDF1FF 0%, transparent 70%),
    radial-gradient(40% 40% at 5% 80%, #FFF0CC 0%, transparent 70%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: .45rem .95rem; font-weight: 800; font-size: .9rem; color: var(--navy); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-block: 1.2rem 1.1rem; }
.hl { position: relative; color: var(--coral-d); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; inset-inline: -2%; inset-block-end: .02em; height: .32em; z-index: -1;
  background: var(--yellow); border-radius: 999px; opacity: .55; rotate: -1.5deg;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.25rem; }
.hero-trust li { display: grid; }
.hero-trust strong { font: 700 1.6rem/1.1 var(--font-display); color: var(--navy); }
.hero-trust span { font-size: .9rem; color: var(--muted); font-weight: 700; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.blob {
  position: absolute; inset: 6% 4%; z-index: -1;
  background: linear-gradient(135deg, var(--blue-l), var(--purple));
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  opacity: .9;
}
.book3d { perspective: 1400px; width: min(78%, 360px); }
.book3d-inner {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 4deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.book3d img {
  border-radius: 6px 16px 16px 6px;
  box-shadow: var(--shadow-lg), 18px 22px 0 -6px rgb(31 42 90 / .12);
}
.book3d-spine {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 16px; border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, rgb(0 0 0 / .25), rgb(255 255 255 / .25) 40%, rgb(0 0 0 / .08));
  pointer-events: none;
}
.sticker {
  position: absolute; z-index: 2;
  background: #fff; color: var(--navy); font-weight: 800; font-size: .95rem;
  padding: .6rem 1rem; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.s-1 { inset-block-start: 10%; inset-inline-start: -2%; rotate: -6deg; }
.s-2 { inset-block-end: 14%; inset-inline-end: -3%; rotate: 5deg; }
.s-3 { inset-block-start: 4%; inset-inline-end: 8%; background: var(--coral); color: #fff; rotate: 8deg; }

/* Formas flotantes */
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.f { position: absolute; display: block; opacity: .55; }
.f-circle { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-l); inset-block-start: 12%; inset-inline-start: 46%; }
.f-circle.f-2 { width: 22px; height: 22px; background: var(--coral); inset-block-start: 70%; inset-inline-start: 4%; }
.f-tri { width: 0; height: 0; border-inline: 26px solid transparent; border-block-end: 44px solid var(--green); inset-block-start: 78%; inset-inline-start: 44%; }
.f-square { width: 36px; height: 36px; border-radius: 8px; background: var(--purple); inset-block-start: 18%; inset-inline-start: 3%; rotate: 15deg; }
.f-heart { width: 30px; height: 30px; background: var(--coral); inset-block-start: 6%; inset-inline-end: 4%;
  clip-path: path("M15 27C3 19 1 9 8 6c3-1 6 1 7 4 1-3 4-5 7-4 7 3 5 13-7 21z"); }
.f-star { width: 34px; height: 34px; background: var(--yellow); inset-block-end: 8%; inset-inline-end: 6%;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

@media (prefers-reduced-motion: no-preference) {
  .f { animation: bob 7s ease-in-out infinite; }
  .f:nth-child(2n) { animation-duration: 9s; animation-delay: -2s; }
  .f:nth-child(3n) { animation-duration: 11s; animation-delay: -4s; }
  .sticker { animation: bob 6s ease-in-out infinite; }
  .s-2 { animation-delay: -2s; } .s-3 { animation-delay: -4s; }
  @keyframes bob { 50% { translate: 0 -14px; } }
}

/* Valores */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.value {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
  border: 2px solid var(--line);
}
.value h3 { font-size: 1.15rem; margin-bottom: .25em; }
.value p { font-size: .95rem; margin: 0; }
.value-ic { font-size: 1.5rem; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg); }
.v-blue { --bg: var(--sky-50); } .v-yellow { --bg: var(--yellow-50); } .v-coral { --bg: var(--coral-50); } .v-green { --bg: var(--green-50); }

/* ---------- LIBRO DESTACADO ---------- */
.featured { background: #fff; border-radius: 48px 48px 0 0; }
.featured-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(5rem, 10vw, 8rem); }
.featured-media { position: relative; width: 100%; max-width: 400px; justify-self: center; }
.mascot-stage {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 36px; padding: 2.6rem 2rem 1.8rem;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #E7F4FF 55%, #FFF2D6 100%);
  border: 2px solid var(--line);
  box-shadow: var(--shadow), 14px 16px 0 -4px #FFF0C2;
}
.mascot-stage img {
  position: relative; z-index: 1; width: min(100%, 300px); margin-inline: auto;
  filter: drop-shadow(0 16px 24px rgb(31 42 90 / .16));
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.featured-media:hover .mascot-stage img { transform: translateY(-8px) rotate(-2deg) scale(1.03); }
.mascot-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ms { position: absolute; display: block; opacity: .75; }
.ms-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-l); top: 18%; left: 10%; }
.ms-heart  { width: 28px; height: 28px; background: var(--coral); top: 14%; right: 12%; clip-path: path("M14 25C3 18 1 8 7.5 5.5 10.5 4.5 13 6.5 14 9c1-2.5 3.5-4.5 6.5-3.5C27 8 25 18 14 25z"); }
.ms-tri    { width: 30px; height: 26px; background: var(--green); bottom: 16%; left: 11%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ms-sq     { width: 26px; height: 26px; border-radius: 7px; background: var(--purple); bottom: 26%; right: 9%; rotate: 14deg; }
.badge-greeting {
  position: absolute; inset-block-start: -14px; inset-inline-start: -12px; z-index: 2;
  background: #fff; color: var(--navy); font-weight: 800; font-size: .9rem;
  padding: .55rem .95rem; border-radius: 999px; border: 2px solid var(--line); box-shadow: var(--shadow);
  rotate: -4deg; white-space: nowrap;
}
.badge-round {
  position: absolute; inset-block-end: -16px; inset-inline-end: -16px; z-index: 2;
  width: 98px; height: 98px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--coral); color: #fff; font-weight: 800; line-height: 1; border: 5px solid #fff; box-shadow: var(--shadow);
  rotate: 10deg;
}
.badge-round b { font: 700 2rem/1 var(--font-display); }
.subtitle { font: 600 1.2rem/1.4 var(--font-display); color: var(--ink-2); }
.tag-vol { background: var(--coral); color: #fff; padding: .15rem .6rem; border-radius: 8px; font-size: 1rem; }
.checklist { display: grid; gap: .7rem; margin: 1.5rem 0; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.ck { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: .9rem; flex-shrink: 0; line-height: 1; }
.ck-blue { background: var(--sky-50); color: var(--blue); }
.ck-coral { background: var(--coral-50); color: var(--coral-d); }
.ck-green { background: var(--green-50); color: #1E9E62; }
.ck-purple { background: var(--purple-50); color: #7C5CE0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-weight: 700; font-size: .9rem; color: var(--navy); }

/* Colección */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.book-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line);
  display: flex; flex-direction: column;
  transition: translate .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.book-card:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.book-cover {
  position: relative;
  padding: 3rem 1.75rem 1.5rem;
  display: grid;
  place-items: center;
  background: var(--cover-bg, radial-gradient(circle at 50% 45%, #fff 0%, var(--sky-50) 85%));
  border-bottom: 1px solid var(--line);
}
.book-cover.bg-peru   { --cover-bg: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #DFF1FF 85%); }
.book-cover.bg-mexico { --cover-bg: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #FFF2CC 85%); }
.book-cover.bg-usa    { --cover-bg: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #EAE8FF 85%); }
.book-cover img {
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 8px 14px 14px 8px;
  box-shadow: 0 16px 32px -10px rgb(31 42 90 / .28), 6px 8px 0 -2px rgb(31 42 90 / .08);
  transition: scale .45s cubic-bezier(.34,1.56,.64,1), rotate .45s cubic-bezier(.34,1.56,.64,1);
}
.book-card:hover .book-cover img { scale: 1.04; rotate: -1.5deg; }
.status { position: absolute; inset-block-start: 12px; inset-inline-start: 14px; font-weight: 800; font-size: .78rem; padding: .35rem .75rem; border-radius: 999px; }
.status-ok { background: var(--green); color: var(--navy); }
.status-soon { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.book-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.book-body p { font-size: .97rem; }
.book-vol { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-d); margin-bottom: .3rem; }
.book-body h3 { font-size: 1.35rem; }
.link-arrow { margin-top: auto; font-weight: 800; text-decoration: none; color: var(--blue); display: inline-flex; gap: .35rem; }
.link-arrow span { transition: translate .2s; }
.link-arrow:hover span { translate: 4px 0; }

/* ---------- JUEGO ---------- */
.play { background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%); }
.game {
  display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 580px); justify-content: center; gap: clamp(1.25rem, 3vw, 2.25rem);
  background: #fff; border-radius: 32px; padding: clamp(1rem, 2.5vw, 2rem); box-shadow: var(--shadow); border: 2px solid var(--line);
}
.game-panel { align-self: start; position: sticky; top: calc(var(--header-h) + 1rem); }
.panel-title { font-size: 1.05rem; margin: 0 0 .8rem; }

.palette-list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem; }
.pick {
  display: flex; align-items: center; gap: .5rem;
  font: 700 .95rem/1 var(--font-body); color: var(--navy);
  background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: .45rem .6rem .45rem .45rem;
  cursor: pointer; text-align: start;
  transition: border-color .2s, background-color .2s, scale .2s cubic-bezier(.34,1.56,.64,1);
}
.pick:hover { border-color: #C9D6EA; }
.pick:active { scale: .97; }
.pick svg { width: 22px; height: 22px; }
.pick-sw {
  width: 30px; height: 30px; border-radius: 50%; background: var(--c); flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / .08); display: grid; place-items: center; font-size: 1rem;
}
.pick[aria-checked="true"] { background: #fff; border-color: var(--navy); box-shadow: 0 3px 0 var(--navy); }
.pick[aria-checked="true"] .pick-sw { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), inset 0 0 0 2px rgb(0 0 0 / .08); }
.pick-eraser { grid-column: 1 / -1; justify-content: center; }
.pick-eraser .pick-sw { box-shadow: inset 0 0 0 2px var(--line); }

.game-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.game-actions .btn { padding-inline: .9rem; }
.game-msg { margin: 1rem 0 .6rem; font-weight: 700; color: var(--navy); min-height: 3.2em; }
.progress { height: 10px; background: var(--cream); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; scale: var(--p, 0) 1; background: linear-gradient(90deg, #FFD93B, #FF9F43, #FF5A5F, #FF94C8, #A98BFA, #6CC6FF, #4ED68F); transition: scale .4s ease; }
.game-download { width: 100%; margin-top: 1rem; }

.canvas-col { min-width: 0; }
.page-tag {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0 0 .6rem;
  font: 600 1rem/1.3 var(--font-display); color: var(--navy);
}
.page-tag b { background: var(--navy); color: #fff; padding: .2rem .55rem; border-radius: 8px; font-size: .85rem; }
.page-tag span { color: var(--muted); font-size: .9rem; }
.canvas-wrap { position: relative; border-radius: 22px; overflow: hidden; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-sm); }
.paint {
  display: block; width: 100%; height: auto; aspect-ratio: 697 / 815;
  cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.paint:focus-visible { outline: 4px solid var(--blue); outline-offset: -4px; border-radius: 20px; }
.paint.is-done { animation: pop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 40% { scale: 1.015; } }
@media (prefers-reduced-motion: reduce) { .paint.is-done { animation: none; } }
.canvas-note { margin: .8rem 0 0; text-align: center; font-weight: 700; font-size: .95rem; }
.canvas-note a { text-decoration: none; }
.canvas-note a:hover { text-decoration: underline; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; inset-block-start: -12px; width: 10px; height: 14px; border-radius: 3px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { translate: var(--dx, 0) 820px; rotate: 540deg; opacity: 0; } }

/* ---------- BENEFICIOS ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem 1.5rem; border: 2px solid var(--line);
  transition: translate .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
}
.card:hover { translate: 0 -6px; box-shadow: var(--shadow); border-color: var(--accent); }
.card h3 { font-size: 1.25rem; }
.card p { font-size: .97rem; margin: 0; }
.card-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--soft); margin-bottom: 1.1rem; }
.card-ic svg { width: 36px; height: 36px; fill: var(--accent); }
.c-blue { --accent: var(--blue); --soft: var(--sky-50); }
.c-yellow { --accent: #F0A500; --soft: var(--yellow-50); }
.c-coral { --accent: var(--coral); --soft: var(--coral-50); }
.c-green { --accent: #22B871; --soft: var(--green-50); }
.tip {
  display: flex; gap: 1rem; align-items: center; margin-top: 2rem;
  background: var(--yellow-50); border: 2px dashed var(--yellow); border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.tip p { margin: 0; color: var(--navy); }
.tip-ic { font-size: 2rem; }

/* ---------- NOSOTROS ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mission { display: grid; gap: .8rem; margin-top: 1.5rem; }
.mission li { background: var(--cream); border-radius: var(--radius-sm); padding: 1rem 1.2rem; border-inline-start: 5px solid var(--blue); }
.mission li:nth-child(2) { border-color: var(--coral); }
.mission b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }

.eco {
  background: linear-gradient(160deg, var(--sky-50), var(--purple-50));
  border-radius: 32px; padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center;
}
.eco-parent {
  display: inline-grid; gap: .2rem; background: var(--navy); color: #fff; border-radius: 20px; padding: 1rem 2rem; box-shadow: var(--shadow);
}
.eco-parent strong { font: 700 1.6rem/1.1 var(--font-display); }
.eco-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; opacity: .8; }
.eco-lines { height: 40px; width: 70%; margin-inline: auto; border: 3px dashed #AFC2E6; border-block-end: 0; border-radius: 16px 16px 0 0; translate: 0 20px; }
.eco-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.25rem; }
.eco-brand {
  background: #fff; border-radius: 20px; padding: 1.1rem .7rem; display: grid; justify-items: center; gap: .25rem;
  box-shadow: var(--shadow-sm); border: 2px solid transparent;
}
.eco-brand strong { font: 700 1.1rem/1.2 var(--font-display); color: var(--navy); }
.eco-brand span:last-child { font-size: .82rem; line-height: 1.3; color: var(--muted); font-weight: 700; }
.eco-brand.is-current { border-color: var(--coral); translate: 0 -8px; box-shadow: var(--shadow); }
.eco-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .3rem; }
.e-tech { background: var(--sky-50); }
.e-daffle { background: var(--yellow-50); color: #E0A800; }
.e-fam { background: var(--coral-50); }
.e-fam svg { width: 38px; height: 38px; }

/* ---------- COMUNIDAD ---------- */
.community { padding-block-start: 0; background: #fff; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, #6A7BFF 55%, var(--purple) 100%);
  border-radius: 40px; padding: clamp(2rem, 5vw, 3.5rem); color: #fff;
}
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-box p { color: rgb(255 255 255 / .9); }
.cta-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cta-deco i { position: absolute; opacity: .25; background: #fff; }
.cta-deco i:nth-child(1) { width: 160px; height: 160px; border-radius: 50%; inset-block-start: -50px; inset-inline-end: 30%; }
.cta-deco i:nth-child(2) { width: 80px; height: 80px; border-radius: 16px; inset-block-end: -20px; inset-inline-start: 8%; rotate: 20deg; }
.cta-deco i:nth-child(3) { width: 90px; height: 80px; clip-path: polygon(50% 0, 100% 100%, 0 100%); inset-block-start: 20px; inset-inline-end: 3%; }
.cta-deco i:nth-child(4) { width: 40px; height: 40px; border-radius: 50%; inset-block-end: 30px; inset-inline-end: 42%; background: var(--yellow); opacity: .8; }
.subscribe { background: #fff; border-radius: 28px; padding: 1.5rem; display: grid; gap: .9rem; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 800; font-size: .9rem; color: var(--navy); }
.field input {
  font: inherit; color: var(--navy); padding: .85rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--cream);
  transition: border-color .2s, background-color .2s;
}
.field input:focus-visible { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--sky-50); }
.field input:user-invalid { border-color: var(--coral-d); }
.subscribe .btn { width: 100%; }
.form-msg { margin: 0; font-weight: 700; font-size: .95rem; color: var(--navy) !important; min-height: 1.4em; }
.form-msg.is-error { color: var(--coral-d) !important; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--cream); padding-block: 4rem 1.75rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-logo .logo-mark { width: 56px; height: 56px; }
.footer-logo .logo-word { font-size: 1.9rem; }
.footer-tagline { font-weight: 800; font-size: .78rem !important; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: .6rem 0 1rem; }
.footer-brand p { max-width: 22rem; font-size: .97rem; }
.site-footer h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer ul { display: grid; gap: .45rem; font-size: .95rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { display: grid; gap: 1rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-copy { color: var(--ink-2); }
.dev-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .45rem .95rem; font-size: .85rem; color: var(--ink-2) !important;
  box-shadow: var(--shadow-sm); transition: border-color .2s, translate .15s;
}
.dev-pill:hover { border-color: var(--blue-l); translate: 0 -1px; text-decoration: none !important; }
.dev-pill strong { color: var(--navy); font-weight: 800; }
.footer-note {
  text-align: center; font-size: .78rem; line-height: 1.5; color: var(--muted);
  padding-top: .9rem; border-top: 1px dashed var(--line);
}
.footer-shapes { display: flex; gap: 5px; }
.footer-shapes i { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.footer-shapes i:nth-child(2) { background: var(--coral); }
.footer-shapes i:nth-child(3) { background: var(--green); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.footer-shapes i:nth-child(4) { background: var(--purple); border-radius: 3px; }

/* ---------- Animaciones de aparición (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise-in {
      from { opacity: 0; translate: 0 28px; scale: .98; }
      to   { opacity: 1; translate: 0 0; scale: 1; }
    }
    .reveal {
      animation: rise-in auto cubic-bezier(.2,.8,.2,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
    .game.reveal, .featured-grid .reveal { animation: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .values, .cards { grid-template-columns: repeat(2, 1fr); }
  .game { grid-template-columns: minmax(0, 580px); }
  .game-panel { position: static; }
  .canvas-col { order: -1; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-grid, .featured-grid, .about-grid, .cta-box { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 380px; }
  .featured-copy { text-align: center; }
  .featured-copy .checklist { text-align: start; max-width: 520px; margin-inline: auto; }
  .featured-copy .chips { justify-content: center; }
  .shelf { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .values, .cards { grid-template-columns: 1fr; }
  .eco-brands { grid-template-columns: 1fr; }
  .eco-lines { display: none; }
  .eco-brand.is-current { translate: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { justify-content: center; text-align: center; }
  .s-1 { display: none; } .s-2 { inset-inline-end: 0; }
  .f-circle:not(.f-2) { display: none; }
  .hero-visual { min-height: 0; padding-block: 1rem; }
  .featured-media { max-width: 300px; }
  .mascot-stage { padding: 2.2rem 1.4rem 1.4rem; }
  .badge-greeting { inset-inline-start: 0; font-size: .82rem; }
  .btn { width: 100%; }
  .header-cta, .game-actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .featured-media:hover .mascot-stage img { transform: none; } }

@media (forced-colors: active) {
  .site-menu a:is(:target-current, .target-current) { outline: 2px solid CanvasText; }
  .pick[aria-checked="true"], .lang-btn[aria-pressed="true"] { outline: 3px solid Highlight; }
}
