/* ============================================================
   Ideas para Jugar en Familia — hoja de estilos
   Marca cálida, alegre y colorida · "revista familiar hecha a mano"
   ============================================================ */

/* ---------- Tokens base (tema CONFETI por defecto) ---------- */
:root {
  --paper:   #FFF6E9;   /* fondo papel crema */
  --paper-2: #FFFFFF;   /* superficie de tarjeta */
  --paper-3: #FBEFDD;   /* bandas suaves */
  --ink:     #2C2740;   /* texto principal (ciruela-marino) */
  --ink-soft:#6E6781;   /* texto secundario */
  --line:    rgba(44, 39, 64, 0.12);
  --line-2:  rgba(44, 39, 64, 0.07);

  --coral: #FF6B4A;
  --sun:   #FBB323;
  --leaf:  #2FB873;
  --sky:   #3E9FE6;
  --berry: #E8569B;
  --mint:  #1FBBAE;
  --grape: #8E5BE8;

  --coral-soft: #FFE6DF;
  --sun-soft:   #FCEFCB;
  --leaf-soft:  #D7F3E5;
  --sky-soft:   #D8ECFB;
  --berry-soft: #FBDEEE;
  --mint-soft:  #D2F1EE;
  --grape-soft: #E7DCFB;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Mulish', system-ui, sans-serif;

  --shadow-sm: 0 2px 0 rgba(44,39,64,0.06), 0 4px 14px rgba(44,39,64,0.06);
  --shadow-md: 0 4px 0 rgba(44,39,64,0.07), 0 12px 30px rgba(44,39,64,0.10);
  --shadow-pop: 0 6px 0 rgba(44,39,64,0.10), 0 18px 40px rgba(44,39,64,0.14);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

  --maxw: 1180px;
}

/* ---------- Tema PASTEL SUAVE ---------- */
.theme-pastel {
  --paper:   #FBF7F4;
  --paper-2: #FFFFFF;
  --paper-3: #F2EBF3;
  --ink:     #4A4458;
  --ink-soft:#857E94;
  --coral: #F7917E;
  --sun:   #F4C97A;
  --leaf:  #7DC79B;
  --sky:   #88B7E0;
  --berry: #E29CC4;
  --mint:  #82CFC6;
  --grape: #B49AE0;
  --coral-soft: #FCE7E1;
  --sun-soft:   #FBF0DA;
  --leaf-soft:  #E2F2E9;
  --sky-soft:   #E4EEF8;
  --berry-soft: #F7E6F0;
  --mint-soft:  #E0F1EE;
  --grape-soft: #ECE3F7;
}

/* ---------- Tema TIERRA NATURAL ---------- */
.theme-natural {
  --paper:   #F4ECDC;
  --paper-2: #FCF8EF;
  --paper-3: #EADFC8;
  --ink:     #3A3026;
  --ink-soft:#7A6E5C;
  --coral: #D9663F;
  --sun:   #D9A43F;
  --leaf:  #6F9457;
  --sky:   #5E8AA0;
  --berry: #B4577A;
  --mint:  #4E9E8F;
  --grape: #7E6CA6;
  --coral-soft: #F0DDCF;
  --sun-soft:   #F0E4C8;
  --leaf-soft:  #E0E8D2;
  --sky-soft:   #DBE6EA;
  --berry-soft: #EFD9E0;
  --mint-soft:  #D7E8E2;
  --grape-soft: #E2DBEA;
  --line:    rgba(58, 48, 38, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* dotted confetti background pattern on body */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255,107,74,0.10) 0 3px, transparent 3.5px),
    radial-gradient(circle, rgba(62,159,230,0.10) 0 3px, transparent 3.5px);
  background-size: 46px 46px, 46px 46px;
  background-position: 0 0, 23px 23px;
  opacity: .55;
  pointer-events: none;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: 22px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: none; animation: spin 9s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand__name b { color: var(--coral); }
.brand__tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-weight: 800; font-size: 14.5px; padding: 9px 13px; border-radius: 999px;
  color: var(--ink); transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav a:hover { background: var(--paper-3); }
.nav a .dot { width: 9px; height: 9px; border-radius: 50%; }

.iconbtn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); border: 2px solid var(--line); background: var(--paper-2);
  transition: transform .12s, border-color .15s;
}
.iconbtn:hover { transform: translateY(-2px); border-color: var(--ink); }
.iconbtn svg { width: 20px; height: 20px; }

.hamb { display: none; }

