/* ============================================================
   EMOTION! · CSS común del rediseño (diciembre 2026)

   Lo cargan SOLO las páginas ya rediseñadas, en lugar de
   css/styles.css + el <style> interno de cada página.
   Las páginas sin rediseñar siguen con css/styles.css.

   Puntos de corte (solo estos dos):
     móvil      hasta 600 px   (estilos base)
     tablet     601 – 900 px   @media (min-width: 601px)
     ordenador  desde 901 px   @media (min-width: 901px)

   Paleta y tipografías: las de siempre. No añadir colores ni fuentes.
   ============================================================ */

@font-face { font-family: 'Loyola'; src: url('../vendor/font-awesome/fonts/loyola.woff2') format('woff2'), url('../vendor/font-awesome/fonts/Loyola.otf') format('opentype'), url('../vendor/font-awesome/fonts/loyola.woff') format('woff'), url('../vendor/font-awesome/fonts/loyola.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: block; }
@font-face { font-family: 'Avenir'; src: url('../vendor/font-awesome/fonts/Avenir.woff2') format('woff2'), url('../vendor/font-awesome/fonts/Avenir.woff') format('woff'); font-weight: 800; font-style: normal; font-display: block; }

:root {
  /* Paleta EMOTION! */
  --primary: #07beb8;        /* turquesa */
  --primary-dark: #059e99;
  --primary-light: #9ce5d8;
  --pink: #FE5976;           /* rosa: color del botón de reservar */
  --ink: #1a1a2e;            /* marino: textos, bordes y sombras */
  --mint: #e8f6f5;           /* turquesa suave: fondos de sección */
  --white: #fff;
  --black: #000;
  --whatsapp: #25d366;

  --text-primary: var(--ink);
  --text-secondary: #3a3a4a;
  --text-muted: #5a5a6a;

  /* Tipografías */
  --font-heading: 'Loyola', 'Poppins', cursive;
  --font-logo: 'Avenir', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-footer: 'Homenaje', sans-serif;

  /* Estilo cómic: borde grueso y sombra plana */
  --line: 2.5px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  --nav-height: 64px;
  --container-max: 1120px;
  --container-padding: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3rem, 8vw, 5.5rem);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 901px) { :root { --nav-height: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; background: var(--white); color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: normal; line-height: 1.15; }
::selection { background: var(--primary); color: var(--white); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Estructura ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); position: relative; z-index: 1; }
.section { padding: var(--section-y) 0; position: relative; }
.section-white { background: var(--white); }
.section-mint { background: var(--mint); }
.section-teal { background: var(--primary); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto clamp(1.75rem, 5vw, 2.75rem); }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--white); border: 2px solid var(--ink);
  padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 0.9rem; transform: rotate(-1.5deg);
}
.section-title { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; color: var(--ink); margin-bottom: 0.75rem; }
.section-subtitle { font-size: clamp(1rem, 2vw, 1.08rem); color: var(--text-secondary); }
/* palabra subrayada a rotulador */
.u { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 0.12em; text-underline-offset: 0.14em; }
.u-ink { text-decoration-color: var(--ink); }
.u-white { text-decoration-color: var(--white); }
.u-pink { text-decoration-color: var(--pink); }
/* la sección que va detrás de una ola no necesita tanto aire arriba */
.wave-divider + .section { padding-top: 2rem; }
/* sobre turquesa pleno: título blanco con sombra, como en la entrada */
.section-teal .section-title { color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); }
.section-teal .section-subtitle { color: var(--ink); }
.section-teal .calendar-note, .section-teal .calendar-note i { color: var(--ink); }
.section-teal .steps p, .section-teal .tip i { color: var(--ink); }
.section-teal .steps li::before { background: var(--pink); }
.section-subtitle strong { font-weight: 700; color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
/* Principal: SOLO para reservar. Un botón principal por pantalla. */
.btn-primary { background: var(--pink); color: var(--ink); border: var(--line); box-shadow: var(--pop); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
/* Secundario: acciones de apoyo */
.btn-secondary { background: var(--white); color: var(--ink); border: var(--line); box-shadow: var(--pop-sm); }
.btn-secondary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* Oscuro: enviar formularios */
.btn-ink { background: var(--ink); color: var(--white); border: var(--line); }
.btn-ink:active { transform: translateY(2px); }
.btn-lg { min-height: 56px; padding: 0.9rem 1.8rem; font-size: 1.08rem; }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-primary:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
  .btn-secondary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
  .btn-ink:hover { background: var(--primary-dark); }
}

/* ---------- Cabecera y menú ---------- */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding-top: env(safe-area-inset-top); background: var(--black); transition: background var(--transition), box-shadow var(--transition); }
#header.scrolled { background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-height); max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.nav-logo { font-family: var(--font-logo); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--white); display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; min-height: 44px; justify-content: center; }
.nav-logo span { color: var(--primary); }
.nav-logo small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-top: 3px; }
#header.scrolled .nav-logo, #header.scrolled .nav-logo small { color: var(--ink); }
/* cabecera negra (antes de bajar): el borde marino del botón no se distinguía del negro; aquí va en blanco */
#header:not(.scrolled) .nav-actions .btn-primary { border-color: var(--white); box-shadow: 3px 3px 0 var(--white); }
#header:not(.scrolled) .nav-actions .btn-primary:active { box-shadow: 1px 1px 0 var(--white); }
@media (hover: hover) { #header:not(.scrolled) .nav-actions .btn-primary:hover { box-shadow: 5px 6px 0 var(--white); } }
.hamburger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: var(--transition); }
#header.scrolled .hamburger span { background: var(--ink); }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-actions { display: none; flex-shrink: 0; }
/* móvil y tablet: panel desplegable */
.nav-links {
  position: fixed; top: calc(var(--nav-height) + env(safe-area-inset-top)); left: 0; right: 0; z-index: 999;
  display: flex; flex-direction: column; max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
  background: var(--white); padding: 0.25rem var(--container-padding) 1rem; border-bottom: var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-links.open { opacity: 1; visibility: visible; transform: none; }
.nav-link { display: flex; align-items: center; min-height: 48px; font-size: 1.05rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid rgba(26, 26, 46, 0.1); }
.nav-links li:last-child .nav-link { border-bottom: 0; }
.nav-link.active { color: var(--primary-dark); }
@media (min-width: 601px) {
  .nav-actions { display: flex; margin-left: auto; }
}
/* Ordenador: menú en línea. El espacio entre enlaces se encoge en ventanas estrechas y, si aun así
   no cabe entero (portátil pequeño, idiomas con palabras largas), js/emotion.js pone .is-folded
   en la cabecera y el menú se queda plegado como en tablet. Así no hace falta un tercer punto de corte. */
@media (min-width: 901px) {
  #header:not(.is-folded) .hamburger { display: none; }
  #header:not(.is-folded) .nav-actions { margin-left: 0; }
  #header:not(.is-folded) .nav-links { position: static; flex-direction: row; align-items: center; gap: 0.1rem; max-height: none; overflow: visible; background: none; padding: 0; border: 0; opacity: 1; visibility: visible; transform: none; transition: none; }
  #header:not(.is-folded) .nav-link { --nav-pad: clamp(0.35rem, calc(1.6vw - 0.62rem), 0.6rem); min-height: 40px; padding: 0 var(--nav-pad); font-size: 0.86rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); border: 0; border-radius: 8px; white-space: nowrap; position: relative; }
  #header.scrolled:not(.is-folded) .nav-link { color: var(--ink); }
  #header:not(.is-folded) .nav-link.active { color: var(--white); }
  #header.scrolled:not(.is-folded) .nav-link.active { color: var(--primary-dark); }
  #header:not(.is-folded) .nav-link.active::after { content: ''; position: absolute; left: var(--nav-pad); right: var(--nav-pad); bottom: 4px; height: 2.5px; background: var(--primary); border-radius: 2px; }
}
@media (hover: hover) and (min-width: 901px) {
  #header:not(.is-folded) .nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
  #header.scrolled:not(.is-folded) .nav-link:hover { color: var(--ink); background: var(--mint); }
}

/* ---------- Hero ---------- */
.fam-hero { position: relative; overflow: hidden; background: var(--primary); color: var(--white); text-align: center; padding: calc(var(--nav-height) + 2rem) var(--container-padding) 3rem; }
/* la entrada termina en curva hacia la sección siguiente (turquesa suave) */
.fam-hero.has-wave { padding-bottom: 4.5rem; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; display: block; width: 100%; height: 35px; fill: var(--mint); pointer-events: none; }
/* cuando la sección siguiente es blanca (escuelas) */
.hero-wave.to-white { fill: var(--white); }
@media (min-width: 601px) { .hero-wave { height: 60px; } .fam-hero.has-wave { padding-bottom: 6.5rem; } }
@media (min-width: 901px) { .fam-hero.has-wave { padding-bottom: 7.5rem; } }
.hero-sunburst { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-sunburst::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.07) 0deg, rgba(255, 255, 255, 0.07) 5deg, transparent 5deg, transparent 15deg);
  animation: sunburstSpin 70s linear infinite;
}
@keyframes sunburstSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-grid { position: relative; z-index: 1; max-width: var(--container-max); margin: 0 auto; display: grid; gap: 2rem; }
.hero-kicker { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; color: var(--ink); margin-bottom: 0.7rem; }
.hero-title { font-size: clamp(2.3rem, 10.5vw, 3.4rem); line-height: 1.04; color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1.02rem, 2.2vw, 1.15rem); font-weight: 500; line-height: 1.6; color: var(--ink); max-width: 34rem; margin: 0 auto 1.4rem; }
.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; max-width: 26rem; margin: 0 auto 1.5rem; }
.hero-facts li { background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop-sm); padding: 0.55rem 0.5rem 0.6rem; font-size: 0.875rem; font-weight: 500; line-height: 1.25; }
.hero-facts strong { display: block; font-family: var(--font-heading); font-weight: normal; font-size: 1.45rem; line-height: 1.15; }
.hero-cta .btn { width: 100%; max-width: 26rem; }
.hero-note { font-size: 0.875rem; font-weight: 500; color: var(--ink); margin-top: 0.9rem; }
.hero-note a { display: inline-block; padding: 0.8rem 0.15rem; margin: -0.8rem 0; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--white); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* foto en marco de cómic, con el emoti asomando */
.hero-photo { position: relative; width: min(100%, 24rem); margin: 0.5rem auto 0; }
.hero-photo-frame { border: var(--line); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink); background: var(--white); padding: 6px; transform: rotate(2deg); }
.hero-photo-frame img { width: 100%; aspect-ratio: 900 / 552; object-fit: cover; border-radius: 12px; }
/* foto de grupo (cuadrada): apaisada en móvil para que no empuje el contenido, entera desde tablet */
.hero-photo-frame.is-group img { aspect-ratio: 4 / 3; object-position: center 20%; }
/* foto apaisada que se ve entera en las tres vistas */
.hero-photo-frame.is-43 img { aspect-ratio: 4 / 3; }
.hero-emoti { position: absolute; left: -4%; bottom: -14%; width: 36%; filter: drop-shadow(3px 4px 0 rgba(26, 26, 46, 0.25)); animation: emotiFloat 5s ease-in-out infinite; }
.hero-star { position: absolute; }
.hero-star-1 { width: 9%; top: -7%; right: -2%; animation: starSparkle1 3s ease-in-out infinite; }
.hero-star-2 { width: 6%; top: 16%; left: -5%; animation: starSparkle2 4s ease-in-out infinite 1s; }
@keyframes emotiFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes starSparkle1 { 0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(15deg); } }
@keyframes starSparkle2 { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(-10deg); } }
@media (min-width: 601px) {
  .fam-hero { text-align: left; padding-bottom: 4rem; }
  .hero-title { font-size: clamp(2.5rem, 5.6vw, 4rem); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }
  .hero-lead, .hero-facts { margin-left: 0; margin-right: 0; }
  .hero-cta .btn { width: auto; }
  .hero-photo { width: 100%; margin: 0; }
  .hero-photo-frame.is-group img { aspect-ratio: 1 / 1; }
  .hero-sunburst::before { left: 72%; width: 260%; }
}
@media (min-width: 901px) {
  .fam-hero { padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 3.5rem; }
  .hero-facts { display: flex; flex-wrap: wrap; max-width: none; }
  /* cuatro en fila si caben (pantalla de 1280 o mas); si no, dos y dos: nunca tres y uno */
  .hero-facts li { flex: 1 1 clamp(0px, calc((80rem - 100vw) * 999), 45%); padding-left: 0.9rem; padding-right: 0.9rem; }
  .hero-facts strong { white-space: nowrap; }
  /* datos largos: siempre dos y dos */
  .hero-facts.is-pairs li { flex-basis: 45%; }
  .hero-photo { max-width: 30rem; justify-self: center; }
  /* titulares de dos frases */
  .hero-title.is-long { font-size: clamp(2.2rem, 4vw, 3.2rem); }
}

