/* ============================================================
   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; 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-weight: 800; font-size: 14.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seelink svg { width: 16px; height: 16px; transition: transform .15s; }
.seelink:hover svg { transform: translateX(4px); }

/* ============================================================
   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__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 0; }
.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);
}
@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; }
/* Single-column body — reliable on ALL devices */
.modal__body { display: flex; flex-direction: column; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.modal__cover { flex: none; overflow: hidden; max-height: 200px; }
.modal__cover img { width: 100%; height: 200px; object-fit: cover; display: block; }
.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; }
.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__process { margin-top: 24px; }
.modal__process h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.modal__zoom-hint { font-size: 12px; font-weight: 600; color: var(--ink-soft); font-family: var(--font-body); }
.modal__process img { width: 100%; border-radius: var(--r-md); border: 2px solid var(--line); display: block; transition: opacity .15s; }
.modal__process img:hover { opacity: .88; }
/* 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--shop .btn-amz, .card--shop .shopcard__aff { 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
   ============================================================ */
.admin-shell { max-width: 720px; margin: 0 auto; padding: 24px 16px; font-family: var(--font-body); color: var(--ink); }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding: 14px 22px; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.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; }
.admin-login, .admin-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 60px auto; }
.admin-login label, .admin-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.admin-login input, .admin-form input, .admin-form select, .admin-form textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit;
}
.admin-error { color: var(--coral); font-weight: 600; }
.admin-list table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-list th, .admin-list td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line-2); }
.admin-listeditor__row, .admin-paso-row, .admin-pista-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.admin-thumb { max-width: 160px; border-radius: var(--r-sm); display: block; margin-top: 6px; }
.admin-form__actions { display: flex; gap: 8px; margin-top: 12px; }
.admin-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.admin-modal { background: var(--paper-2); padding: 24px; border-radius: var(--r-md); max-width: 360px; width: 90%; display: flex; flex-direction: column; gap: 10px; }