.navbanner {
  position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: nowrap;
  padding: 16px 34px; margin: 14px auto; max-width: 1500px; width: calc(100% - 48px);
  min-height: 104px;
  border-radius: 28px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.navbanner__deco { position: absolute; border-radius: 50%; opacity: .55; pointer-events: none; }
.navbanner__deco--1 { width: 8px; height: 8px; background: var(--sky); top: 8px; left: 3%; }
.navbanner__deco--2 { width: 6px; height: 6px; background: var(--sun); bottom: 8px; left: 8%; }
.navbanner__deco--3 { width: 7px; height: 7px; background: var(--grape); top: 8px; left: 22%; }
.navbanner__deco--4 { width: 6px; height: 6px; background: var(--leaf); bottom: 8px; left: 38%; }
.navbanner__deco--5 { width: 7px; height: 7px; background: var(--coral); top: 8px; left: 55%; }
.navbanner__deco--6 { width: 6px; height: 6px; background: var(--berry); bottom: 8px; left: 68%; }
.navbanner__deco--7 { display: none; }
.navbanner__deco--8 { display: none; }
.navbanner__deco--9 { display: none; }
.navbanner__deco--10 { width: 6px; height: 6px; background: var(--sky); top: 8px; left: 90%; }
.navbanner__brand { flex: none; }
.navbanner__divider { width: 1px; align-self: stretch; background: var(--line); flex: none; }
.navbanner__items { display: flex; align-items: flex-start; gap: clamp(8px,1.6vw,32px); flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; justify-content: flex-start; overflow-x: auto; padding-top: 6px; scrollbar-width: none; -ms-overflow-style: none; }
.navbanner__items::-webkit-scrollbar { display: none; }
.navbanner__item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; flex: none; width: auto; transition: transform .15s; }
.navbanner__item:hover { transform: translateY(-3px); }
.navbanner__icon { width: clamp(36px,4.4vw,64px); height: clamp(36px,4.4vw,64px); border-radius: 50%; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.navbanner__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.navbanner__label { font-family: var(--font-display); font-weight: 700; font-size: clamp(10px,1.15vw,14px); color: var(--ink); text-align: center; line-height: 1.1; white-space: nowrap; }
.navbanner__item[aria-current="page"] .navbanner__icon { outline: 3px solid var(--ink); outline-offset: 2px; }
.navbanner__utils { display: flex; gap: 6px; margin-left: 4px; align-self: center; flex: none; }
@media (max-width: 1100px) {
  .navbanner__label { font-size: 10px; }
  .navbanner__icon { width: 40px; height: 40px; }
}
@media (max-width: 1300px) {
  .navbanner__brand .brand__tag { display: none; }
}
@media (max-width: 700px) {
  .navbanner__brand .brand__name { font-size: 15px; }
}
@media (max-width: 480px) {
  .navbanner__icon { width: 44px; height: 44px; }
  .navbanner__label { font-size: 10px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 52px 0 26px; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--coral); background: var(--coral-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow svg { width: 17px; height: 17px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 16px; text-wrap: balance;
}
.hero h1 .hl { position: relative; color: var(--coral); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6px; height: 38%;
  background: var(--sun); border-radius: 6px; z-index: -1; opacity: .55;
  transform: rotate(-1.2deg);
}
.hero__sub { font-size: 19px; color: var(--ink-soft); max-width: 38ch; margin-bottom: 26px; }

/* age filter — STAR feature */
.agebox {
  background: var(--paper-2); border: 2px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.agebox__q { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.agebox__q svg { width: 22px; height: 22px; color: var(--berry); }
.agechips { display: flex; flex-wrap: wrap; gap: 10px; }
.agechip {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 11px 18px; border-radius: 999px; background: var(--paper);
  border: 2px solid var(--line); color: var(--ink);
  transition: transform .12s, background .15s, border-color .15s, color .15s;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.agechip small { font-family: var(--font-body); font-weight: 700; font-size: 11px; color: var(--ink-soft); letter-spacing: .02em; }
.agechip:hover { transform: translateY(-2px); border-color: var(--ink); }
.agechip[data-active="true"] { color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.agechip[data-active="true"] small { color: rgba(255,255,255,.85); }
.agechip[data-c="all"][data-active="true"]   { background: var(--ink); }
.agechip[data-c="0-2"][data-active="true"]   { background: var(--sky); }
.agechip[data-c="3-5"][data-active="true"]   { background: var(--leaf); }
.agechip[data-c="6-8"][data-active="true"]   { background: var(--coral); }
.agechip[data-c="9-12"][data-active="true"]  { background: var(--berry); }

/* hero visual */
.hero__visual { position: relative; }
.hero__photo {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--r-xl);
  border: 3px solid var(--ink); box-shadow: var(--shadow-pop);
  transform: rotate(2deg); overflow: hidden;
  position: relative;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero__sticker {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  background: var(--sun); color: var(--ink); padding: 12px 16px; border-radius: 16px;
  border: 3px solid var(--ink); box-shadow: var(--shadow-sm); transform: rotate(-8deg);
  font-size: 16px;
}
.hero__sticker--tl { top: -16px; left: -14px; background: var(--leaf); color: #fff; border-color: var(--ink); }
.hero__sticker--br { bottom: 18px; right: -16px; transform: rotate(7deg); }

/* floating confetti shapes in hero */
.confetti { position: absolute; pointer-events: none; z-index: -1; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 40px 0; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sechead h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.sechead h2 .accent { color: var(--coral); }
.sechead p { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.seelink {
  font-family: var(--font-display); font-weight: 800; font-size: 14.5px; color: #fff;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--coral); padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s;
}
.seelink:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.seelink svg { width: 16px; height: 16px; transition: transform .15s; }
.seelink:hover svg { transform: translateX(4px); }
.seelink { background: var(--grape) !important; color: #fff !important; border: 2px solid var(--ink) !important; box-shadow: 0 3px 0 var(--ink) !important; }
.seelink:hover { background: var(--ink) !important; box-shadow: 0 5px 0 var(--grape) !important; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
/* category filter row */
.catfilter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.catfilter__chip {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 8px 15px; border-radius: 999px; background: var(--paper-2);
  border: 2px solid var(--line); color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s, border-color .15s, background .15s;
}
.catfilter__chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.catfilter__chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.catfilter__chip[data-active="true"] { border-color: var(--ink); }
.catfilter__chip[data-active="true"] .dot { display: none; }

.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.card.hide { display: none; }
.card__media { position: relative; aspect-ratio: 3/2; background: var(--paper-3); overflow: hidden; }
.card__media .card__img {
  position: absolute;
  top: -8%; left: 0;
  width: 100%; height: 118%;
  object-fit: cover; display: block;
}
/* Portrait product images — show full box */
.card--shop .card__media .card__img {
  top: 0; height: 100%;
  object-fit: contain;
  background: #ffffff;
}
.card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  padding: 5px 11px; border-radius: 999px; color: #fff; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; text-wrap: pretty; }
.card a.card__title:hover { color: var(--coral); }
.card__title-hint {
  display: inline-block; font-family: var(--font-display); font-size: 11.5px; font-weight: 800;
  letter-spacing: .01em; color: var(--grape); background: color-mix(in oklch, var(--grape) 12%, white);
  padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 2px;
}
.card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; }
.pill {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px;
}
.pill svg { width: 13px; height: 13px; }

.emptyrow { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 30px; font-weight: 700; }

/* ============================================================
   AD SLOT — discreto, etiquetado, integrado
   ============================================================ */
.adband { margin: 14px auto; }
.adslot {
  border: 2px dashed var(--line); border-radius: var(--r-md);
  background: var(--paper-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; color: var(--ink-soft);
  min-height: 120px; position: relative;
}
.adslot__label { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.adslot__hint { font-size: 13px; font-weight: 700; }
.adslot__hint b { font-family: var(--font-display); }
.adslot.is-hidden { display: none; }
.adslot--leaderboard { min-height: 130px; }

/* Banner de publicidad entre secciones */
.adslot-inline {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 90px;
  background: var(--paper-3);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  margin: 12px 0;
}
.adslot-inline.is-hidden { display: none; }
.adslot-inline .adslot__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .6;
}
.adslot-inline ins.adsbygoogle {
  width: 100%;
  min-height: 60px;
  display: block;
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catcard {
  border-radius: var(--r-lg); padding: 24px; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 2px solid var(--ink); position: relative; overflow: hidden;
  transition: transform .16s, box-shadow .16s; color: var(--ink);
}
.catcard:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-pop); }
.catcard__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.55); border: 2px solid var(--ink); }
.catcard__icon svg { width: 28px; height: 28px; }
.catcard__icon--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; image-rendering: -webkit-optimize-contrast; image-rendering: high-quality; }
.catcard h3 { font-size: 22px; font-weight: 800; margin-top: 16px; }
.catcard span { font-weight: 700; font-size: 13.5px; opacity: .8; }
.catcard__deco { position: absolute; right: -22px; bottom: -22px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.35); }
.cat-coral { background: var(--coral-soft); }
.cat-sky   { background: var(--sky-soft); }
.cat-leaf  { background: var(--leaf-soft); }
.cat-sun   { background: var(--sun-soft); }
.cat-berry { background: var(--berry-soft); }
.cat-mint  { background: var(--mint-soft); }
.cat-grape { background: var(--grape-soft); }

/* ============================================================
   MODAL — paso a paso (bottom-sheet, todos los tamaños)
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(44,39,64,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal {
  background: var(--paper-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border: 2.5px solid var(--ink); border-bottom: none;
  box-shadow: 0 -8px 40px rgba(44,39,64,0.18);
  width: 100%; max-width: 680px; max-height: 92vh;
  display: flex; flex-direction: column;
  animation: slideUp .3s cubic-bezier(.2,.8,.3,1);
}
@media (min-width: 760px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { max-width: 1180px; max-height: 86vh; border-radius: var(--r-xl); border-bottom: 2.5px solid var(--ink); }
  .modal__header { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .modal__header::before { display: none; }
}
@keyframes slideUp { from { transform: translateY(60px); opacity:0; } to { transform: none; opacity:1; } }
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; flex: none; position: relative; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal__header::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.5);
}
.modal__cat { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: #fff; }
.modal__close { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; transition: background .15s; flex: none; }
.modal__close:hover { background: rgba(255,255,255,.5); }
.modal__close svg { width: 17px; height: 17px; color: #fff; }
.modal__body { display: flex; flex-direction: column; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.modal__cover { flex: none; overflow: hidden; max-height: 340px; background: var(--paper-3); position: relative; cursor: zoom-in; }
.modal__cover img { width: 100%; height: 340px; object-fit: contain; display: block; }
.modal__cover-zoom { position: absolute; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.65); color: #fff; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; }
@media (min-width: 760px) {
  .modal__body { flex-direction: row; }
  .modal__cover { max-height: none; flex: 0 0 52%; max-width: 52%; }
  .modal__cover img { height: 100%; }
  .modal__content { flex: 1; overflow-y: auto; }
}
.modal__content { padding: 20px 20px 40px; flex: 1; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.modal__title { font-size: clamp(18px,2.8vw,26px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.modal__materials { background: var(--paper-3); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 20px; }
.modal__materials h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.modal__materials ul { display: flex; flex-direction: column; gap: 5px; padding-left: 18px; list-style: disc; }
.modal__materials li { font-size: 14px; font-weight: 600; }
.modal__steps-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.modal__steps { display: flex; flex-direction: column; gap: 12px; }
.modal__steps-list { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.modal__steps-list li { line-height: 1.5; color: var(--ink-soft); }
.modal__steps-list li::marker { font-weight: 800; color: var(--grape); }

/* ---------------- Modal de instrucciones (RulesModal) ---------------- */
.modal--rules .modal__body { flex-direction: column; }
.modal--rules .modal__content { max-width: 640px; }
@media (min-width: 760px) {
  .modal--rules-img .modal__body { flex-direction: row; }
  .modal--rules-img .modal__cover { max-height: none; flex: 0 0 52%; max-width: 52%; }
  .modal--rules-img .modal__cover img { height: 100%; }
  .modal--rules-img .modal__content { flex: 1; max-width: none; overflow-y: auto; }
}
.rules-layout { display: flex; flex-direction: column; gap: 24px; }
.rules-main { flex: 1 1 auto; min-width: 0; }
.rules-tabs-row { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.rules-tabs-row .rules-tabs { margin-bottom: 0; }
.rules-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.rules-tab { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: 999px; background: var(--paper-3); color: var(--ink-soft); transition: background .15s, color .15s; }
.rules-tab.is-active { background: var(--grape); color: #fff; }
.rules-official__game { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules-official__game:last-of-type { border-bottom: none; }
.rules-official__game h3 { font-size: 15.5px; margin-bottom: 6px; }
.rules-official__goal { color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.rules-official__game p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.rules-official__source { display: inline-flex; margin-top: 0; font-weight: 800; font-size: 13.5px; color: var(--grape); }
.legal__content h4 { font-size: 15px; font-weight: 800; margin: 20px 0 6px; color: var(--ink); }
.legal__content p { font-size: 14.5px; line-height: 1.6; font-weight: 500; margin-bottom: 10px; color: var(--ink-2, var(--ink)); }
.legal__content ul { display: flex; flex-direction: column; gap: 7px; padding-left: 20px; list-style: disc; margin-bottom: 12px; }
.legal__content li { font-size: 14.5px; line-height: 1.55; font-weight: 500; }
.legal__content a { color: var(--coral); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal__card { background: var(--paper-3); border-radius: var(--r-md); padding: 16px 18px; margin: 14px 0; }
.legal__card p { margin-bottom: 7px; }
.modal__step { display: flex; gap: 12px; align-items: flex-start; }
.modal__step-n {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #fff;
}
.modal__step strong { font-size: 14px; font-weight: 800; display: block; margin-bottom: 2px; }
.modal__step p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.modal__step p + p, .modal__step .richtext-ul { margin-top: 6px; }
.richtext-ul { padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 3px; }
.richtext-ul li { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
/* Fullscreen image viewer */
.imgfull-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.94); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px;
}
.imgfull-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); display: grid; place-items: center;
  border: none; cursor: pointer;
}
.imgfull-img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 10px; touch-action: pinch-zoom; }
.imgfull-hint { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; margin-top: 12px; text-align: center; }
.modal__soon { text-align: center; padding: 40px 20px; color: var(--ink-soft); font-weight: 700; font-size: 15px; }
/* Beneficios / ideas / consejo en modal */
.modal__beneficios, .modal__ideas {
  background: var(--paper-3); border-radius: var(--r-md);
  padding: 14px 18px; margin-top: 18px;
}
.modal__beneficios h3, .modal__ideas h3 {
  font-size: 15px; font-weight: 800; margin-bottom: 8px;
}
.modal__beneficios ul, .modal__ideas ul {
  display: flex; flex-direction: column; gap: 5px;
  padding-left: 18px; list-style: disc;
}
.modal__beneficios li, .modal__ideas li { font-size: 14px; font-weight: 600; }
.modal__consejo {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff9e6; border: 2px solid var(--sun);
  border-radius: var(--r-md); padding: 14px 16px; margin-top: 18px;
  font-size: 14px; line-height: 1.5;
}
.modal__consejo span { font-size: 22px; flex: none; }

/* Section header with subtitle */
.section-header--with-sub { flex-wrap: wrap; gap: 10px 0; }
.section-header__sub {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 2px;
}
.section-header__sub em { font-style: italic; color: var(--grape); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(44,39,64,.5); backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0;
  width: min(320px, 88vw); height: 100%;
  background: var(--paper-2); box-shadow: -8px 0 32px rgba(44,39,64,.18);
  display: flex; flex-direction: column; padding: 0;
  animation: slideRight .25s cubic-bezier(.2,.8,.3,1);
}
@keyframes slideRight { from { transform: translateX(100%); } to { transform: none; } }
.mobile-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px; border-bottom: 2px solid var(--line); flex: none;
}
.mobile-drawer__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.mobile-drawer__item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  border-bottom: 1.5px solid var(--line); text-align: left; width: 100%;
  transition: background .15s;
  text-decoration: none; color: inherit;
}
.mobile-drawer__item:hover { background: var(--paper-3); }
.mobile-drawer__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.mobile-drawer__insta {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 20px 0; padding: 14px 18px; border-radius: var(--r-md);
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.section-header {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 4px;
}
.section-header:first-child { margin-top: 0; }
.section-header__tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 99px;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: #fff; white-space: nowrap; flex: none;
  border: 2.5px solid var(--ink);
}
.section-header__line {
  flex: 1; height: 2.5px; background: var(--line); border-radius: 99px;
}
.card__readmore {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(44,39,64,.72) 0%, transparent 100%);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px;
  padding: 28px 14px 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; transition: opacity .18s;
}
.card:hover .card__readmore { opacity: 1; }

/* ============================================================
   SHOP CARDS — juegos de mesa (afiliados)
   ============================================================ */
.shopgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shopcard {
  background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.shopcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.card--shop .card__media { background: #ffffff; }
.shopcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shopcard__age {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 999px;
}
.shopcard__body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.shopcard__name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.shopcard__brand { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-top: 3px; }
.shopcard__rate { display: inline-flex; align-items: center; gap: 4px; color: var(--sun); }
.shopcard__rate svg { width: 13px; height: 13px; }
.shopcard__blurb { font-size: 13.5px; color: var(--ink-soft); margin-top: 9px; line-height: 1.5; text-wrap: pretty; }
/* Por qué lo recomendamos */
.card__desc {
  font-size: 13px; color: var(--ink-soft); font-style: italic;
  line-height: 1.45; margin: 4px 0 6px; font-weight: 500;
}
.btn-amz {
  margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 15px;
  background: var(--sun); color: var(--ink);
  padding: 11px 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 3px 0 rgba(44,39,64,.18); transition: transform .12s, box-shadow .15s;
}
.btn-amz svg { width: 17px; height: 17px; }
.btn-amz:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(44,39,64,.18); }
.card__shopbtns { display: flex; gap: 8px; margin-top: 14px; }
.card__shopbtns .btn-amz { margin-top: 0; flex: 1; }
.btn-rules {
  font-family: var(--font-display); font-weight: 800; font-size: 13.5px;
  background: var(--paper-3); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: background .15s;
}
.btn-rules:hover { background: var(--paper); }
.card--shop .btn-amz, .card--shop .shopcard__aff { width: 100%; }
.card--shop .card__shopbtns { width: 100%; }
.card--shop .card__meta { margin-top: auto; }
.shopcard__aff { display: block; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); margin-top: 8px; opacity: .8; }
.affnote { margin-top: 22px; font-size: 12.5px; color: var(--ink-soft); background: var(--paper-3); border-radius: var(--r-md); padding: 14px 18px; line-height: 1.55; }
.affnote b { color: var(--ink); }

@media (max-width: 960px) {
  .shopgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .shopgrid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ============================================================
   PRINTABLES STRIP
   ============================================================ */
.printable {
  background: var(--ink); color: var(--paper); border-radius: var(--r-xl);
  padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.printable h2 { color: var(--paper); font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.printable h2 .accent { color: var(--sun); }
.printable p { color: rgba(255,255,255,.78); font-size: 16px; margin-bottom: 22px; max-width: 40ch; }
.btn {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .12s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn--coral:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.printable__sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sheet { background: var(--paper-2); border-radius: 14px; aspect-ratio: 3/4; border: 2px solid rgba(0,0,0,.2); box-shadow: var(--shadow-md); overflow: hidden; position: relative; }
.sheet:nth-child(1){ transform: rotate(-4deg); }
.sheet:nth-child(2){ transform: translateY(-8px); }
.sheet:nth-child(3){ transform: rotate(4deg); }
.sheet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   AGE QUICK BAND
   ============================================================ */
.agequick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.agequick a {
  border-radius: var(--r-lg); padding: 22px; border: 2px solid var(--ink);
  display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; color: var(--ink);
}
.agequick a:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.agequick .big { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.agequick .lbl { font-weight: 800; font-size: 15px; }
.agequick .num { font-weight: 700; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.news {
  border: 2px dashed var(--coral); background: var(--coral-soft);
  border-radius: var(--r-xl); padding: 40px; text-align: center;
}
.news h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.news p { color: var(--ink-soft); margin-bottom: 22px; }
.news__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.news__form input {
  flex: 1; font-family: inherit; font-size: 15px; padding: 14px 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink);
}
.news__form input::placeholder { color: var(--ink-soft); }
.news small { display: block; margin-top: 12px; color: var(--ink-soft); font-size: 12.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { margin-top: 30px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 48px 0 30px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a { font-weight: 700; font-size: 14.5px; }
.footer a:hover { color: var(--coral); }
.footer__brand p { color: var(--ink-soft); font-size: 14px; margin-top: 12px; max-width: 30ch; }
.footer__bottom { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13px; }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { max-width: 420px; order: -1; }
  .hero__grid > div:first-child { order: 1; }
  .cardgrid { grid-template-columns: repeat(2, 1fr); }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .printable { grid-template-columns: 1fr; gap: 28px; }
  .agequick { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hamb { display: grid; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 18px; }
  .cardgrid { grid-template-columns: 1fr; }
  .catgrid { grid-template-columns: 1fr; }
  .agequick { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .printable { padding: 28px; }
  .news__form { flex-direction: column; }
  .news__form input { width: 100%; }
  /* Header compacto en móvil */
  .brand__tag { display: none; }
  .brand__name { font-size: 16px; }
  .brand__mark { width: 36px !important; height: 36px !important; }
  .topbar { padding: 10px 16px; }
  .insta-stripe { display: none; }
}

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  padding: 14px; display: flex; justify-content: center;
  animation: cookieUp .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes cookieUp { from { transform: translateY(120%); } to { transform: translateY(0); } }
.cookie-banner__inner {
  width: 100%; max-width: 980px;
  background: #fff; border: 2px solid var(--ink);
  border-radius: var(--r-lg, 18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-banner__text { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 240px; }
.cookie-banner__emoji { font-size: 26px; line-height: 1; flex: none; }
.cookie-banner__text p { font-size: 13.5px; line-height: 1.5; font-weight: 600; margin: 0; }
.cookie-banner__text a { color: var(--coral); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__btns { display: flex; gap: 10px; flex: none; }
.cookie-btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 800;
  font-size: 14px; padding: 11px 20px; border-radius: 999px; transition: transform .12s, filter .12s;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--ghost { background: var(--paper-3); color: var(--ink); }
.cookie-btn--solid { background: var(--coral); color: #fff; }
.cookie-btn--solid:hover { filter: brightness(1.05); }
@media (max-width: 640px) {
  .cookie-banner__btns { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ============================================================
   Panel de administración — dashboard con paleta neutra propia
   (variables --admin-* aisladas dentro de .admin-shell: no tocan
   ni heredan el tema alegre del sitio público)
   ============================================================ */
.admin-shell {
  --admin-bg: #F4F6F8;
  --admin-surface: #FFFFFF;
  --admin-surface-2: #F8F9FB;
  --admin-border: #DFE3E8;
  --admin-border-soft: #ECEEF1;
  --admin-text: #1F2933;
  --admin-text-soft: #6B7684;
  --admin-accent: #2E5AAC;
  --admin-accent-soft: #E8EEF9;
  --admin-accent-contrast: #FFFFFF;
  --admin-danger: #C23B3B;
  --admin-danger-soft: #FBEAEA;
  --admin-success: #2E8B57;
  --admin-radius-sm: 8px;
  --admin-radius-md: 14px;
  --admin-shadow: 0 2px 10px rgba(31,41,51,.08);

  max-width: 960px; margin: 0 auto; padding: 24px 16px 80px;
  font-family: var(--font-body); color: var(--admin-text);
  background: var(--admin-bg);
}

.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding: 14px 22px; border-radius: var(--admin-radius-md);
  background: var(--admin-surface); border: 1px solid var(--admin-border); box-shadow: var(--admin-shadow);
}
.admin-header__brand { display: flex; align-items: center; gap: 12px; }
.admin-header__mark { width: 34px; height: 34px; flex: none; }
.admin-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 0; color: var(--admin-text); }

.admin-login {
  display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 60px auto;
  padding: 28px; background: var(--admin-surface); border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-md); box-shadow: var(--admin-shadow);
  color: var(--admin-text); font-family: var(--font-body);
}
.admin-login h1 { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; }
.admin-login label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.admin-login input {
  padding: 9px 11px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius-sm);
  font: inherit; background: var(--admin-surface); color: var(--admin-text);
}

.admin-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
.admin-form h1 { font-family: var(--font-display); font-size: 20px; margin: 0; }
.admin-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--admin-text); }
.admin-form input, .admin-form select, .admin-form textarea {
  padding: 8px 10px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius-sm);
  font: inherit; background: var(--admin-surface); color: var(--admin-text);
}
.admin-form fieldset { border: 1px solid var(--admin-border); border-radius: var(--admin-radius-sm); padding: 10px 12px; }
.admin-form fieldset legend { padding: 0 6px; font-weight: 700; font-size: 13px; color: var(--admin-text-soft); }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus,
.admin-login input:focus, .admin-searchbox input:focus { outline: 2px solid var(--admin-accent); outline-offset: 1px; }

.admin-error { color: var(--admin-danger); font-weight: 600; }
.admin-hint { font-size: 12.5px; font-weight: 500; color: var(--admin-text-soft); margin: -4px 0 0; }

/* Secciones colapsables del formulario */
.admin-form-section { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius-md); overflow: hidden; }
.admin-form-section__summary {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none;
  font-weight: 700; background: var(--admin-surface-2); color: var(--admin-text);
}
.admin-form-section__summary::-webkit-details-marker { display: none; }
.admin-form-section__summary::after { content: "▸"; margin-left: auto; color: var(--admin-text-soft); transition: transform .15s; }
.admin-form-section[open] > .admin-form-section__summary::after { transform: rotate(90deg); }
.admin-form-section__badge {
  font-size: 11.5px; font-weight: 700; color: var(--admin-text-soft); background: var(--admin-border-soft);
  border-radius: 999px; padding: 2px 8px;
}
.admin-form-section__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* Buscador */
.admin-list__toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-searchbox { position: relative; flex: 1; min-width: 200px; }
.admin-searchbox__icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--admin-text-soft); pointer-events: none; }
.admin-searchbox input { width: 100%; padding: 9px 12px 9px 34px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius-sm); background: var(--admin-surface); font: inherit; color: var(--admin-text); }
.admin-searchbox__count { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--admin-text-soft); }

/* Acordeón por categoría */
.admin-accordion { display: flex; flex-direction: column; gap: 10px; }
.admin-accordion__section { background: var(--admin-surface); border: 1px solid var(--admin-border); border-radius: var(--admin-radius-md); overflow: hidden; }
.admin-accordion__header {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: none;
  background: var(--admin-surface-2); font: inherit; font-weight: 700; text-transform: capitalize;
  color: var(--admin-text); cursor: pointer; text-align: left;
}
.admin-accordion__count { font-weight: 700; font-size: 12px; color: var(--admin-accent); background: var(--admin-accent-soft); border-radius: 999px; padding: 2px 9px; }
.admin-accordion__chevron { margin-left: auto; color: var(--admin-text-soft); transition: transform .15s; }
.admin-accordion__header[aria-expanded="true"] .admin-accordion__chevron { transform: rotate(180deg); }
.admin-accordion__body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }

/* Fila de juego dentro del acordeón */
.admin-game-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--admin-border-soft); border-radius: var(--admin-radius-sm); }
.admin-game-row__thumb, .admin-game-row__thumb--empty { width: 48px; height: 48px; border-radius: var(--admin-radius-sm); object-fit: cover; display: block; background: var(--admin-border-soft); }
.admin-game-row__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-game-row__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-game-row__chips { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-game-row__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.admin-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--admin-border-soft); color: var(--admin-text-soft); }
.admin-chip--age { background: var(--admin-accent-soft); color: var(--admin-accent); }

/* Botones */
.admin-btn {
  font: inherit; font-weight: 700; padding: 8px 14px; border-radius: var(--admin-radius-sm); border: 1px solid transparent;
  cursor: pointer; background: var(--admin-surface-2); color: var(--admin-text); transition: filter .12s, background .12s;
}
.admin-btn:hover { filter: brightness(0.97); }
.admin-btn:disabled { opacity: .45; cursor: not-allowed; }
.admin-btn--primary { background: var(--admin-accent); color: var(--admin-accent-contrast); }
.admin-btn--ghost { background: transparent; border-color: var(--admin-border); }
.admin-btn--danger { background: transparent; border-color: var(--admin-danger); color: var(--admin-danger); }
.admin-btn--sm { padding: 5px 10px; font-size: 12.5px; }
.admin-btn--icon { padding: 5px 9px; }

/* Listas editables / paso a paso (mismo HTML generado por JS, solo recoloreado) */
.admin-listeditor__row, .admin-paso-row, .admin-pista-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.admin-richtext { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.admin-richtext textarea { min-height: 260px; resize: vertical; font-size: 15px; line-height: 1.5; }
.admin-richtext__toolbar { display: flex; gap: 4px; }
.admin-richtext__btn { padding: 3px 9px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius-sm); background: var(--admin-surface-2); font-size: 12px; cursor: pointer; color: var(--admin-text); }
.admin-richtext__btn:hover { background: var(--admin-border-soft); }
.admin-listeditor__row .admin-richtext__btn { flex: none; }

/* Fila de paso: cabecera (número + título + quitar) y descripción a ancho completo debajo */
.admin-paso-row { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--admin-border-soft); border-radius: var(--admin-radius-md); }
.admin-paso-row__head { display: flex; gap: 8px; align-items: center; }
.admin-paso-row__head input { flex: 1; }

/* Variante "grande" de ListEditor (usada en Beneficios): textarea a ancho completo, como Consejo */
.admin-listeditor__row--big { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--admin-border-soft); border-radius: var(--admin-radius-sm); }
.admin-listeditor__row--big textarea { min-height: 110px; resize: vertical; }
.admin-listeditor__row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-thumb { max-width: 160px; border-radius: var(--admin-radius-sm); display: block; margin-top: 6px; }
.admin-thumb-link { font-size: 13px; color: var(--admin-accent); }

.admin-form__actions { display: flex; gap: 8px; margin-top: 4px; }

/* Modales (reautenticación + confirmación) */
.admin-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,31,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.admin-modal { background: var(--admin-surface); padding: 24px; border-radius: var(--admin-radius-md); max-width: 380px; width: 100%; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--admin-shadow); color: var(--admin-text); }
.admin-modal h2 { font-family: var(--font-display); font-size: 17px; margin: 0; }
.admin-modal--danger { border-top: 4px solid var(--admin-danger); }