/* ---------- Tarjetas con foto (cómo es jugar en familia) ---------- */
.fam-cards { display: grid; gap: 1.25rem; }
.fam-card { display: flex; flex-direction: column; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; }
.fam-card-img img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; }
.fam-card-img { position: relative; border-bottom: var(--line); }
/* iconito redondo, a caballo del borde de la foto */
.fam-card-icon { position: absolute; right: 1rem; bottom: -1.4rem; z-index: 1; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--white); border: var(--line); font-size: 1rem; }
.fam-card-body { padding: 1.5rem 1.25rem 1.3rem; }
.fam-card-body h3, .fam-card-body h4 { font-size: 1.35rem; color: var(--ink); margin-bottom: 0.35rem; }
.fam-card-body p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.tip { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 40rem; margin: 2rem auto 0; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.tip i { flex-shrink: 0; margin-top: 0.3rem; color: var(--primary-dark); }
@media (min-width: 601px) {
  /* tablet: foto a la izquierda, texto a la derecha */
  .fam-card { flex-direction: row; }
  .fam-card-img { flex: 0 0 38%; border-bottom: 0; border-right: var(--line); }
  .fam-card-img img { aspect-ratio: auto; min-height: 170px; max-height: 230px; }
  .fam-card-body { align-self: center; padding: 1.25rem 1.5rem 1.25rem 2.2rem; }
  .fam-card-icon { right: -1.4rem; bottom: auto; top: 50%; transform: translateY(-50%); }
}
@media (min-width: 901px) {
  .fam-cards { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .fam-card { flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .fam-card:nth-child(1) { transform: rotate(-1.2deg); }
  .fam-card:nth-child(3) { transform: rotate(1.2deg); }
  .fam-card-img { flex: none; border-right: 0; border-bottom: var(--line); }
  .fam-card-img img { aspect-ratio: 6 / 5; min-height: 0; max-height: none; }
  .fam-card-body { align-self: stretch; padding: 1.5rem 1.25rem 1.3rem; }
  .fam-card-icon { right: 1rem; bottom: -1.4rem; top: auto; transform: none; }
}
@media (hover: hover) and (min-width: 901px) {
  .fam-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 6px 8px 0 var(--ink); }
}

/* ---------- Carrusel táctil (solo móvil) ---------- */
.swipe-hint, .swipe-dots { display: none; }
@media (max-width: 600px) {
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); margin: 0 0 0.4rem; }
  .swipe-hint i { color: var(--primary-dark); animation: swipeNudge 2.4s ease-in-out infinite; }
  @keyframes swipeNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
  .swipe-track {
    display: flex; gap: 0.9rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 1.2rem var(--container-padding) 1.6rem; margin: -0.6rem calc(-1 * var(--container-padding)) -0.6rem;
  }
  .swipe-track::-webkit-scrollbar { display: none; }
  .swipe-track > * { flex: 0 0 82%; max-width: 82%; scroll-snap-align: center; scroll-snap-stop: always; opacity: 0.75; transform: scale(0.95); transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease; }
  .swipe-track > .swipe-active { opacity: 1; transform: scale(1) translateY(-4px); }
  .swipe-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.2rem; }
  .swipe-dots span { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); transition: background 0.2s, transform 0.2s; }
  .swipe-dots span.active { background: var(--pink); transform: scale(1.2); }
}

/* ---------- Aventuras ---------- */
.games-grid { display: grid; gap: 1.5rem; }
.game-card { display: grid; grid-template-columns: 104px 1fr; gap: 0.9rem 1rem; align-items: start; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); padding: 1rem; }
.game-card-img img { width: 100%; border: 2px solid var(--ink); border-radius: var(--radius-sm); transform: rotate(-2deg); }
.game-card-head h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 0.3rem; }
.game-story { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.55; }
.game-spoiler { font-size: 0.9rem; font-weight: 600; font-style: italic; color: var(--primary-dark); margin-top: 0.35rem; }
.game-card-more { grid-column: 1 / -1; }
.game-info-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0.9rem 0 0.4rem; }
.game-info-tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--ink); background: var(--mint); border-radius: 999px; padding: 0.25rem 0.7rem; }
.game-info-tag i { color: var(--primary-dark); }
.game-note { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.game-ctas .btn { width: 100%; }
/* historia completa: plegada, pero en el HTML */
.story { margin-top: 0.2rem; }
.story summary { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.story summary::-webkit-details-marker { display: none; }
.story summary .fa-chevron-down { font-size: 0.7rem; transition: transform 0.3s; }
.story[open] summary { background: var(--ink); color: var(--white); }
.story[open] summary .fa-chevron-down { transform: rotate(180deg); }
.story-body { padding: 0.9rem 0 0.2rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.story-body p + p { margin-top: 0.55rem; }
.story-body .story-big { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.story-body .story-shout { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.3; color: var(--primary-dark); text-align: center; margin: 0.8rem 0; }
.story-body .story-shout.is-pink { color: var(--pink); }
.story-body .story-end { font-family: var(--font-heading); font-size: 1.1rem; color: var(--ink); text-align: center; }
.story-body .hl-pink { color: var(--pink); font-weight: 700; }
.story-body .hl-teal { color: var(--primary-dark); font-weight: 700; }
.calendar-note { display: flex; gap: 0.55rem; align-items: flex-start; max-width: 42rem; margin: 1.75rem auto 0; font-size: 0.9rem; color: var(--text-secondary); }
.calendar-note i { flex-shrink: 0; margin-top: 0.3rem; color: var(--primary-dark); }
@media (min-width: 601px) {
  .game-card { grid-template-columns: 170px 1fr; gap: 0.5rem 1.5rem; padding: 1.4rem; }
  .game-card-img { grid-row: 1 / span 2; }
  .game-card-more { grid-column: 2; }
  .game-ctas .btn { width: auto; }
}
@media (min-width: 901px) {
  /* las dos a la misma altura: el hueco sobrante queda bajo el gancho y lo demás se alinea abajo */
  .games-grid { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
  .game-card { grid-template-columns: 150px 1fr; grid-template-rows: 1fr auto; }
  /* con una historia abierta, cada tarjeta recupera su alto */
  .games-grid:has(.story[open]) { align-items: start; }
}
/* tarjeta corta, sin historia ni botón (escuelas): en tablet, cartel más pequeño para que no quede hueco */
@media (min-width: 601px) and (max-width: 900px) { .game-card.is-brief { grid-template-columns: 120px 1fr; align-items: center; } }

/* ---------- Precios ---------- */
.price-layout { display: grid; gap: 1.5rem; max-width: 60rem; margin: 0 auto; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; }
.price-table caption { caption-side: bottom; padding: 0.75rem 0.25rem 0; font-size: 0.9rem; color: var(--text-secondary); text-align: left; }
.price-table th, .price-table td { padding: 0.75rem 1rem; text-align: left; vertical-align: middle; }
.price-table thead tr { background: var(--ink); }
.price-table thead th { background: var(--ink); color: var(--white); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.price-table tbody th { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) { .price-table th, .price-table td { padding-left: 0.7rem; padding-right: 0.7rem; } }
.price-table tbody tr + tr > * { border-top: 1px solid rgba(26, 26, 46, 0.14); }
.price-table .p-unit { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.price-table .p-total { font-size: 1rem; color: var(--text-secondary); white-space: nowrap; }
.price-table tbody tr:last-child .p-unit { color: var(--primary-dark); }
.price-side { background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); padding: 1.4rem 1.3rem 1.5rem; }
.price-side h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.check-list li { position: relative; padding: 0.2rem 0 0.2rem 1.8rem; font-size: 1rem; color: var(--ink); }
.check-list li i { position: absolute; left: 0; top: 0.5rem; color: var(--primary-dark); }
.price-side hr { border: 0; border-top: 1px solid rgba(26, 26, 46, 0.14); margin: 1rem 0; }
.price-side p { font-size: 0.95rem; color: var(--text-secondary); }
.price-side p + p { margin-top: 0.5rem; }
.price-side strong { color: var(--ink); }
.price-side .btn { width: 100%; margin-top: 1.2rem; padding-left: 0.8rem; padding-right: 0.8rem; }
.price-side .price-help { font-size: 0.9rem; text-align: center; margin-top: 0.9rem; }
.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 601px) {
  .price-layout { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 1.75rem; }
  /* Páginas de ciudad (tabla más ancha): mismas proporciones, pero si las dos columnas no caben la segunda baja en vez de salirse */
  .price-layout:has(> div:first-child) { display: flex; flex-wrap: wrap; align-items: flex-start; }
  .price-layout:has(> div:first-child) > * { flex: 95 1 3rem; }
  .price-layout:has(> div:first-child) > :first-child { flex-grow: 105; }
}
@media (min-width: 901px) {
  .price-layout { gap: 2.5rem; }
  .price-layout:has(> div:first-child) { display: grid; }
  .price-table th, .price-table td { padding: 0.85rem 1.4rem; }
  .price-side { padding: 1.75rem 1.75rem 1.9rem; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq-layout { display: grid; gap: 1.5rem; max-width: 62rem; margin: 0 auto; }
.faq-left { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 1rem; }
.faq-emoti-combo { position: relative; width: 100%; aspect-ratio: 289.29 / 390.35; }
.faq-emoti-body { position: absolute; left: 0; bottom: 0; width: 73%; filter: drop-shadow(3px 4px 0 rgba(26, 26, 46, 0.18)); }
.faq-emoti-bubble { position: absolute; right: 0; top: 0; width: 56%; animation: bubbleFloat 3s ease-in-out infinite; }
@keyframes bubbleFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.04); } }
.faq-left-text .section-title { margin-bottom: 0; }
/* título largo (escuelas): un punto más pequeño para que no ocupe media pantalla */
.section-title.is-small { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.faq-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--mint); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop-sm); overflow: hidden; }
.faq-item.active { background: var(--white); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.85rem 1.1rem; text-align: left; font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.faq-icon { flex-shrink: 0; font-size: 0.85rem; color: var(--primary-dark); transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding: 0 1.1rem 1.1rem; font-size: 0.97rem; color: var(--text-secondary); line-height: 1.65; }
.faq-answer strong { color: var(--ink); }
.faq-answer a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 601px) {
  .faq-left { grid-template-columns: 120px 1fr; gap: 1.5rem; max-width: 30rem; margin: 0 auto; }
}
@media (min-width: 901px) {
  .faq-layout { grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
  .faq-left { position: sticky; top: calc(var(--nav-height) + 2rem); display: block; text-align: center; max-width: none; }
  .faq-emoti-combo { width: 70%; max-width: 210px; margin: 0 auto 1.2rem; }
}

/* ============================================================
   Componentes de las páginas de ciudad
   ============================================================ */

/* ---------- Hero: valoración y dirección ---------- */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.hero-meta i { margin-right: 0.3rem; }
.rating-badge { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.9rem; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; }
.rating-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.stars { color: #FBBC04; letter-spacing: 0.04em; }
@media (min-width: 601px) {
  .hero-meta { justify-content: flex-start; }
}

/* ---------- Dos formas de jugar ---------- */
.ways { display: grid; gap: 1.5rem; max-width: 60rem; margin: 0 auto; }
.way-card { display: flex; flex-direction: column; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; scroll-margin-top: calc(var(--nav-height) + 1rem); }
.way-img { border-bottom: var(--line); }
.way-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 30%; }
.way-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.25rem 1.4rem; }
.way-kicker { align-self: flex-start; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--primary-light); border: 2px solid var(--ink); border-radius: 999px; padding: 0.2rem 0.75rem; margin-bottom: 0.7rem; }
.way-body h3 { font-size: 1.5rem; line-height: 1.15; color: var(--ink); margin-bottom: 0.4rem; }
.way-body p { font-size: 0.97rem; color: var(--text-secondary); line-height: 1.6; }
.way-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0.9rem 0 1.2rem; }
.way-body .btn { margin-top: auto; }
@media (min-width: 601px) {
  .ways { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .way-img img { aspect-ratio: 16 / 10; }
}

/* ---------- Reseñas: una cada vez, sin cajas ---------- */
.reviews-rating { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.2rem 0.45rem; font-weight: 700; color: var(--ink); margin-bottom: 0.7rem; }
/* ciudades con dos locales: la nota de cada uno enlaza a su ficha de Google */
.reviews-rating a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.quotes { max-width: 46rem; margin: 0 auto; text-align: center; }
.quotes-track { display: flex; align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quotes-track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 0 0.25rem; }
.quote::before { content: '\201C'; display: block; height: 2.6rem; font-family: var(--font-heading); font-size: 5rem; line-height: 1; color: var(--pink); }
.quote p { font-size: clamp(1.12rem, 2.6vw, 1.45rem); font-weight: 500; line-height: 1.55; color: var(--ink); }
.quote mark { background: linear-gradient(transparent 58%, var(--primary-light) 58%); color: inherit; font-weight: 700; }
.quote footer { margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.quote footer strong { display: block; font-size: 1rem; color: var(--ink); }
.quotes-nav { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 1.25rem; }
.quotes-nav button { flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink); border: var(--line); border-radius: 50%; box-shadow: var(--pop-sm); font-size: 0.9rem; }
.quotes-nav button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.quotes-dots { display: flex; gap: 0.5rem; }
.quotes-dots span { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); transition: background 0.2s, transform 0.2s; }
.quotes-dots span.active { background: var(--pink); transform: scale(1.2); }
/* notas que dejan los niños: papeles pegados con celo, no tarjetas */
.notes { display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 1rem var(--container-padding) 1rem; margin: 0 calc(-1 * var(--container-padding)); }
.notes::-webkit-scrollbar { display: none; }
.notes figure { position: relative; flex: 0 0 44%; scroll-snap-align: center; }
.notes figure:nth-child(odd) { transform: rotate(-2deg); }
.notes figure:nth-child(even) { transform: rotate(1.5deg); }
.notes figure::before { content: ''; position: absolute; z-index: 1; top: -9px; left: 50%; width: 38%; height: 18px; transform: translateX(-50%) rotate(-3deg); background: var(--primary-light); opacity: 0.85; }
.notes img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; box-shadow: 3px 4px 0 rgba(26, 26, 46, 0.18); }
@media (min-width: 601px) {
  .notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; overflow: visible; max-width: 52rem; margin: 0 auto; padding: 0.6rem 0 0; }
}