/* Notificaciones (toast) */
.admin-toast-stack { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1100; max-width: 320px; }
.admin-toast { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--admin-radius-sm); background: var(--admin-text); color: #fff; box-shadow: var(--admin-shadow); font-size: 13.5px; }
.admin-toast--success { background: var(--admin-success); }
.admin-toast--error { background: var(--admin-danger); }
.admin-toast button { background: none; border: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; opacity: .8; }
.admin-toast button:hover { opacity: 1; }

/* Responsive: filas de juego como tarjetas apiladas en móvil */
@media (max-width: 640px) {
  .admin-shell { padding: 16px 12px 80px; }
  .admin-game-row { grid-template-columns: 1fr; }
  .admin-game-row__actions { justify-content: flex-start; }
}

/* ============================================================
   MOBILE — navegación inferior, banner de categoría (cathero)
   ============================================================ */
.navbanner__back { display: none; }
.tabbar, .cathero, .agebox__mlabel { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .desk-only { display: none !important; }
  .topbar { padding: 0 !important; position: sticky; top: 0; z-index: 40; background: var(--paper); }
  .navbanner { flex-wrap: nowrap; gap: 8px; padding: 10px 14px; margin: 0; width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; background: var(--paper); }
  .navbanner__deco, .navbanner__divider, .navbanner__items, .navbanner__insta { display: none !important; }
  .navbanner__back { display: grid; place-items: center; width: 32px; height: 40px; margin-left: -6px; color: var(--ink); flex: none; }
  .navbanner__back--spacer { display: none; }
  .navbanner__brand { flex: 1 1 0; min-width: 0; gap: 10px; }
  .navbanner__brand .brand__mark { width: 38px; height: 38px; flex: none; }
  .navbanner__brand .brand__name { font-size: 14px; line-height: 1.15; white-space: normal; max-width: 120px; display: block; }
  .navbanner__utils { margin-left: 0; gap: 2px; }
  .navbanner__utils .iconbtn { width: 40px; height: 40px; border: 0; background: transparent; box-shadow: none; }
  .navbanner__utils .topsearch { position: absolute; left: 14px; right: 100px; width: auto !important; height: 40px; z-index: 2; }
  .hamb { display: grid; }

  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper-2); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(40,30,20,.06); }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; font: inherit; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--ink-soft); text-decoration: none; min-height: 48px; justify-content: center; cursor: pointer; }
  .tabbar__item[aria-current="page"] { color: var(--grape); }

  .cathero { display: flex; position: relative; align-items: center; gap: 8px; border-radius: 22px; padding: 22px 18px; margin: 4px 0 22px; min-height: 180px; overflow: hidden; background-size: cover; background-position: center; }
  .cathero__text { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; max-width: 62%; }
  .cathero h1 { font-size: 28px; margin: 0 0 8px; line-height: 1.05; }
  .cathero p { font-size: 13.5px; line-height: 1.45; margin: 0 0 14px; color: var(--ink-soft); }
  .cathero__count { display: inline-flex; align-items: center; gap: 7px; background: var(--paper-2); border-radius: 999px; padding: 7px 14px; font-family: var(--font-display); font-weight: 800; font-size: 13.5px; box-shadow: var(--shadow-sm); }
  .cathero__count img { width: 20px; height: 20px; object-fit: contain; }
  .cathero__icon { position: absolute; right: -6px; bottom: -4px; width: 46%; max-width: 170px; aspect-ratio: 1; object-fit: contain; }

  .agebox--cat { background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: 18px !important; }
  .agebox--cat .agebox__q { display: none; }
  .agebox--cat .agebox__mlabel { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; margin-bottom: 10px; }
  .agebox--cat .agechips { flex-wrap: nowrap; gap: 8px; }
  .agebox--cat .agechip { flex: 1 1 0; padding: 10px 0; font-size: 14px; text-align: center; }
  .agebox--cat .agechip small { display: none; }

  .cardgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { border-radius: 18px; }
  .card__body { padding: 10px 12px 12px; }
  .card__title { font-size: 14.5px; margin-bottom: 4px; line-height: 1.2; }
  .card__title-hint, .card__desc, .card .pill:not(:first-child) { display: none; }
  .card__meta { padding-top: 8px; gap: 5px; }
  .card .pill { font-size: 11px; }

  .catgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .catcard { min-height: 120px; padding: 16px 12px; align-items: center; text-align: center; justify-content: center; gap: 6px; border-radius: 18px; }
  .catcard h3 { font-size: 15px; }
  .catcard span { font-size: 12.5px; }
  .catcard__icon { width: 56px !important; height: 56px !important; margin: 0 auto; }

  .hero { padding: 12px 0 10px; }
  .hero__grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 32px; margin-bottom: 8px; }
  .hero__sub { font-size: 15px; margin-bottom: 16px; }
  .hero__photo { aspect-ratio: 5/4; border-width: 0; border-radius: 22px; }
  .hero__sticker--br { display: none; }
  .hero__sticker--tl { top: 12px; left: 10px; font-size: 14px; padding: 8px 12px; transform: rotate(-8deg); }
  .hero .agebox { padding: 14px; }
  .hero .agebox__q { font-size: 14.5px; margin-bottom: 10px; }
  .hero .agechips { flex-wrap: nowrap; gap: 6px; }
  .hero .agechip { flex: 1 1 0; padding: 8px 0; font-size: 13px; text-align: center; }
  .hero .agechip small { font-size: 10px; }
}