/* ---------- Roompleaños: qué incluye, vídeo y extras ---------- */
.sub-head { text-align: center; max-width: 40rem; margin: clamp(2.5rem, 6vw, 3.5rem) auto 1.25rem; }
.section-header + .sub-head { margin-top: 0; }
.sub-head .eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 0.3rem; }
.sub-head h3 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); line-height: 1.2; color: var(--ink); }
.sub-head p:not(.eyebrow) { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.3rem; }
.fact-line { text-align: center; font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.5rem auto 0; }
.fact-line i { color: var(--primary-dark); margin-right: 0.3rem; }
.video-frame { max-width: 31.25rem; margin: 2rem auto 0; aspect-ratio: 16 / 9; border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; background: var(--ink); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-lite { position: relative; display: block; width: 100%; height: 100%; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; }
.yt-lite span { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); background: var(--white); border: var(--line); border-radius: 50%; box-shadow: var(--pop-sm); }
.yt-lite span::after { content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink); }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 34rem; margin: 0 auto; }
.extra-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; }
.extra-img { border-bottom: var(--line); }
.extra-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.extra-body { padding: 0.9rem 1rem 1.1rem; }
/* la etiqueta va sobre la foto, arriba a la derecha */
.extra-badge { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 1; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--primary-light); border: 2px solid var(--ink); border-radius: 999px; padding: 0.15rem 0.6rem; }
.extra-badge.is-best { background: var(--pink); }
.extra-body h4 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.35rem; }
.extra-body li { position: relative; padding-left: 1.4rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }
.extra-body li i { position: absolute; left: 0; top: 0.3rem; font-size: 0.8rem; color: var(--primary-dark); }
.extra-price { margin-top: 0.6rem; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.extra-price small { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }
/* aclaración dentro del título de un extra («solo en El Gato») y enlace a la carta */
.extra-body h4 small { display: block; margin-top: 0.1rem; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.extra-link { margin-top: 0.35rem; font-size: 0.875rem; }

/* Sticker con juego (ciudades que lo tienen): quinta tarjeta de «¿Qué incluye?».
   En móvil es una diapositiva más; en tablet, una tarjeta más de la lista; en ordenador, una tarjeta ancha bajo las cuatro. */
.fam-card.is-sticker .fam-card-img { background: var(--mint); }
.fam-card.is-sticker .fam-card-img img { object-fit: contain; object-position: center; }
@media (min-width: 601px) {
  .fam-cards.is-4 .fam-card.is-sticker { grid-column: 1 / -1; justify-self: center; flex-direction: row; width: 100%; max-width: 44rem; margin-top: 0.5rem; }
  .fam-cards.is-4 .is-sticker .fam-card-img { flex: 0 0 12.5rem; border-bottom: 0; border-right: var(--line); }
  .fam-cards.is-4 .is-sticker .fam-card-body { align-self: center; padding: 1.25rem 1.6rem 1.25rem 2.3rem; }
  .fam-cards.is-4 .is-sticker .fam-card-icon { right: -1.4rem; bottom: auto; top: 50%; transform: translateY(-50%); }
}
/* Extras en móvil: carrusel, para que no queden uno debajo de otro */
@media (max-width: 600px) {
  .extras.swipe-track { display: flex; max-width: none; margin: -0.6rem calc(-1 * var(--container-padding)) -0.6rem; }
}
.section-actions { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 2rem; }
.section-actions > span { display: block; width: 100%; max-width: 26rem; }
.section-actions .btn { width: 100%; max-width: 26rem; }
@media (min-width: 601px) {
  /* «¿Qué incluye?» en tablet: de dos en dos, con la foto arriba */
  .fam-cards.is-4 { grid-template-columns: 1fr 1fr; max-width: 38rem; margin-left: auto; margin-right: auto; }
  .fam-cards.is-4 .fam-card { flex-direction: column; }
  .fam-cards.is-4 .fam-card-img { flex: none; border-right: 0; border-bottom: var(--line); }
  .fam-cards.is-4 .fam-card-img img { aspect-ratio: 1 / 1; min-height: 0; max-height: none; }
  .fam-cards.is-4 .fam-card-body { align-self: stretch; padding: 1.5rem 1.25rem 1.3rem; }
  .fam-cards.is-4 .fam-card-icon { right: 1rem; bottom: -1.4rem; top: auto; transform: none; }
  .section-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .section-actions > span, .section-actions .btn { width: auto; }
}
@media (min-width: 901px) {
  .fam-cards.is-4 { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: none; }
  .extras.is-4 { grid-template-columns: repeat(4, 1fr); max-width: 64rem; }
  .fam-cards.is-4 .fam-card:nth-child(3) { transform: none; }
  .fam-cards.is-4 .fam-card:nth-child(4) { transform: rotate(1.2deg); }
}

/* ---------- Aventuras: acciones secundarias y test ---------- */
.game-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.btn-text { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.4rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.test-cta { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 2rem; }
.test-cta img { width: 64px; height: auto; flex-shrink: 0; }

/* ---------- Precios: nota, promociones y calculadora ---------- */
.price-note { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 0.9rem; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.price-note i { flex-shrink: 0; margin-top: 0.3rem; color: var(--primary-dark); }
.promo-block { max-width: 60rem; margin: 2.5rem auto 0; scroll-margin-top: calc(var(--nav-height) + 1rem); }
.promo-block h3 { font-size: 1.35rem; color: var(--ink); text-align: center; margin-bottom: 0.9rem; }
.promo-list { display: grid; gap: 0.75rem; }
.promo { background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop-sm); }
.promo summary { display: flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0.6rem 1rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.promo summary::-webkit-details-marker { display: none; }
.promo summary i:first-child { width: 1.2rem; text-align: center; color: var(--primary-dark); }
.promo summary .fa-plus { margin-left: auto; font-size: 0.8rem; transition: transform 0.3s; }
.promo[open] summary .fa-plus { transform: rotate(45deg); }
.promo p { padding: 0 1rem 1rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.promo strong { color: var(--ink); }
.promo-code { background: var(--primary-light); border-radius: 4px; padding: 0 0.35rem; }
/* Una sola promoción (Mataró): a la vista, sin desplegable */
.promo-list.is-1 { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; }
.promo p.promo-name { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem 0.3rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.promo-name i { width: 1.2rem; text-align: center; color: var(--primary-dark); }
.calc-fold { max-width: 30rem; margin: 2rem auto 0; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop-sm); scroll-margin-top: calc(var(--nav-height) + 1rem); }
.calc-fold > summary { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 56px; padding: 0.6rem 1rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.calc-fold > summary::-webkit-details-marker { display: none; }
.calc-fold > summary .fa-chevron-down { font-size: 0.75rem; transition: transform 0.3s; }
.calc-fold[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.calc-container { padding: 0.25rem 1.2rem 1.4rem; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.calc-row > label, .calc-checkbox { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.calc-row > label i { margin-right: 0.4rem; color: var(--primary-dark); }
.calc-stepper { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.calc-stepper-btn { width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; }
.calc-stepper-val { min-width: 2ch; text-align: center; font-family: var(--font-heading); font-size: 1.4rem; color: var(--ink); }
.calc-group { border-top: 1px solid rgba(26, 26, 46, 0.14); margin-top: 0.6rem; padding-top: 0.8rem; }
.calc-group-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
.calc-checkbox { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; cursor: pointer; }
.calc-checkbox input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--primary-dark); }
.calc-btn { margin-top: 1rem; }
.calc-result { display: none; margin-top: 1rem; padding: 1rem; text-align: center; background: var(--mint); border: var(--line); border-radius: var(--radius); }
.calc-result.visible { display: block; }
.calc-total { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1.1; color: var(--ink); }
.calc-per-player { font-size: 0.95rem; color: var(--text-secondary); }
.calc-savings { font-weight: 700; color: var(--primary-dark); margin-top: 0.2rem; }
@media (min-width: 901px) {
  .promo-list { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ---------- Cierre de las dudas ---------- */
.faq-cta { text-align: center; margin-top: 2.5rem; }
.faq-cta p { font-family: var(--font-heading); font-size: 1.4rem; color: var(--ink); margin-bottom: 0.8rem; }
.faq-cta .btn { width: 100%; max-width: 26rem; }
@media (min-width: 601px) { .faq-cta .btn { width: auto; } }

/* ---------- Tira de fotos de grupos ---------- */
.photo-wall { display: flex; gap: 0.9rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0.5rem var(--container-padding) 1rem; margin: 0 calc(-1 * var(--container-padding)); }
.photo-wall::-webkit-scrollbar { display: none; }
.photo-wall figure { flex: 0 0 46%; text-align: center; scroll-snap-align: center; }
.photo-wall figure:nth-child(odd) { transform: rotate(-2deg); }
.photo-wall figure:nth-child(even) { transform: rotate(2deg); }
.photo-wall img { width: 100%; height: auto; filter: drop-shadow(3px 4px 0 var(--ink)); }
.photo-wall figcaption { font-family: var(--font-heading); font-size: 1.05rem; color: var(--ink); margin-top: 0.2rem; }
@media (min-width: 601px) {
  .photo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; overflow: visible; padding: 0; margin: 0 auto; max-width: 62rem; }
}

/* ---------- Ventanas: invitaciones y test ---------- */
.invitation-popup, .test-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(26, 26, 46, 0.6); }
.invitation-popup.open, .test-modal.open { display: flex; }
.invitation-popup-body, .test-body { position: relative; width: 100%; max-width: 34rem; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink); padding: 1.6rem 1.25rem 1.5rem; text-align: center; }
.invitation-popup-close, .test-close { position: absolute; top: 0.3rem; right: 0.3rem; width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; }
.invitation-popup-body h3 { font-size: 1.5rem; color: var(--ink); }
.invitation-popup-body > p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1rem; }
.invitation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; }
.invitation-option img { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.invitation-option h4 { font-size: 1.15rem; color: var(--ink); margin: 0.5rem 0; }
.invitation-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.invitation-links a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.9rem; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-size: 0.875rem; font-weight: 700; }
.test-progress { height: 10px; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 1.8rem 0 1.2rem; }
.test-progress-fill { height: 100%; background: var(--primary); transition: width 0.3s ease; }
.test-question { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.3; color: var(--ink); margin-bottom: 1rem; }
.test-answer { display: block; width: 100%; min-height: 52px; margin-top: 0.6rem; padding: 0.7rem 1rem; background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop-sm); font-family: var(--font-body); font-size: 0.97rem; font-weight: 600; text-align: left; cursor: pointer; }
.test-result-box h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 0.5rem; }
.test-result-box p { color: var(--text-secondary); }

/* ============================================================
   Componentes de la portada
   ============================================================ */

/* ---------- Entrada: el emoti de la puerta en lugar de foto ---------- */
.hero-photo.is-emoti { display: flex; justify-content: center; }
.hero-photo.is-emoti > img:first-child { width: min(52%, 12rem); height: auto; filter: drop-shadow(5px 6px 0 rgba(26, 26, 46, 0.25)); }
.hero-photo.is-emoti .hero-star-1 { right: 14%; }
.hero-photo.is-emoti .hero-star-2 { left: 12%; }
@media (min-width: 601px) { .hero-photo.is-emoti > img:first-child { width: min(72%, 19rem); } }

/* ---------- Ciudades: cada una ofrece las dos formas de jugar ---------- */
.cities { display: grid; gap: 1.5rem; max-width: 26rem; margin: 0 auto; }
.city-card { display: flex; flex-direction: column; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; scroll-margin-top: calc(var(--nav-height) + 1rem); }
.city-img { border-bottom: var(--line); }
.city-img img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.city-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.3rem; }
.city-body h3 { font-size: 1.6rem; color: var(--ink); }
.city-body p { font-size: 0.95rem; color: var(--text-secondary); margin: 0.15rem 0 1rem; }
.city-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.6rem; margin-top: auto; }
.city-actions .btn { padding-left: 0.4rem; padding-right: 0.4rem; font-size: 0.85rem; }
.city-choice { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.city-choice-note { margin-top: 0.4rem; font-size: 0.95rem; color: var(--text-secondary); }
.cities-emoti { display: block; width: 6.5rem; height: auto; margin: 0 auto 0.75rem; filter: drop-shadow(4px 5px 0 rgba(26, 26, 46, 0.25)); }
@media (min-width: 901px) { .cities-emoti { width: 8rem; } }
@media (min-width: 601px) {
  .cities { max-width: 40rem; }
  .city-card { flex-direction: row; }
  .city-img { flex: 0 0 40%; border-bottom: 0; border-right: var(--line); }
  .city-img img { aspect-ratio: auto; min-height: 170px; max-height: 210px; }
  .city-body { justify-content: center; padding: 1.25rem 1.5rem; }
  .city-actions { margin-top: 0; }
}
@media (min-width: 901px) {
  .cities { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 1.5rem; }
  .city-card { flex-direction: column; }
  .city-img { flex: none; border-right: 0; border-bottom: var(--line); }
  .city-img img { aspect-ratio: 16 / 10; min-height: 0; max-height: none; }
  .city-body { justify-content: flex-start; padding: 1.1rem 1.25rem 1.3rem; }
  .city-actions { margin-top: auto; }
}

/* ---------- No es solo un juego ---------- */
.why { display: grid; gap: 1.75rem; max-width: 60rem; margin: 0 auto; }
.why-head { text-align: center; }
.why-emoti { position: relative; width: 12.5rem; aspect-ratio: 1180 / 985; margin: 0 auto 1rem; }
.why-emoti img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* el emoti mira a los lados de vez en cuando (segunda capa: los ojos) */
.why-eyes { opacity: 0; animation: eyesLook 8s ease-in-out infinite; }
@keyframes eyesLook { 0%, 18% { opacity: 0; } 20%, 28% { opacity: 1; } 31%, 58% { opacity: 0; } 60%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .why-eyes { animation: none; } }
.why-list { display: grid; gap: 0.8rem; }
.why-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.why-list i { flex: 0 0 1.3rem; margin-top: 0.3rem; text-align: center; color: var(--primary-dark); }
/* recuadro turquesa: el logo de los locales necesita su fondo turquesa para verse bien */
.why-about { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding: 1rem 1.15rem; background: var(--primary); border-radius: var(--radius); font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
.why-about .text-link { text-decoration-color: var(--ink); white-space: nowrap; }
/* el logo de los locales, en pequeño, junto a la historia */
.why-about img { flex: 0 0 5rem; width: 5rem; height: auto; }
@media (min-width: 901px) {
  .why { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
  .why-head { text-align: left; }
  .why-emoti { width: min(100%, 21rem); margin-left: 0; margin-bottom: 1.5rem; }
}

/* ---------- Cómo funciona: pasos numerados, sin cajas ---------- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; max-width: 34rem; margin: 0 auto; }
.steps li { counter-increment: step; position: relative; padding-left: 3.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--ink); border: var(--line); border-radius: 50%; box-shadow: var(--pop-sm); font-family: var(--font-heading); font-size: 1.3rem; line-height: 1; }
.steps h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 0.2rem; }
.steps p { font-size: 0.97rem; line-height: 1.6; color: var(--text-secondary); }
@media (min-width: 601px) { .steps { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; max-width: 46rem; } }
@media (min-width: 901px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: none; }
  .steps li { padding-left: 0; padding-top: 3.4rem; }
}

/* la misma lista con un icono en lugar del número (datos prácticos de escuelas) */
.steps.is-icons li::before { content: none; }
.step-icon { position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink); border: var(--line); border-radius: 50%; box-shadow: var(--pop-sm); font-size: 1rem; }
.steps strong { color: var(--ink); }

/* ---------- Texto con foto (escuelas): título, dos párrafos y una foto en marco ---------- */
.media-text { display: grid; gap: 1.5rem; max-width: 62rem; margin: 0 auto; }
.media-text-head { text-align: center; }
.media-text-head .section-title { margin-bottom: 0; }
.media-text-body { max-width: 40rem; margin: 0 auto; }
.media-text-body p { font-size: 1.02rem; line-height: 1.7; color: var(--text-secondary); }
.media-text-body p + p { margin-top: 0.9rem; }
.media-text-body strong { color: var(--ink); }
.media-text-photo { width: min(100% - 0.75rem, 26rem); margin: 0.5rem auto 0; }
.media-text-photo img { width: 100%; border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); transform: rotate(-2deg); }
@media (min-width: 901px) {
  .media-text { grid-template-columns: 0.8fr 1.2fr; grid-template-areas: 'photo head' 'photo body'; grid-template-rows: auto auto; column-gap: 3.5rem; row-gap: 1rem; align-content: center; }
  .media-text-head { grid-area: head; text-align: left; align-self: end; }
  .media-text-body { grid-area: body; margin: 0; align-self: start; }
  .media-text-photo { grid-area: photo; align-self: center; width: 100%; margin: 0; }
}

/* ---------- Tarjeta regalo ----------
   Mismo marcado, textos y enlaces que en el resto de la web; aquí solo el diseño.
   La etiqueta .rd-tag es de Navidad: se quita del HTML en enero. */
.wave-divider { overflow: hidden; line-height: 0; }
/* curvas entre secciones: on-* es el color de la sección de arriba; to-*, el de la de abajo. Con medida: no en todos los cambios de sección */
.wave-divider.on-white { background: var(--white); } .wave-divider.on-mint { background: var(--mint); } .wave-divider.on-teal { background: var(--primary); }
.wave-divider.to-white { color: var(--white); } .wave-divider.to-mint { color: var(--mint); } .wave-divider.to-teal { color: var(--primary); }
.wave-divider.on-pink { background: var(--pink); } .wave-divider.to-pink { color: var(--pink); }
.wave-divider[class*="to-"] { position: relative; margin-bottom: -1px; }
.wave-divider[class*="to-"] path { fill: currentColor; }
.wave-divider svg { display: block; width: 100%; height: 35px; }
.section-pink { background: var(--pink); overflow: hidden; }
.photo-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.photo-confetti span { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); animation: cDrift1 9s ease-in-out infinite; }
.photo-confetti span:nth-child(3n+2) { border-radius: 3px; animation-name: cDrift2; animation-duration: 10s; }
.photo-confetti span:nth-child(3n) { width: 18px; height: 18px; animation-name: cDrift3; animation-duration: 11s; }
.photo-confetti .c1 { top: 10%; left: 5%; } .photo-confetti .c2 { top: 65%; left: 20%; animation-delay: 1s; } .photo-confetti .c3 { top: 40%; left: 50%; animation-delay: 2s; }
.photo-confetti .c4 { top: 75%; left: 80%; animation-delay: 3s; } .photo-confetti .c5 { top: 20%; left: 92%; animation-delay: 0.5s; } .photo-confetti .c6 { top: 30%; left: 12%; animation-delay: 1.5s; }
.photo-confetti .c7 { top: 55%; left: 40%; animation-delay: 2.5s; } .photo-confetti .c8 { top: 15%; left: 65%; animation-delay: 4s; } .photo-confetti .c9 { top: 70%; left: 55%; animation-delay: 0.8s; }
.photo-confetti .c10 { top: 8%; left: 35%; animation-delay: 3.5s; } .photo-confetti .c11 { top: 50%; left: 3%; animation-delay: 2s; } .photo-confetti .c12 { top: 80%; left: 45%; animation-delay: 4.5s; }
.photo-confetti .c13 { top: 25%; left: 78%; animation-delay: 1.2s; } .photo-confetti .c14 { top: 60%; left: 90%; animation-delay: 3s; } .photo-confetti .c15 { top: 35%; left: 25%; animation-delay: 5s; }
@keyframes cDrift1 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(25px, -18px) rotate(120deg); } 66% { transform: translate(-18px, 22px) rotate(240deg); } }
@keyframes cDrift2 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(-22px, 20px) rotate(-130deg); } 66% { transform: translate(20px, -15px) rotate(-260deg); } }
@keyframes cDrift3 { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(18px, 25px) rotate(100deg); } 66% { transform: translate(-25px, -12px) rotate(200deg); } }
.rg-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.rg-head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); margin-bottom: 0.75rem; }
.rg-h2b { display: inline-block; font-size: 0.62em; line-height: 1.25; margin-top: 0.35em; color: var(--ink); text-shadow: none; }
.rg-head p { font-size: clamp(1rem, 2vw, 1.08rem); font-weight: 500; color: var(--ink); }
.rd-card { display: flex; flex-direction: column; align-items: center; max-width: 56rem; margin: 1.75rem auto 0; padding: 1.4rem 1.2rem 1.5rem; background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); }
/* en móvil: etiqueta, pantallas del juego y después los pasos */
.rd-body { display: contents; }
.rd-tag { order: -1; margin-bottom: 1.2rem; display: inline-block; background: var(--ink); color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.8rem; border-radius: 999px; }
.rd-phone { position: relative; width: 150px; aspect-ratio: 390 / 760; margin-bottom: 1.4rem; border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: var(--pop); transform: rotate(-3deg); }
.rd-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: rdShow 15s infinite; }
.rd-phone img:nth-child(1) { opacity: 1; animation-name: rdFirst; }
.rd-phone img:nth-child(2) { animation-delay: 3s; }
.rd-phone img:nth-child(3) { animation-delay: 6s; }
.rd-phone img:nth-child(4) { animation-delay: 9s; }
.rd-phone img:nth-child(5) { animation-delay: 12s; }
@keyframes rdShow { 0% { opacity: 0; } 3%, 20% { opacity: 1; } 23%, 100% { opacity: 0; } }
@keyframes rdFirst { 0%, 20% { opacity: 1; } 23%, 97% { opacity: 0; } 100% { opacity: 1; } }
.rg-steps { counter-reset: rg; width: 100%; text-align: left; }
.rg-steps li { counter-increment: rg; position: relative; padding: 0 0 1rem 2.9rem; font-size: 0.95rem; line-height: 1.55; color: var(--text-secondary); }
.rg-steps li:last-child { padding-bottom: 0; }
.rg-steps li::before { content: counter(rg); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; background: var(--pink); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; font-family: var(--font-heading); font-size: 1.05rem; line-height: 1; }
.rg-steps li:not(:last-child)::after { content: ''; position: absolute; left: calc(1rem - 1px); top: 2.15rem; bottom: 0.15rem; width: 2px; background: var(--ink); opacity: 0.15; }
.rg-steps strong { display: block; font-size: 1.02rem; color: var(--ink); }
/* dentro de los pasos, las acciones son enlaces subrayados (no botones) */
.rg-link { display: flex; width: fit-content; align-items: center; gap: 0.45em; min-height: 44px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.rg-link i { color: var(--pink); }
.rg-link span { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rg-redeem { display: flex; flex-direction: column; gap: 1rem; width: 100%; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 2px solid var(--mint); text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.rg-redeem > div { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
/* comprar es la acción del bloque (turquesa); canjear, de apoyo. El rosa sigue siendo solo para reservar */
.rg-redeem .btn { border: var(--line); box-shadow: var(--pop-sm); color: var(--ink); background: var(--white); }
.rg-redeem .rg-btn1 { background: var(--primary); }
.rg-redeem .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (hover: hover) {
  .rg-redeem .btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
  .rg-link:hover span { text-decoration-thickness: 3px; }
}
@media (min-width: 601px) {
  .wave-divider svg { height: 60px; }
  .rd-card { flex-direction: row; align-items: center; gap: 2.2rem; padding: 1.8rem 2rem; }
  .rd-body { display: block; flex: 1; text-align: left; }
  .rd-tag { margin-bottom: 1rem; }
  .rd-phone { flex: 0 0 190px; width: auto; margin-bottom: 0; border-width: 7px; border-radius: 28px; }
  .rg-redeem { flex-direction: row; flex-wrap: wrap; gap: 1rem 2rem; text-align: left; }
  .rg-redeem > div { align-items: flex-start; }
}

/* ---------- Aviso de cookies ----------
   Solo cambia el aspecto (colores, letra, borde y sombra). El orden y el tamaño de los botones
   siguen en css/cookie-consent-custom.css y la lógica en js/cookie-consent.js: no se tocan. */
#cc-main {
  --cc-font-family: var(--font-body);
  --cc-bg: var(--white); --cc-primary-color: var(--ink); --cc-secondary-color: var(--text-secondary); --cc-link-color: var(--ink);
  --cc-btn-primary-bg: var(--primary); --cc-btn-primary-color: var(--ink); --cc-btn-primary-border-color: var(--ink);
  --cc-btn-primary-hover-bg: var(--primary-light); --cc-btn-primary-hover-color: var(--ink); --cc-btn-primary-hover-border-color: var(--ink);
  --cc-btn-secondary-bg: var(--white); --cc-btn-secondary-color: var(--ink); --cc-btn-secondary-border-color: var(--ink);
  --cc-btn-secondary-hover-bg: var(--mint); --cc-btn-secondary-hover-color: var(--ink); --cc-btn-secondary-hover-border-color: var(--ink);
  --cc-btn-border-radius: var(--radius-sm); --cc-modal-border-radius: var(--radius-lg);
  --cc-footer-bg: var(--mint); --cc-footer-color: var(--text-secondary); --cc-footer-border-color: var(--mint); --cc-separator-border-color: var(--mint);
  --cc-toggle-on-bg: var(--primary-dark); --cc-toggle-readonly-bg: var(--primary-light);
  --cc-cookie-category-block-bg: var(--mint); --cc-cookie-category-block-border: var(--mint);
  --cc-cookie-category-block-hover-bg: var(--mint); --cc-cookie-category-block-hover-border: var(--primary-light);
  --cc-cookie-category-expanded-block-bg: var(--white); --cc-cookie-category-expanded-block-hover-bg: var(--mint);
}
#cc-main .cm, #cc-main .pm { border: var(--line); box-shadow: var(--pop); }
#cc-main .cm__title, #cc-main .pm__title { font-family: var(--font-heading); font-weight: normal; font-size: 1.3em; }
#cc-main .cm__btn, #cc-main .pm__btn { border-width: 2px; min-height: 44px; }
#cc-main .cm__btn[data-role="all"] { min-height: 48px; }

/* ---------- Contacto ---------- */
.contact-section { background: var(--primary); }
.contact-head { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.contact-head img { width: clamp(84px, 12vw, 130px); flex-shrink: 0; filter: drop-shadow(3px 4px 0 rgba(26, 26, 46, 0.2)); animation: emotiFloat 4s ease-in-out infinite; }
.contact-head .section-title { color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); margin-bottom: 0; }
.contact-grid { display: grid; gap: 1.5rem; max-width: 60rem; margin: 0 auto; }
.contact-card, .booking-form { background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); padding: 1.3rem; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { position: relative; padding-left: 2.6rem; }
.contact-list .c-icon { position: absolute; left: 0; top: 0.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--ink); }
.contact-list h3 { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.1rem; }
/* en móviles estrechos (360) el email no cabía y ensanchaba la tarjeta: letra un punto menor y, si hace falta, corte tras la arroba */
.contact-grid > * { min-width: 0; }
.contact-list p { font-size: clamp(0.9rem, 4.2vw, 1rem); color: var(--ink); overflow-wrap: anywhere; }
.contact-list p.c-sub { font-size: 0.9rem; color: var(--text-muted); }
.contact-list a { display: inline-block; padding: 0.6rem 0; margin: -0.25rem 0; font-weight: 700; text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.form-row { display: grid; gap: 0.85rem; margin-bottom: 0.85rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.form-row .form-group { margin-bottom: 0; }
.form-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.form-input { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font-size: 1rem; color: var(--ink); background: var(--white); border: 2px solid rgba(26, 26, 46, 0.3); border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(7, 190, 184, 0.35); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success { margin-top: 0.85rem; padding: 0.8rem; background: var(--mint); border: 2px solid var(--primary-dark); border-radius: var(--radius-sm); color: var(--ink); font-size: 0.95rem; font-weight: 600; text-align: center; }
@media (min-width: 601px) {
  /* En fila mientras quepan; si no (tableta estrecha), el que no cabe baja a la línea siguiente en vez de salirse */
  .contact-list { display: flex; flex-wrap: wrap; gap: 1.25rem; }
  .contact-list li { flex: 1 1 11rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-card, .booking-form { padding: 1.6rem; }
}
@media (min-width: 901px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: start; }
  .contact-list { display: grid; grid-template-columns: 1fr; }
  .contact-card, .booking-form { padding: 1.9rem; }
}

/* ---------- Pie ---------- */
.footer { background: var(--black); color: var(--white); border-top: 3px solid var(--primary); font-family: var(--font-footer); font-size: 22px; padding: 3rem 0 calc(6.5rem + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: var(--font-logo); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.footer-logo span { color: var(--primary); }
.footer-tagline { color: rgba(255, 255, 255, 0.75); line-height: 1.4; margin-bottom: 1rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius-sm); color: var(--white); font-size: 1.1rem; transition: var(--transition); }
.footer-col h4 { font-family: var(--font-footer); font-size: 1em; color: var(--primary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-col ul { display: flex; flex-direction: column; }
.footer-col li { color: rgba(255, 255, 255, 0.8); line-height: 1.3; padding: 0.15rem 0; }
.footer-col li a { display: inline-block; padding: 0.5rem 0; }
.footer-col li i { color: var(--primary); margin-right: 0.4rem; font-size: 0.75em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-legal a { display: inline-block; padding: 0.5rem 0; }
.footer-bottom p, .footer-legal a { color: rgba(255, 255, 255, 0.7); }
@media (hover: hover) {
  .footer-socials a:hover { background: var(--primary); border-color: var(--primary); color: var(--ink); }
  .footer-col li a:hover, .footer-legal a:hover { color: var(--primary); }
}
@media (min-width: 601px) {
  .footer { padding-bottom: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 901px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Página de reserva (reserva-*.html) ----------
   Solo el calendario de Bookeo, sin distracciones: barra blanca con «Volver» e idioma,
   título, los tres pasos, el calendario y la ayuda. Sin menú, sin barra inferior y sin burbuja. */
.book-header { position: sticky; top: 0; z-index: 1000; padding-top: env(safe-area-inset-top); background: var(--white); border-bottom: var(--line); }
.book-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.book-logo { display: flex; align-items: baseline; gap: 0.4rem; min-height: 44px; padding: 0.5rem 0; font-family: var(--font-logo); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.book-logo span { color: var(--primary); margin-left: -0.4rem; }
.book-logo small { display: none; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.book-nav { display: flex; align-items: center; gap: 0.5rem; }
.book-back { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.book-lang { display: inline-flex; font-size: 0.875rem; font-weight: 700; }
.book-lang a, .book-lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; color: var(--text-muted); }
.book-lang .active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.reserva-section { min-height: 70vh; padding: 1.5rem 0 3rem; background: var(--mint); }
.reserva-section .container { max-width: min(100% - 2rem, 1400px); padding: 0; }
.book-title { text-align: center; margin-bottom: 1rem; }
.book-title h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); color: var(--ink); }
.book-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.9rem; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.book-steps li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem 0.3rem 0.35rem; background: var(--white); border-radius: 999px; }
.book-steps b { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; background: var(--primary-light); border-radius: 50%; font-size: 0.8rem; font-weight: 700; }
.book-note { max-width: 40rem; margin: 0 auto 1.25rem; text-align: center; font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
.book-note strong { color: var(--ink); }
.book-note .book-price { display: block; margin-top: 0.2rem; font-size: 0.875rem; }
.reserva-widget-card { max-width: 100%; margin: 0 auto; padding: 0.75rem; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); }
.reserva-help { margin-top: 1.75rem; text-align: center; font-size: 0.95rem; color: var(--text-secondary); }
.reserva-help .sep { display: block; height: 0.6rem; }
.reserva-help .reserva-wa { margin-top: 0.4rem; }
.reserva-help .reserva-wa i { font-size: 1.15em; color: var(--primary-dark); }
/* «clip» en lugar de «hidden»: con «hidden» la barra de arriba dejaría de quedarse fija al bajar */
.book-page { overflow-x: clip; }
.reserva-help .text-link { display: inline-block; padding: 0.6rem 0; }
.book-page .footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
@media (hover: hover) {
  .book-back:hover, .book-lang a:hover { color: var(--primary-dark); }
}
@media (min-width: 601px) {
  .book-logo small { display: inline; }
  .book-nav { gap: 1rem; }
  .reserva-section { padding: 2rem 0 4rem; }
  .reserva-widget-card { padding: 1.5rem; }
}
@media (min-width: 901px) {
  .reserva-section .container { max-width: min(90vw, 1400px); }
}

/* ---------- Portugal (Braga): piezas propias ---------- */
.partner-strip { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem var(--container-padding) 2.5rem; background: var(--white); text-align: center; }
.partner-strip img { width: 6.5rem; height: auto; }
.partner-strip p { max-width: 30rem; font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.extras.is-1 { grid-template-columns: 1fr; max-width: 20rem; }
.extras.is-1 .extra-body { text-align: center; align-items: center; }
.extra-note { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.4rem; }
.games-grid.is-1, .ways.is-1 { grid-template-columns: 1fr; max-width: 38rem; margin-left: auto; margin-right: auto; }
.way-title { font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.15; color: var(--ink); margin: 0.5rem 0 0.4rem; }
.ways.is-1 .way-body .btn { margin-top: 1rem; }
.promo .promo-small { font-size: 0.875rem; color: var(--text-muted); }
.promo s { color: var(--text-muted); }
.gift-simple { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 30rem; margin: 1.5rem auto 0; text-align: center; }
.gift-simple img { width: clamp(120px, 28vw, 180px); filter: drop-shadow(3px 4px 0 rgba(26, 26, 46, 0.2)); }
.gift-simple-actions { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 22rem; }
.gift-simple-note { font-size: 0.95rem; font-weight: 500; line-height: 1.6; color: var(--ink); }
.gift-simple-note .text-link { text-decoration-color: var(--white); }
.invitation-grid.is-1 { grid-template-columns: 1fr; max-width: 22rem; margin: 0 auto; }
@media (min-width: 601px) { .partner-strip { flex-direction: row; justify-content: center; text-align: left; gap: 1.25rem; } }

/* ============================================================
   Páginas de texto: historia, franquicia, aviso legal, blog y 404
   Conservan sus clases de siempre; aquí solo el diseño.
   ============================================================ */
.story-hero, .fran-hero, .legal-hero, .blog-hero { position: relative; overflow: hidden; background: var(--primary); text-align: center; padding: calc(var(--nav-height) + 2.5rem) var(--container-padding) 2.5rem; }
.story-hero h1, .fran-hero h1, .legal-hero h1, .blog-hero h1 { position: relative; max-width: 46rem; margin: 0 auto; font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.08; color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); }
.legal-hero p, .blog-hero p { position: relative; margin-top: 0.8rem; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.text-page .btn-secondary i, .text-page .btn-primary i { font-size: 0.9em; }

/* ---------- Historia (cómo nació EMOTION!) ---------- */
.story-hero .hero-svg { width: min(60%, 13rem); margin: 1.5rem auto 0; }
.hero-intro-text { max-width: 32rem; margin: 1.25rem auto 0; }
.hero-intro-text h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); margin-bottom: 0.4rem; }
.hero-intro-text p { font-size: 1.05rem; font-weight: 500; line-height: 1.6; color: var(--ink); }
.story-hero-photo { display: none; }
.story-section, .fran-section, .legal-section, .blog-section { position: relative; padding: var(--section-y) var(--container-padding); background: var(--white); }
.story-section-alt, .fran-section-alt { background: var(--mint); }
.story-section-pink { background: var(--pink); }
.story-section-alt + .story-section-alt { padding-top: 0; }
.story-container, .fran-container, .legal-container { max-width: 46rem; margin: 0 auto; }
.story-container h2, .fran-container h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.15; color: var(--ink); margin-bottom: 1rem; }
.story-container h2.is-next { margin-top: 2rem; }
.story-container p, .fran-container p { font-size: 1rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 1rem; }
.story-container strong, .fran-container strong { color: var(--ink); }
.story-section-pink h2 { color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); }
.story-section-pink p { color: var(--ink); font-weight: 500; }
.story-img { display: block; width: 10rem; margin: 0 auto 1rem; }
.story-img.is-sm { width: 11rem; margin-bottom: 1.5rem; }
.story-trio { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.story-trio img { width: 9rem; margin: 0 auto 0.8rem; }
.story-trio p { font-size: 0.97rem; margin-bottom: 0; }
.story-quote { max-width: min(24rem, 92%); margin: 1.5rem auto; padding: 1.1rem; text-align: center; background: var(--white); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); transform: rotate(-1.5deg); }
.story-quote img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.story-quote p { font-family: var(--font-heading); font-size: 1.2rem; color: var(--ink); margin: 0; }
.story-note { text-align: center; font-weight: 600; color: var(--ink) !important; }
.story-team-photo { display: none; }
.story-end { text-align: center; }
.story-end p { margin-bottom: 0.3rem; }
.story-end .btn { margin-top: 1rem; }
.clear { clear: both; }
@media (min-width: 601px) {
  .story-img-float-r { float: right; width: 11.5rem; margin: 0 0 1rem 1.75rem; }
  .story-img-float-l { float: left; width: 11.5rem; margin: 0 1.75rem 1rem 0; }
  .story-container > .story-img ~ p { overflow: hidden; }
  .story-trio { grid-template-columns: repeat(3, 1fr); }
  .story-team-photo { display: block; max-width: 34rem; margin: 0.5rem auto 2rem; }
  .story-team-photo img { width: 100%; border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); transform: rotate(1.5deg); }
}
@media (min-width: 901px) {
  /* en ordenador, la foto de Carla y Fede sustituye al dibujo */
  .story-hero { text-align: left; padding-bottom: 3.5rem; }
  .story-hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-areas: 'title photo' 'intro photo'; column-gap: 3.5rem; align-items: center; }
  .story-hero .story-hero-title { grid-area: title; align-self: end; }
  .story-hero h1 { margin: 0; }
  .story-hero .story-hero-draw { display: none; }
  .hero-intro-text { grid-area: intro; align-self: start; margin: 1.25rem 0 0; }
  .story-hero-photo { display: block; grid-area: photo; border: var(--line); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--ink); background: var(--white); padding: 6px; transform: rotate(2deg); }
  .story-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: left center; border-radius: 12px; }
}

/* ---------- Franquicia ---------- */
.fran-container { text-align: center; }
.fran-draw { width: min(70%, 17.5rem); margin: 0 auto 1.75rem; }
.fran-grid { display: grid; gap: 1.75rem; max-width: 34rem; margin: 2rem auto 0; text-align: left; }
.fran-card { position: relative; padding-left: 3.5rem; }
.fran-card > i { position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink); border: var(--line); border-radius: 50%; box-shadow: var(--pop-sm); font-size: 1rem; }
.fran-card h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 0.2rem; }
.fran-card p { font-size: 0.97rem; line-height: 1.6; margin: 0; }
.fran-form { max-width: 38rem; margin: 0 auto; }
.fran-pitch { text-align: center; margin-bottom: 1.5rem; color: var(--ink); }
.fran-pitch p { font-size: 1rem; }
.fran-pitch p + p { margin-top: 0.4rem; }
@media (min-width: 901px) {
  .fran-section-alt .fran-container { max-width: 62rem; }
  .fran-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: none; }
  .fran-card { padding-left: 0; padding-top: 3.4rem; }
}