/* ---------------- Móvil — ajustes finales (deben ir al final) ---------------- */
@media (max-width: 700px) {
  .topbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .navbanner { min-height: 0 !important; height: auto !important; }
  .cardgrid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .catgrid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .cathero__icon { right: 4px; bottom: 6px; width: 38%; max-width: 140px; }
  .cathero__text { max-width: 60%; }
  .cookie-banner { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

.mob-br { display: none; }
@media (max-width: 700px) {
  .mob-br { display: inline; }
  .navbanner { align-items: center !important; padding: 10px 16px !important; }
  .navbanner__brand { display: flex; align-items: center; gap: 10px; }
  .navbanner__brand .brand__text { display: flex; flex-direction: column; justify-content: center; }
  .navbanner__brand .brand__name { max-width: none !important; white-space: nowrap !important; font-size: 14px !important; line-height: 1.2 !important; font-weight: 800; }
  .navbanner__brand .brand__mark { width: 36px !important; height: 36px !important; }
  .navbanner__utils { align-self: center; }
  .navbanner__utils .iconbtn svg { width: 22px; height: 22px; }
}

@media (max-width: 700px) {
  .navbanner { padding: 12px 16px !important; }
  .navbanner__back { width: 36px !important; margin-left: -4px !important; }
  .navbanner__brand { gap: 12px !important; }
  .navbanner__brand .brand__mark { width: 42px !important; height: 42px !important; }
  .navbanner__brand .brand__name { font-size: 16px !important; line-height: 1.2 !important; }
  .navbanner__utils .iconbtn { width: 42px !important; height: 42px !important; }
  .navbanner__utils .iconbtn svg { width: 24px; height: 24px; }
}

@media (max-width: 700px) {
  .hero__photo { aspect-ratio: 16/10 !important; max-height: 220px; }
  .hero__img { object-position: center 30%; }
  .hero h1 { font-size: 28px !important; }
  .catgrid { gap: 10px !important; }
  .catcard { min-height: 0 !important; padding: 14px 10px 12px !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 4px !important; border-radius: 18px !important; background-size: cover !important; border: 0; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
  .catcard::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; top: 12px; right: 12px; background: rgba(255,255,255,.75); }
  .catcard__icon { width: 46px !important; height: 46px !important; margin: 0 auto 2px !important; border-radius: 50%; }
  .catcard > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .catcard h3 { font-size: 14.5px !important; margin: 0 !important; line-height: 1.15; }
  .catcard span { font-size: 12px !important; opacity: .75; }
  .catcard:hover { transform: none; }
}

@media (max-width: 700px) {
  .hero__sub { font-size: 13.5px !important; line-height: 1.45; margin-bottom: 14px !important; }
}

@media (max-width: 700px) {
  .catcard { align-items: flex-start !important; text-align: left !important; justify-content: flex-end !important; min-height: 112px !important; padding: 12px !important; background-size: auto 115% !important; background-position: 85% center !important; background-repeat: no-repeat !important; }
  .catcard::after { display: none; }
  .catcard__icon { width: 36px !important; height: 36px !important; margin: 0 0 auto !important; }
  .catcard > div { align-items: flex-start !important; text-align: left !important; max-width: 58%; }
  .catcard h3 { font-size: 14px !important; white-space: normal; text-wrap: balance; }
  .catcard span { font-size: 11.5px !important; }
}

@media (max-width: 700px) {
  .card { border-radius: 16px !important; }
  .card__media { aspect-ratio: 1 / 1 !important; height: auto !important; padding: 0 !important; }
  .card__media .card__img { top: 0 !important; height: 100% !important; object-fit: cover; }
  .card__media .card__img--contain, .card--shop .card__media .card__img { object-fit: contain !important; }
  .card__media > span:first-child, .card__cat { font-size: 10px !important; padding: 4px 8px !important; top: 8px !important; left: 8px !important; }
  .card__media > span:first-child svg, .card__cat svg { width: 10px !important; height: 10px !important; }
  .card__body { padding: 8px 10px 10px !important; }
  .card__title { font-size: 13px !important; line-height: 1.2 !important; margin-bottom: 4px !important; font-weight: 700; }
  .card__title-hint { display: inline-block !important; font-size: 10px !important; padding: 3px 7px !important; margin-top: 2px; }
  .card__meta { padding-top: 6px !important; }
  .card .pill { font-size: 10.5px !important; padding: 3px 8px !important; }
}

@media (max-width: 700px) {
  .card__shopbtns { flex-direction: column !important; flex-wrap: wrap !important; gap: 6px !important; }
  .card__shopbtns > * { width: 100% !important; justify-content: center !important; font-size: 11.5px !important; padding: 7px 8px !important; white-space: nowrap; }
}

@media (min-width: 701px) { .cardgrid--feat > :nth-child(n+4) { display: none; } }

@media (max-width: 700px) {
  .cathero { min-height: 0 !important; height: 196px; padding: 18px 16px !important; align-items: flex-start !important; }
  .cathero h1 { font-size: 25px !important; }
  .cathero p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px !important; }
  .cathero__count { position: absolute; left: 16px; bottom: 16px; }
}

@media (max-width: 700px) {
  .cathero__text { position: static !important; }
  .cathero__count { z-index: 1; }
}

@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr 1fr !important; gap: 0 20px !important; padding: 28px 0 16px !important; }
  .footer__inner > .footer__brand { grid-column: 1 / -1; padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
  .footer__inner > div:last-child { grid-column: 1 / -1; padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--line); }
  .footer h4 { font-size: 11.5px !important; letter-spacing: .14em; margin-bottom: 12px !important; }
  .footer li { margin-bottom: 11px !important; }
  .footer a { font-weight: 500 !important; font-size: 14px !important; }
  .footer__brand p { font-size: 13px !important; }
}