/* ---------- Aviso legal ---------- */
.legal-container h2 { font-size: 1.5rem; color: var(--ink); margin: 2.5rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--primary-light); }
.legal-container h2:first-child { margin-top: 0; }
.legal-container p { font-size: 0.97rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 0.7rem; }
.legal-container ul { list-style: disc; padding-left: 1.4rem; margin: 0.5rem 0 1rem; }
.legal-container li { font-size: 0.97rem; line-height: 1.7; color: var(--text-secondary); padding: 0.15rem 0; }
.legal-container a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-contact { margin-top: 3rem; padding-top: 2rem; text-align: center; border-top: 2px solid var(--primary-light); }
.legal-contact a { display: inline-block; padding: 0.6rem 0; }

/* ---------- Portada del blog ---------- */
.blog-grid { display: grid; gap: 1.1rem; max-width: 62rem; margin: 0 auto; }
.blog-card { display: grid; grid-template-columns: 7rem 1fr; align-items: stretch; background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; }
.blog-card img { width: 100%; height: 100%; min-height: 6.5rem; object-fit: cover; border-right: var(--line); }
.blog-card img[src$=".svg"] { object-fit: contain; padding: 0.6rem; background: var(--mint); }
.blog-card-body { display: flex; align-items: center; padding: 0.9rem 1rem; }
.blog-card-body h2 { font-size: 1.15rem; line-height: 1.25; color: var(--ink); }
@media (min-width: 601px) {
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .blog-card { display: flex; flex-direction: column; }
  .blog-card img { height: auto; aspect-ratio: 4 / 3; border-right: 0; border-bottom: var(--line); }
  .blog-card-body { align-items: flex-start; padding: 1.1rem 1.2rem 1.3rem; }
}
@media (min-width: 901px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (hover: hover) { .blog-card { transition: transform 0.2s ease, box-shadow 0.2s ease; } .blog-card:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); } }

/* Portugal: los artículos se abren en un panel bajo las tarjetas */
div.blog-card { cursor: pointer; }
.blog-card.active { background: var(--mint); }
.blog-panel { max-height: 0; overflow: hidden; background: var(--mint); transition: max-height 0.5s ease; }
.blog-panel.open { max-height: 6000px; }
.blog-panel-inner { position: relative; max-width: 46rem; margin: 0 auto; padding: 2rem var(--container-padding) 2.5rem; }
.blog-panel-inner h3 { font-size: 1.3rem; line-height: 1.25; color: var(--ink); margin: 1.6rem 0 0.5rem; }
.blog-panel-inner p, .blog-panel-inner li { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }
.blog-panel-inner p { margin-bottom: 0.7rem; }
.blog-panel-inner strong { color: var(--ink); }
.blog-panel-inner ul { list-style: disc; padding-left: 1.4rem; margin: 0.5rem 0 1rem; }
.blog-panel-inner a:not(.btn) { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.blog-panel-close { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-bottom: 1rem; padding: 0.5rem 1.1rem; background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop-sm); font-family: var(--font-body, 'Poppins', sans-serif); font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.blog-panel .panel-date { font-size: 0.875rem; color: var(--text-muted); }
.panel-cta { margin-top: 2rem; padding-top: 1.5rem; text-align: center; border-top: 2px solid var(--primary-light); }
.panel-cta-title { font-family: var(--font-heading); font-size: 1.35rem !important; line-height: 1.2 !important; color: var(--ink) !important; margin-bottom: 0.8rem; }
.panel-cta .city-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.panel-cta .cta-note { margin: 1rem 0 0; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .blog-panel { transition: none; } }

/* ---------- Artículos del blog ---------- */
.article-hero { position: relative; overflow: hidden; background: var(--primary); text-align: center; padding: calc(var(--nav-height) + 2rem) var(--container-padding) 2.25rem; }
.article-hero .container { position: relative; z-index: 1; max-width: 50rem; }
.article-hero .breadcrumb { font-size: 0.875rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.article-hero .breadcrumb a { display: inline-block; min-width: 44px; padding: 0.75rem 0.3rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--white); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-hero h1 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); line-height: 1.12; color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); margin: 0 0 1rem; }
.article-hero .article-meta { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.article-hero .article-meta i { margin-right: 0.3rem; }
.article-hero + .wave-divider { margin-bottom: 0; }
.article-body { position: relative; max-width: 46rem; margin: 0 auto; padding: 2.5rem var(--container-padding) 2rem; }
.article-intro { font-size: 1.1rem !important; font-weight: 500; line-height: 1.7; color: var(--ink) !important; margin-bottom: 1.5rem; }
.article-body h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.2; color: var(--ink); margin: 2.5rem 0 0.8rem; }
.article-body h2 span { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 0.12em; text-underline-offset: 0.14em; }
.article-body h3 { font-size: 1.3rem; line-height: 1.25; color: var(--ink); margin: 1.8rem 0 0.5rem; }
.article-body p { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 0.9rem; }
.article-body strong { color: var(--ink); }
.article-body a, .article-cta p a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0.5rem 0 1rem; padding-left: 1.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.4rem; }
.article-body .callout { background: var(--mint); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop-sm); padding: 1rem 1.1rem; margin: 1.75rem 0; }
.article-body .callout p { color: var(--ink); margin-bottom: 0; }
.article-body .pros-cons { display: grid; gap: 0.8rem; margin: 0.8rem 0 1.4rem; }
.article-body .pros-cons div { background: var(--mint); border-radius: var(--radius-sm); padding: 0.8rem 1rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
.article-body .pros-cons strong { display: block; margin-bottom: 0.2rem; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.article-body .pros-cons .pro strong { color: #0b6b3e; }
.article-body .pros-cons .con strong { color: #b03050; }
.article-body figure { margin: 1.75rem 0; }
.article-body figure img { display: block; width: 100%; height: auto; border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); }
.article-body figcaption { margin-top: 0.7rem; font-size: 0.875rem; text-align: center; color: var(--text-muted); }
.article-body .fig-row { display: grid; gap: 1rem; align-items: start; }
.article-body .article-video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0 2rem; border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); overflow: hidden; }
.article-body .article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-lite img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-lite span { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #f00; border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform 0.2s; }
.yt-lite span::after { content: ""; position: absolute; left: 27px; top: 13px; border: 11px solid transparent; border-left: 18px solid #fff; border-right: 0; }
.article-cta { max-width: calc(46rem - 2 * var(--container-padding)); margin: 1rem auto 2.5rem; padding: 1.5rem 1.1rem; text-align: center; background: var(--mint); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop); }
.article-cta h3 { font-size: clamp(1.4rem, 4vw, 1.75rem); line-height: 1.2; color: var(--ink); margin-bottom: 0.4rem; }
.article-cta p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.2rem; }
.article-cta .city-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.article-cta .cta-note { margin: 1.1rem 0 0; font-size: 0.9rem; }
.back-to-blog { padding: 0 var(--container-padding) 3rem; text-align: center; }
.back-to-blog a { display: inline-block; padding: 0.7rem 0.25rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.back-to-blog i { margin-right: 0.3rem; }
@media (max-width: 782px) { .article-cta { margin-left: var(--container-padding); margin-right: var(--container-padding); } }
@media (min-width: 601px) {
  .article-body .pros-cons, .article-body .fig-row { grid-template-columns: 1fr 1fr; }
  .article-cta { padding: 2rem 1.75rem; }
}
@media (hover: hover) { .yt-lite:hover span { transform: scale(1.1); } }

/* ---------- 404 ---------- */
.error-page { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 2rem var(--container-padding); background: var(--primary); text-align: center; overflow: hidden; }
.error-box { position: relative; z-index: 1; max-width: 32rem; }
.error-emoti { width: clamp(100px, 24vw, 160px); margin: 0 auto 1.5rem; filter: drop-shadow(3px 4px 0 rgba(26, 26, 46, 0.25)); animation: emotiFloat 4s ease-in-out infinite; }
.error-box h1 { font-size: clamp(4.5rem, 18vw, 7rem); line-height: 1; color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); margin-bottom: 0.5rem; }
.error-box h1 span { color: var(--pink); }
.error-box p { font-size: clamp(1rem, 3vw, 1.2rem); font-weight: 500; line-height: 1.6; color: var(--ink); margin-bottom: 2rem; }
@media (prefers-reduced-motion: reduce) { .error-emoti { animation: none; } }

/* ---------- Barra inferior del móvil: reservar siempre a mano ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom)); background: var(--white); border-top: var(--line);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.cta-bar.show { transform: none; }
.cta-bar-icon { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--ink); border: var(--line); border-radius: var(--radius); font-size: 1.2rem; }
.cta-bar .btn { flex: 1; min-height: 48px; padding: 0.4rem 0.6rem; box-shadow: var(--pop-sm); }
@media (min-width: 601px) { .cta-bar { display: none; } }

/* ---------- WhatsApp y volver arriba ----------
   Tablet y ordenador: burbuja flotante. Móvil: el WhatsApp va en la barra inferior;
   en la portada (.is-multi) la barra abre este mismo panel para elegir ciudad. */
.wa-widget { display: none; }
.wa-widget.is-multi { display: block; position: fixed; right: 0.75rem; left: 0.75rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); z-index: 960; pointer-events: none; }
.whatsapp-float { display: none; }
.wa-chat { position: absolute; right: 0; bottom: 0; width: min(300px, 100%); background: var(--white); border: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--pop); opacity: 0; pointer-events: none; transform: scale(0.85) translateY(10px); transform-origin: bottom right; transition: transform 0.25s ease, opacity 0.25s ease; }
.wa-chat.open { opacity: 1; pointer-events: auto; transform: none; }
.wa-chat-header { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1rem; background: var(--ink); color: var(--white); font-family: var(--font-heading); font-size: 1.15rem; }
.wa-chat-close { width: 44px; height: 44px; margin: -0.4rem -0.6rem -0.4rem 0; color: var(--white); font-size: 1.4rem; line-height: 1; }
.wa-chat-body { background: var(--pink); padding: 1rem; }
.wa-chat-body p { background: var(--white); border-radius: 0 12px 12px 12px; padding: 0.8rem 1rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.wa-chat-input { padding: 0.8rem 1rem; background: var(--mint); }
.wa-chat-send { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; background: var(--ink); color: var(--white); font-weight: 700; border-radius: var(--radius-sm); }
.wa-city-btns { display: grid; gap: 0.5rem; padding: 0.8rem 1rem; background: var(--mint); }
.wa-city-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; background: var(--ink); color: var(--white); font-weight: 700; border-radius: var(--radius-sm); }
@media (min-width: 601px) {
  .wa-widget, .wa-widget.is-multi { display: block; position: fixed; left: auto; right: 1.5rem; bottom: 1.5rem; z-index: 940; pointer-events: auto; }
  .whatsapp-float { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--primary); font-size: 1.5rem; border: 2.5px solid var(--white); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); transition: var(--transition); }
  .wa-chat { bottom: 68px; width: 300px; }
}
@media (hover: hover) and (min-width: 601px) {
  .whatsapp-float:hover { background: var(--primary); color: var(--ink); }
}
.back-to-top { position: fixed; left: 1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 930; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink); border: var(--line); border-radius: 50%; font-size: 0.9rem; }
.back-to-top[hidden] { display: none; }
@media (min-width: 601px) { .back-to-top { left: 1.5rem; bottom: 1.5rem; } }