@media (max-width: 700px) {
  .footer .wrap, .footer__inner, .footer__bottom { padding-left: 22px !important; padding-right: 22px !important; }
}

@media (max-width: 700px) {
  .wrap > .agechips { flex-wrap: nowrap !important; gap: 5px !important; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px !important; }
  .wrap > .agechips::-webkit-scrollbar { display: none; }
  .wrap > .agechips .agechip { flex: 0 0 auto; padding: 7px 10px !important; font-size: 12px !important; white-space: nowrap; }
}

@media (max-width: 700px) {
  .wrap > .agechips { flex-wrap: wrap !important; overflow: visible !important; gap: 6px !important; }
}

@media (max-width: 700px) {
  .footer__inner > div:nth-child(2), .footer__inner > div:nth-child(3) { display: none !important; }
  .footer__inner > div:last-child { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
}

@media (max-width: 700px) {
  .card__media { aspect-ratio: 4 / 3 !important; }
  .card__body { padding: 7px 9px 8px !important; }
  .card__title { font-size: 12.5px !important; margin-bottom: 3px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__title-hint { font-size: 9.5px !important; padding: 2px 6px !important; margin: 0 !important; }
  .card__meta { padding-top: 4px !important; }
  .card .pill { font-size: 10px !important; padding: 2px 7px !important; }
}

@media (max-width: 700px) {
  .card--shop .card__media { aspect-ratio: 4 / 3 !important; }
  .shopcard__aff { display: none !important; }
  .card--shop .card__meta { padding-top: 3px !important; }
  .card__shopbtns { flex-direction: row !important; flex-wrap: nowrap !important; gap: 5px !important; margin-top: 6px !important; }
  .card__shopbtns > * { width: auto !important; flex: 1 1 0; min-width: 0; padding: 6px 6px !important; font-size: 10.5px !important; min-height: 0 !important; height: 30px; border-radius: 999px !important; overflow: hidden; }
  .card__shopbtns > .btn-rules { flex: 0 0 30px; width: 30px !important; padding: 0 !important; font-size: 0 !important; display: grid !important; place-items: center; }
  .card__shopbtns > .btn-rules svg { width: 14px !important; height: 14px !important; }
}

@media (max-width: 700px) {
  .card__shopbtns { flex-direction: row !important; flex-wrap: nowrap !important; gap: 4px !important; }
  .card__shopbtns > *, .card__shopbtns > .btn-rules { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; height: 30px !important; padding: 0 4px !important; font-size: 9.5px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 3px !important; white-space: nowrap !important; letter-spacing: -.01em; }
  .card__shopbtns > * svg { width: 11px !important; height: 11px !important; flex: none; }
}

@media (max-width: 700px) {
  .card--shop .card__body { padding-left: 6px !important; padding-right: 6px !important; }
  .card__shopbtns > * svg { display: none !important; }
  .card__shopbtns > *, .card__shopbtns > .btn-rules { box-sizing: border-box !important; border-width: 1.5px !important; border-style: solid !important; flex-basis: 0 !important; padding: 0 2px !important; font-size: 10px !important; }
  .card__shopbtns > .btn-amz { border-color: transparent !important; }
}