/* ---------- Aparición al hacer scroll (sin librerías) ---------- */
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal-ready.is-in { opacity: 1; transform: none; }

/* ---------- Tira de temporada (Navidad) ----------
   El bloque NAVIDAD trae sus propios estilos y se pega igual en todas las paginas (se quita entero en enero).
   Aqui solo se adapta al sistema: linea marino, pildora con borde y sombra plana, aspa con tamano tactil. */
#xbar { border-bottom: var(--line); border-image: none; }
#xbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(135deg, #c81e2d 0 8px, #fff 8px 12px, #1f8a4c 12px 20px, #fff 20px 24px); pointer-events: none; }
#xbar a { min-height: 50px; padding-top: 7px; padding-bottom: 12px; padding-right: 46px; }
#xbar a b { padding: 3px 12px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
#xbar button { right: 0; width: 44px; height: 44px; margin-top: -2px; opacity: 0.85; }
@media (max-width: 760px) { #xbar a { padding-right: 36px; gap: 0.4rem; } #xbar a b { padding: 2px 8px; } #xbar button { width: 38px; } }
/* hueco para la tira bajo la cabecera; 760/761 es el corte propio del bloque NAVIDAD (unica excepcion a 600/900; desaparece con el) */
html.xbar-on { scroll-padding-top: calc(var(--nav-height) + 68px); }
html.xbar-on body .fam-hero { padding-top: calc(var(--nav-height) + 2rem + 62px); }
@media (min-width: 761px) { html.xbar-on body .fam-hero { padding-top: calc(var(--nav-height) + 3rem + 56px); } }

/* ---------- Regalo: la misión de Mot como cabecera del bloque (texto a un lado, juego al otro) ---------- */
.rg-mission { display: grid; gap: 1.75rem; justify-items: center; max-width: 56rem; margin: 0 auto; text-align: center; }
.rg-mission h2 { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.1; color: var(--white); text-shadow: 0.045em 0.045em 0 var(--ink); margin: 0.7rem 0 0.75rem; }
.rg-lead { max-width: 32rem; margin: 0 auto 1.25rem; font-size: clamp(1rem, 2vw, 1.12rem); font-weight: 500; line-height: 1.6; color: var(--ink); }
.rg-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0.5rem; max-width: 28rem; margin: 0 auto 1.4rem; }
.rg-facts li { background: var(--white); color: var(--ink); border: var(--line); border-radius: var(--radius); box-shadow: var(--pop-sm); padding: 0.5rem 0.3rem 0.55rem; font-size: 0.8125rem; font-weight: 500; line-height: 1.25; }
.rg-facts strong { display: block; font-family: var(--font-heading); font-weight: normal; font-size: 1.1rem; line-height: 1.15; white-space: nowrap; }
.rg-buy { width: 100%; max-width: 26rem; background: var(--primary); color: var(--ink); border: var(--line); box-shadow: var(--pop); }
.rg-buy:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.rg-mission .rd-phone { width: 170px; margin-bottom: 0; }
.rd-card.is-steps { display: flex; flex-direction: column; align-items: center; }
.rg-close { width: 100%; margin-top: 1.1rem; text-align: center; font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
@media (hover: hover) { .rg-buy:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); } }
@media (min-width: 601px) {
  .rg-facts li { font-size: 0.875rem; padding: 0.55rem 0.6rem 0.6rem; }
  .rg-facts strong { font-size: 1.35rem; }
  .rg-buy { width: auto; }
  .rg-mission .rd-phone { width: 200px; }
  .rd-card.is-steps { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .rd-card.is-steps .rg-redeem { justify-content: center; }
}
@media (min-width: 901px) {
  .rg-mission { grid-template-columns: 1fr auto; align-items: center; justify-items: start; gap: 3.5rem; text-align: left; }
  .rg-lead, .rg-facts { margin-left: 0; }
  .rg-mission .rd-phone { width: 240px; margin-right: 2.5rem; }
  .rg-steps.is-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .rg-steps.is-row li { padding-bottom: 0; }
  .rg-steps.is-row li::after { content: none; }
}
/* frase destacada bajo un título y nota centrada */
.section-subtitle.is-claim { font-family: var(--font-heading); font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.25; color: var(--ink); }
.tip.is-center { justify-content: center; text-align: left; margin-top: 0.9rem; }

/* ---------- Quien prefiere menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sunburst::before, .hero-emoti, .hero-star, .faq-emoti-bubble, .contact-head img, .swipe-hint i, .photo-confetti span, .rd-phone img { animation: none; }
  .photo-confetti { display: none; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
}

@media print {
  #header, .cta-bar, .wa-widget, .back-to-top { display: none !important; }
}

/* Portugal: portada (una sola ciudad y enlace de familia en la entrada) */
.hero-meta .hero-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.4rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--white); text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.cities.is-1 .city-actions { grid-template-columns: 1fr; }
.city-body .city-partner { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); margin-top: -0.4rem; }
.city-partner img { flex: 0 0 2rem; width: 2rem; height: 2rem; object-fit: contain; }
@media (min-width: 901px) {
  .cities.is-1 { grid-template-columns: 1fr; max-width: 26rem; }
}
.way-body p + .btn { margin-top: 1rem; }
