/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 22 2026 | 10:21:23 */
/* ===========================================================================
   MANGApp · hoja de estilos
   ---------------------------------------------------------------------------
     00 · Colores de los tipos de actividad  ← para cambiarlos
     01 · Base y utilidades
     02 · Layout de la app (menú inferior, secciones, WooCommerce)
     02b · Registro y acceso
     02c · Cuenta: ajustes (hoja) y firmas
     03 · Stories (novedades, diseño anterior)
     03b · Home («Elige tu camino»)
     03c · Franja de publicidad
     04 · Mapa
     05 · Filtros (calendario, favoritos e invitados) e idioma
     06 · Lista de actividades
     06b · Ficha de la actividad
     07 · Invitados · tarjeta
     08 · Hoja modal (fichas de invitado y de actividad)
     09 · Actividades dentro de la ficha del invitado
     10 · Cabecera de usuario y puntos
     11 · Pestañas de premios
     12 · Retos
     13 · Quiz
     14 · Lo que se consigue (juego, MART, BAG y MAP)
     15 · Magic Adventure
     16 · Ranking
     17 · Pantallas ≤ 360 px

/* ###########################################################################
   00 · COLORES DE LOS TIPOS DE ACTIVIDAD  ←  CAMBIAR AQUÍ
   ---------------------------------------------------------------------------
   Cada tipo tiene dos colores:
     --tipo-bg  fondo claro de la etiqueta (la de la tarjeta: «FIRMA»)
     --tipo-fg  color fuerte: letra de la etiqueta, punto del filtro y fondo
                del filtro cuando está marcado
   El nombre entre comillas es el tipo TAL CUAL llega del panel en español
   (mayúsculas y tildes incluidas). Un tipo que no esté aquí sale en lila.
   Para añadir un tipo: copiar una línea y cambiar el nombre y los colores.
   ########################################################################### */

[data-tipo="Firma"]       { --tipo-bg: #fce7f3; --tipo-fg: #be185d; }   /* rosa */
[data-tipo="Música"]      { --tipo-bg: #dbeafe; --tipo-fg: #1d4ed8; }   /* azul */
[data-tipo="Q&A"]         { --tipo-bg: #dcfce7; --tipo-fg: #15803d; }   /* verde */
[data-tipo="Podcast"]     { --tipo-bg: #cffafe; --tipo-fg: #0e7490; }   /* turquesa */
[data-tipo="Cine"]        { --tipo-bg: #e2e8f0; --tipo-fg: #334155; }   /* pizarra */
[data-tipo="Masterclass"] { --tipo-bg: #f3e8dc; --tipo-fg: #7c4a1e; }   /* marrón */
[data-tipo="Panel"]       { --tipo-bg: #ffedd5; --tipo-fg: #c2410c; }   /* naranja */
[data-tipo="Concurso"]    { --tipo-bg: #fef9c3; --tipo-fg: #a16207; }   /* amarillo */
[data-tipo="Exhibición"]  { --tipo-bg: #ede9fe; --tipo-fg: #6d28d9; }   /* violeta */
[data-tipo="M&G"]         { --tipo-bg: #fee2e2; --tipo-fg: #b91c1c; }   /* rojo */
[data-tipo="Taller"]      { --tipo-bg: #ecfccb; --tipo-fg: #4d7c0f; }   /* lima */
/* Lila de los tipos sin color propio: --tipo-bg #ecebf2 · --tipo-fg #5b5670
   (son los valores de reserva de las reglas: var(--tipo-bg, #ecebf2)…) */


/* ===========================================================================
   01 · BASE Y UTILIDADES
   =========================================================================== */

body {
  background: #dacafa;
}
/* Las opciones del tema (Ohio) pintan en #page un degradado del morado a un azul
   claro que termina con la página: por debajo asomaba el morado del body y, al
   bajar del todo, salía una franja cortada. Aquí, morado liso en todas las
   pestañas (solo en las páginas de la app, las que tienen la fila app-top). */
body:has(.app-top) #page { background: none; }
/* WPBakery recorta (overflow: hidden) las filas a todo el ancho: cortaba el gris
   del panel de usuario (#tab-content) antes del final de la pantalla. */
.vc_row.app-top[data-vc-full-width] { overflow: visible; }
/* Al pasarse del final (el rebote de Safari, Firefox o la app de iOS) se ve el
   color de fondo del documento: con el panel de usuario a la vista, su gris, no
   el morado. Si el panel está escondido (style="display: none" en .userapp o en
   el bloque que lo lleva), se queda el morado. */
html:has(.juego #tab-content) { background-color: #eceaf2; }
html:has(:is([style*="display: none"], [style*="display:none"]) .juego #tab-content) { background-color: transparent; }

/* El tema separa 1rem lo que va justo después de cualquier h3
   (h3:not(.title) + *): en las tarjetas metía 16 px entre el título y la
   descripción. En nuestros h3, la separación la pone nuestro CSS. */
h3:is(.actividad-title, .gcard-name, .cs-titulo, .mart-titulo):not(.title) + * { margin-top: 0; }
h3.cs-titulo:not(.title) + .cs-hecho { margin-top: 6px; }   /* el suyo */

/* Bajo la franja, el hueco lo ponen nuestros bloques, como en el simulador.
   WPBakery separa cada bloque 35 px (aunque esté vacío o escondido) y la fila de
   la home traía de la página vieja -150 px de margen y 70 px de relleno: según el
   navegador sumaban huecos distintos (en Firefox, enorme). */
.app-top .wpb_raw_code.wpb_content_element { margin-bottom: 0; }
.vc_row.mangapp_news_heading { margin-top: 0 !important; }
.mangapp_news_heading .wpb_raw_code.wpb_content_element { padding-top: 28px !important; margin-bottom: 0; }

.past-activity {
  opacity: .5;
  pointer-events: none;
}

.lista-vacia {
  font-size: 14px;
  color: #6b6878;
  padding: 10px 2px;
}

.firmas,
.premios,
.mhome-stories,
.mhome-rutas,
.gfilters-chips,
.filter-group-calendar,
.filter-group-favorites,
#news-stories.stories-container {
  overflow-y: hidden;
}

/* EL SCROLL ATASCADO EN IPHONE (pestaña de regalos). Solo en iPhone y iPad, el tema
   (Ohio) pone overflow-x: hidden en .site-content, la caja que lleva toda la página. Con
   eso la caja tiene también scroll vertical propio, y en la pestaña de regalos su
   contenido la pasa por 2 px: el dedo movía esa caja (2 px y rebote) en vez de la página.
   clip recorta igual de lado pero no crea ningún scroll. (iOS 15 no tiene clip: ahí se
   deja sin scroll recortando también de arriba abajo, que no se nota.) */
@supports (-webkit-touch-callout: none) {
  body .site-content { overflow-y: hidden; }
}
@supports (-webkit-touch-callout: none) and (overflow: clip) {
  body .site-content { overflow-x: clip; overflow-y: visible; }
}

/* Spinner de los botones de login / registro / borrado de cuenta */
.onachan-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* El corazón no debe dejar halo azul ni recuadro al tocarlo en móvil */
i.fav-icon {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  cursor: pointer;
}
i.fav-icon:focus,
i.fav-icon:focus-visible,
i.fav-icon:active {
  outline: none !important;
  box-shadow: none !important;
}

.linea-chiquita {
  margin-top: -8px;                  /* antes -20px: quedaba pegado al logo */
  margin-bottom: 8px !important;     /* antes -20px: quedaba pegado a lo de debajo */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  color: #fff;
}

/* Barra superior en iOS: hueco para la isla / notch */
@supports (-webkit-touch-callout: none) {
  .app-top { padding-top: 40px; }
}


/* ===========================================================================
   02 · LAYOUT DE LA APP
   =========================================================================== */

/* Cada sección se muestra desde el menú inferior */
.calendar,
.favorites,
.guests,
.userapp,
.woocommerce-privacy-policy-text {
  display: none;
}

.site-content { background-color: transparent; }

#app-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 15px 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
}

.app-menu-item {
  font-size: 24px;
  color: #000;
  text-decoration: none;
  transition: color .3s ease;
}
.app-menu-item:hover {
  color: #3f51b5;
  text-decoration: none;
  border-bottom: none;
}

/* Menú superior de las vistas internas */
.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}
.back-button {
  border: none;
  background-color: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.menu-title {
  flex-grow: 1;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.content {
  margin-top: 60px;   /* para que no lo tape el menú fijo */
  padding: 20px;
}

/* Tarjetas del menú principal */
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  margin-top: -35px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
  transition: box-shadow .3s ease;
  pointer-events: none;
}
.card:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, .2); }
.card img {
  height: auto !important;
  margin-bottom: 5px;
  pointer-events: none;
}
.card-text {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.card-details {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
.link_app {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* .card-login (registro y acceso): en la sección 02b */

/* Retoques de WooCommerce / WPBakery */
.woocommerce .alert a { display: none !important; }
.woocommerce .vc_col-lg-7.vc_col-md-8.vc_col-sm-12 { display: none; }
#remember_description { display: none; }
.vc_col-lg-12.woo-c_login .woocommerce-form-row.woocommerce-form-row--wide.form-row.form-row-wide {
  width: 100% !important;
  padding-left: 0 !important;
}
.vc_row[data-vc-full-width].vc_hidden { opacity: 1 !important; }
.vc-zigzag-inner { margin-bottom: -8px !important; }
.page-container.bottom-offset { margin-top: -60px !important; }

@media (min-width: 100px) {
  .vc_col-sm-6 { width: 50%; }
  div[class*="vc_col-sm-"] { float: left; }
}


/* ===========================================================================
   02b · REGISTRO Y ACCESO (la tarjeta de la home)
   ---------------------------------------------------------------------------
   La tarjeta la pinta WooCommerce, con las pestañas del tema Ohio; aquí solo se
   le cambia el aspecto (los !important ganan a los estilos del tema).
   · Pestañas «Crea una cuenta / Accede» como un interruptor de dos posiciones.
   · Campos grandes, con letra de 16 px (con menos, el iPhone hace zoom al
     escribir) y el borde morado al escribir.
   · El ojo de la contraseña, dentro del campo (antes salía como una rayita
     gris debajo: su icono depende de unos estilos de WooCommerce que el tema no
     carga).
   · El botón, en el morado de la app y a todo el ancho.
   · Enviando: barra de progreso arriba de la tarjeta, el botón con el mensaje
     de Onachan y los campos quietos; a los 6 s, aviso de que va lento (JS).
   · Onachan asoma por encima de la tarjeta (la imagen, en --onachan-asoma).
   · «Recuérdame» no se ve: va siempre marcado (JS).
   =========================================================================== */

.card-login,
.card-login p,
.card-login li { font-family: Poppins, sans-serif; }   /* el tema pone la del sistema */
.card-login {
  /* Onachan asomando: cambiar aquí la imagen (PNG con fondo transparente) */
  --onachan-asoma: url("https://participa.ficomic.com/wp-content/uploads/2024/09/correct-answer.png");
  position: relative;
  margin: 96px 0 22px;           /* arriba, el hueco por el que asoma Onachan */
  padding: 24px 20px 22px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(51, 38, 75, .12);
}
/* Solo se ve la parte de arriba (la cabeza): lo demás «queda detrás» */
.card-login::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: 100%;
  width: 122px;
  height: 94px;
  background: var(--onachan-asoma) center top / 122px auto no-repeat;
  pointer-events: none;
}
.card-login .woocommerce-form-login__rememberme { display: none !important; }
.card-login .registrate > p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #4f4864;
  text-align: center !important;   /* el HTML lo trae justificado en línea */
}

/* Pestañas: interruptor */
.card-login .tabs-nav {
  display: flex !important;
  gap: 4px;
  margin: 0 0 18px !important;
  padding: 4px !important;
  background: #f1eef8;
  border: 0 !important;
  border-radius: 14px;
  list-style: none;
}
.card-login .tabs-nav-line { display: none !important; }
.card-login .tabs-nav-link {
  flex: 1 1 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 10px 6px !important;
  border: 0 !important;
  border-radius: 11px;
  font-family: Poppins, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #7a7489 !important;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.card-login .tabs-nav-link::before,
.card-login .tabs-nav-link::after { display: none !important; }
.card-login .tabs-nav-link.active {
  background: #fff;
  color: #5b3fa8 !important;
  box-shadow: 0 2px 8px rgba(51, 38, 75, .12);
}
.card-login .tabs-content-item        { display: none; }
.card-login .tabs-content-item.active { display: block; }

/* Columnas y filas de WooCommerce / WPBakery: a todo el ancho, sin márgenes */
.card-login .u-columns,
.card-login .u-column1,
.card-login .vc_row,
.card-login .woo-c_login {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.card-login fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Campos */
.card-login .form-row {
  margin: 0 0 14px !important;
  padding: 0 !important;
}
.card-login label {
  display: block;
  margin: 0 0 6px !important;
  font-family: inherit;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
  color: #4f4864 !important;
}
.card-login .required {
  border: 0;
  color: #5b3fa8;
  text-decoration: none;
}
.card-login input.input-text {
  box-sizing: border-box;
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  background: #faf9fd !important;
  border: 1.5px solid #e3ddf2 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 16px !important;
  color: #1f1b2a !important;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.card-login input.input-text:focus {
  background: #fff !important;
  border-color: #5b3fa8 !important;
  box-shadow: 0 0 0 4px rgba(91, 63, 168, .14) !important;
}

/* El ojo de la contraseña (WooCommerce le pone .display-password al pulsarlo) */
.card-login .password-input {
  position: relative;
  display: block;
}
.card-login .password-input input.input-text { padding-right: 50px !important; }
.card-login .show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 5px !important;
  width: 40px !important;
  height: 40px !important;
  margin: -20px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 10px;
  color: #8a8699;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card-login .show-password-input::after { display: none !important; }
.card-login .show-password-input::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-login .show-password-input.display-password { color: #5b3fa8; }
.card-login .show-password-input.display-password::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M56.88,31.93A12,12,0,1,0,39.12,48.07l16,17.65C20.67,88.66,5.72,121.58,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212a131.34,131.34,0,0,0,51-10l20.09,22.1a12,12,0,0,0,17.76-16.14ZM128,188c-29.59,0-55.47-10.73-76.91-31.88A130.69,130.69,0,0,1,29.52,128c5.27-9.31,18.79-29.9,42-44.29l90.09,99.11A109.33,109.33,0,0,1,128,188Zm123-55.12c-.36.81-9,20-28,39.16a12,12,0,1,1-17-16.9A130.48,130.48,0,0,0,226.48,128a130.36,130.36,0,0,0-21.57-28.12C183.46,78.73,157.59,68,128,68c-3.35,0-6.7.14-10,.42a12,12,0,1,1-2-23.91c3.93-.34,8-.51,12-.51,36,0,68.63,13.67,94.49,39.52,19.35,19.35,28.11,38.8,28.48,39.61A12.08,12.08,0,0,1,251,132.88Z'/%3E%3C/svg%3E");
}

/* Recuérdame y ¿Has olvidado tu contraseña? */
.card-login .woocommerce-form-login__rememberme {   /* (oculto: ver arriba) */
  align-items: center;
  gap: 8px;
  margin: 0 0 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #4f4864 !important;
  cursor: pointer;
}
.card-login .woocommerce-form-login__rememberme input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #5b3fa8;
}
.card-login .lost_password {
  margin: 14px 0 0 !important;
  text-align: center;
}
.card-login .lost_password a {
  margin: 0 !important;                /* el HTML trae margin-top: -10px en línea */
  font-size: 13px !important;
  font-weight: 600;
  color: #5b3fa8 !important;
  text-decoration: none;
}

/* Botón */
.card-login button[type="submit"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 52px;
  margin: 4px 0 0 !important;
  padding: 10px 18px !important;
  background: #5b3fa8 !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(91, 63, 168, .32) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: .2px !important;
  text-transform: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, background-color .15s, box-shadow .15s;
}
.card-login button[type="submit"]:active { transform: scale(.98); }
.card-login button[type="submit"] .icon {
  display: inline-flex !important;
  margin: 0 !important;
  transform: none !important;
}
.card-login button[type="submit"] .icon svg { fill: currentColor !important; }
.card-login button[type="submit"] .icon .minimal { display: none !important; }
.card-login button[type="submit"] .icon .default { display: block !important; }

/* Enviando */
.card-login button[aria-busy] {
  background: #7c64c4 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  white-space: normal !important;   /* en catalán o inglés el mensaje es largo */
  pointer-events: none;
}
.card-login .login-msg { min-width: 0; text-align: left; }
.card-login button[aria-busy] .onachan-spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border-width: 2.5px;
}
.card-login form.is-enviando .input-text,
.card-login form.is-enviando .show-password-input,
.card-login form.is-enviando .woocommerce-form-login__rememberme,
.card-login.is-cargando .tabs-nav {
  opacity: .55;
  pointer-events: none;
}
.card-login::before {                  /* barra de progreso (sin fin) */
  content: '';
  position: absolute;
  top: 0;
  left: 22px;                          /* dentro de las esquinas redondeadas */
  right: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, #5b3fa8, #ff4d7d, transparent) no-repeat;
  background-size: 50% 100%;
  opacity: 0;
  transition: opacity .2s;
}
.card-login.is-cargando::before {
  opacity: 1;
  animation: login-barra 1.1s linear infinite;
}
@keyframes login-barra {
  from { background-position: -100% 0; }
  to   { background-position: 200% 0; }
}
.login-lento {
  display: none;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #8a6a00;
  text-align: center;
}
.is-lento .login-lento { display: block; }

/* Avisos de WooCommerce (email ya registrado, contraseña incorrecta…) */
.card-login .woocommerce-error,
.card-login .woocommerce-message,
.card-login .woocommerce-info {
  margin: 0 0 16px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 14px;
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
}
.card-login .woocommerce-error::before,
.card-login .woocommerce-message::before,
.card-login .woocommerce-info::before { display: none !important; }
.card-login .woocommerce-error { background: #fdecef !important; color: #b4234a !important; }
.card-login .woocommerce-message,
.card-login .woocommerce-info { background: #ecf8f0 !important; color: #1d6b3f !important; }
.card-login .woocommerce-error li { margin: 0; padding: 0; }
.card-login .woocommerce-error a { color: inherit; font-weight: 700; }
/* El tema (Ohio) los pinta como .alert -danger, con letra grande y una ✕: más
   compactos (ocupaban media pantalla). Al cerrarlos, el tema solo los vuelve
   invisibles (.-invisible) y dejaba el hueco: fuera del todo. */
.card-login .alert {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 0 14px !important;
  padding: 9px 8px 9px 12px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}
.card-login .alert :is(p, ul, li, div, strong, span) {
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  list-style: none;
}
.card-login .alert.-danger { background: #fdecef !important; color: #b4234a !important; }
.card-login .alert .icon-button {
  flex: 0 0 auto;
  width: 24px !important;
  height: 24px !important;
  min-width: 0 !important;
  margin: -3px 0 0 !important;
  padding: 0 !important;
}
.card-login .alert .icon-button svg { width: 14px; height: 14px; }
.card-login .alert.-invisible { display: none !important; }

/* ¿Has olvidado tu contraseña?: código por email y contraseña nueva, en la tarjeta */
.card-login [hidden] { display: none !important; }
.card-login .mrec-titulo { margin: 0 0 6px !important; font-size: 16px; font-weight: 800; color: #1f1b2a; }
.card-login .mrec-txt { margin: 0 0 14px !important; font-size: 13px; line-height: 1.45; color: #4f4864; }
.card-login .mrec-codigo { letter-spacing: 6px; font-weight: 700; }
.card-login .mrec-error {
  margin: 0 0 12px !important;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fdecef;
  color: #b4234a;
  font-size: 12.5px;
  line-height: 1.4;
}
.card-login .mrec-form.is-enviando button[type="submit"] { opacity: .6; pointer-events: none; }
.card-login .mrec-link {
  display: block;
  width: 100%;
  margin: 12px 0 0 !important;
  padding: 0;
  background: none !important;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #5b3fa8 !important;
  text-align: center;
  cursor: pointer;
}


/* ===========================================================================
   02c · CUENTA: AJUSTES (hoja) Y FIRMAS
   ---------------------------------------------------------------------------
   El icono + nombre de debajo del logo abre la hoja de ajustes (idioma, mis
   días, verificar el email). La pestaña FIRMAS de la pantalla de usuario
   lista las firmas; cada una abre su hoja (apuntarse, estado, confirmar).
   =========================================================================== */

/* El icono + nombre (abre los ajustes) */
.linea-chiquita a.mangapp-config-abrir {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 11px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .3px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.linea-chiquita a.mangapp-config-abrir:active { background: rgba(255, 255, 255, .28); }

/* Idioma elegido en la cuenta: sin selectores en el resto de la app */
body.idioma-fijo .mangapp-lang { display: none !important; }
/* «Mis días»: fuera los demás días (los chips y sus actividades) */
.fuera-de-mis-dias { display: none !important; }

/* Aviso pequeño abajo («Guardado») */
.mangapp-aviso {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 3000;
  padding: 10px 18px;
  transform: translate(-50%, 20px);
  background: #1f1b2a;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.mangapp-aviso.visible { opacity: 1; transform: translate(-50%, 0); }

/* --- Hoja de ajustes --- */
.csheet { height: 78vh; height: 78dvh; }
.cs-cabecera {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.cs-avatar {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 50%;
  background: #ece5ff;
  color: #5b3fa8;
}
.cs-avatar .mph { width: 30px; height: 30px; }
.cs-quien { min-width: 0; }
.cs-nombre {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: #1f1b2a;
  overflow-wrap: anywhere;
}
.cs-email {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #6b6878;
  overflow-wrap: anywhere;
}
.cs-ok {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 1px 7px 1px 5px;
  background: #dcfce7;
  border-radius: 999px;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.cs-ok .mph { width: 12px; height: 12px; }

.cs-bloque {
  margin: 0 0 14px;
  padding: 16px;
  background: #f6f4fb;
  border-radius: 18px;
}
.cs-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: #1f1b2a;
}
.cs-titulo .mph { width: 18px; height: 18px; color: #5b3fa8; }
.cs-ayuda {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b6878;
}
.cs-idiomas {                     /* los 4 en una fila */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cs-idiomas .cs-opcion { align-items: center; padding: 10px 2px; text-align: center; }
.cs-idiomas .cs-opcion span { font-size: 11px; white-space: nowrap; }
.cs-opcion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(51, 38, 75, .1);
  color: #1f1b2a;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cs-opcion b { font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.cs-opcion span { font-size: 12px; color: #6b6878; }
.cs-opcion.on { border-color: #5b3fa8; background: #f3efff; }
.cs-opcion.on b { color: #5b3fa8; }
.cs-enlace {
  display: inline-flex;
  align-items: center;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #5b3fa8;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cs-enlace.on { color: #1f1b2a; text-decoration: none; }
.cs-enlace.on::before { content: '✓ '; white-space: pre; }

/* Las 4 cajas de los días */
.cs-dias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cs-dia {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 10px 0 12px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(51, 38, 75, .1);
  color: #1f1b2a;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cs-dia-sem { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #7a7489; }
.cs-dia-num { font-size: 22px; font-weight: 800; line-height: 1.1; }
.cs-dia-check {
  position: absolute;
  top: -6px;
  right: -6px;
  display: none;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #5b3fa8;
  color: #fff;
}
.cs-dia-check .mph { width: 12px; height: 12px; }
.cs-dia.on { border-color: #5b3fa8; background: #f3efff; }
.cs-dia.on .cs-dia-sem { color: #5b3fa8; }
.cs-dia.on .cs-dia-check { display: flex; }

/* Notificaciones: interruptor (plugin «MANGApp · Notificaciones») */
.cs-interruptor {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; margin: 0 0 6px; padding: 12px 14px;
  border: 1.5px solid #e4def3; border-radius: 14px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #1f1b2a;
  text-align: left; cursor: pointer;
}
.cs-interruptor i {
  position: relative; flex: 0 0 auto; width: 44px; height: 26px;
  border-radius: 99px; background: #d9d4e6; transition: background .2s;
}
.cs-interruptor i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s;
}
.cs-interruptor.on { border-color: #5b3fa8; background: #f3efff; }
.cs-interruptor.on i { background: #5b3fa8; }
.cs-interruptor.on i::after { transform: translateX(18px); }

/* Verificar el email */
.cs-codigo { display: flex; gap: 8px; margin: 0 0 8px; }
.cs-codigo-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  background: #fff;
  border: 1.5px solid #e3ddf2;
  border-radius: 12px;
  font-family: inherit;
  font-size: 18px;              /* 16 px o más: el iPhone no hace zoom */
  font-weight: 700;
  letter-spacing: .3em;
  color: #1f1b2a;
  outline: none;
}
.cs-codigo-input:focus { border-color: #5b3fa8; box-shadow: 0 0 0 4px rgba(91, 63, 168, .14); }
/* El «Código de 6 cifras» de dentro, sin el espaciado de los números (se cortaba) */
.cs-codigo-input::placeholder {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  color: #a39dbb;
}
.cs-boton,
.fs-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  background: #5b3fa8;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cs-boton:disabled,
.fs-boton:disabled { background: #c9c1e0; cursor: default; }
.cs-boton-sec,
.fs-boton-sec { background: #fff; color: #5b3fa8; box-shadow: inset 0 0 0 1.5px #c9c1e0; }
.cs-msg { margin: 0 0 10px; font-size: 12.5px; color: #4f4864; }
.cs-msg:empty { display: none; }
.cs-msg.error,
.fs-error { color: #b4234a; }
.cs-hecho {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #15803d;
}
.cs-hecho .mph { width: 18px; height: 18px; }
.cs-hecho-dni { margin: 0 0 12px; font-size: 13px; color: #4f4864; }
.cs-hecho-dni .mph { color: #15803d; }
/* «Asegúrate de escribirlo bien», bajo el DNI */
.cs-nota { margin: -4px 0 12px; font-size: 11.5px; line-height: 1.4; color: #7a7489; }
.cs-dni { text-transform: uppercase; letter-spacing: .06em; }
.cs-campo { display: block; margin: 0 0 10px; }
.cs-campo > span:first-child {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  color: #4f4864;
}
.cs-campo input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  background: #fff;
  border: 1.5px solid #e3ddf2;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;               /* 16 px o más: el iPhone no hace zoom */
  color: #1f1b2a;
  outline: none;
}
.cs-campo input:focus { border-color: #5b3fa8; box-shadow: 0 0 0 4px rgba(91, 63, 168, .14); }
.cs-pass { position: relative; display: block; }
.cs-pass input { padding-right: 46px; }
.cs-ojo {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: -19px 0 0;
  padding: 0;
  background: none;
  border: 0;
  color: #8a8699;
  cursor: pointer;
}
.cs-ojo .mph { width: 20px; height: 20px; }
.cs-ojo.on { color: #5b3fa8; }
.cs-peligro { margin-top: 18px; background: #fdf2f4; }
.cs-peligro .cs-titulo { color: #b4234a; }
.cs-boton-peligro { background: #d4141a; }
.cs-aviso-peligro { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: #b4234a; }
.cs-salir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #6b6878;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.cs-salir .mph { width: 16px; height: 16px; }

/* --- Firmas: en MART («Sorteos de firmas de invitados»), aparte del juego ---
   Compacta y deslizable (de borde a borde, sin ensanchar la página). */
.ufirmas[hidden] { display: none; }
.ufirmas { margin: 0 0 24px; }
.ufirmas-cab { margin: 0 0 10px; }
.ufirmas-titulo {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #1f1b2a;
}
.ufirmas-sub { margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: #6b6878; }
.firmas {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 calc(50% - 50vw) -14px;
  padding: 2px calc(50vw - 50%) 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.firmas::-webkit-scrollbar { display: none; }
/* Cada firma, como un premio de «La casa del terror»: foto cuadrada grande,
   nombre, subtítulo y el estado abajo */
.fir-item {
  flex: 0 0 152px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 8px 8px 10px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(51, 38, 75, .1);
  color: #1f1b2a;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fir-item:active { transform: scale(.985); }
/* «Lo sentimos, no ha habido suerte»: apagada, al final y sin tocar */
.fir-item.fir-apagada { opacity: .55; cursor: default; box-shadow: none; }
.fir-item.fir-apagada:active { transform: none; }
.fir-item.fir-apagada .fir-img { filter: grayscale(1); }
/* La que pide algo (¡te ha tocado! → confirmar), con aro dorado */
.fir-item.fir-accion { box-shadow: 0 0 0 2px #ffcc00, 0 6px 18px rgba(255, 204, 0, .35); }
.fir-foto { display: block; margin: 0 0 4px; }
.fir-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f1eef7;
}
.fir-titulo {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fir-sub { font-size: 11.5px; line-height: 1.35; color: #6b6878; }
.fir-estado {
  align-self: stretch;
  margin-top: auto;                  /* siempre abajo */
  padding: 5px 8px;
  border-radius: 10px;
  background: #ecebf2;
  color: #5b5670;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.fir-item > .fir-sub { margin-bottom: 8px; }
.fir-e-abierta      { background: #ece5ff; color: #5b3fa8; }
.fir-e-inscrito     { background: #dbeafe; color: #1d4ed8; }
.fir-e-ganador      { background: #ffcc00; color: #33264b; }
.fir-e-confirmado,
.fir-e-entregada    { background: #dcfce7; color: #15803d; }
.fir-e-proximamente { background: #fff3c4; color: #7c4a00; }

/* --- Hoja de una firma --- */
.fsheet { height: 78vh; height: 78dvh; }
.fs-cabecera { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.fs-img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  background: #eee;
}
.fs-titulo { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.15; color: #1f1b2a; }
.fs-sub { margin: 3px 0 0; font-size: 12.5px; color: #6b6878; }
.fs-cond {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #f6f4fb;
  border-radius: 16px;
}
.fs-cond h4,
.fs-h {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1f1b2a;
}
.fs-h { margin-top: 18px; }
.fs-cond p { margin: 0; font-size: 13px; line-height: 1.55; color: #3a3a44; white-space: pre-line; }
.fs-nota { margin: 0 0 10px; font-size: 12px; line-height: 1.45; color: #6b6878; }
.fs-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 6px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #1f1b2a;
  cursor: pointer;
}
.fs-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #5b3fa8;
}
.fs-dias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 8px;
}
.fs-dia {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 11px;
  background: #fff;
  border: 2px solid #ece9f3;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-dia input { position: absolute; opacity: 0; pointer-events: none; }
.fs-dia-nom { font-size: 15px; font-weight: 800; text-transform: uppercase; color: #1f1b2a; }
.fs-dia-hora { font-size: 11.5px; line-height: 1.3; color: #6b6878; }
.fs-dia-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #5b3fa8;
  color: #fff;
}
.fs-dia-check .mph { width: 12px; height: 12px; }
.fs-dia.on { border-color: #5b3fa8; background: #f3efff; }
.fs-dia.on .fs-dia-check { display: flex; }
/* El tema separa lo que va detrás de cualquier <label> (label + * { margin-top: .5rem }):
   todos los días menos el primero bajaban 8 px y el primero, en su fila, se estiraba
   (el sábado salía más grande) */
.fs-dias > .fs-dia { margin-top: 0; }
/* «+ PLAZAS!» junto al día (casilla Aviso del plugin): siempre en una línea; el check
   de marcado sale en la esquina para no pisar la etiqueta */
.fs-dia.aviso .fs-dia-nom {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: min(15px, 4vw);     /* en móviles estrechos encoge en vez de partirse */
}
.fs-dia-mas {
  flex: 0 0 auto;
  padding: 3px 6px 2px;
  border-radius: 6px;
  background: #ff3d7f;
  color: #fff;
  font-size: min(9.5px, 2.55vw);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
}
.fs-dia.aviso .fs-dia-check { top: -7px; right: -7px; box-shadow: 0 0 0 2px #fff; }
.fs-error { margin: 4px 0 8px; font-size: 13px; }
.fs-form .fs-boton,
.fs-premio + .fs-boton,
.fs-aviso .fs-boton { width: 100%; margin-top: 6px; }
.fs-caja {
  margin: 0 0 14px;
  padding: 16px;
  background: #f6f4fb;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #3a3a44;
}
.fs-caja p { margin: 0; }
.fs-caja.fs-ok { background: #ecf8f0; }
.fs-caja.fs-aviso { background: #fff7e6; }
.fs-caja.fs-premio {
  background: linear-gradient(135deg, #fff3c4, #ffe0ef);
  text-align: center;
}
.fs-grande { font-size: 24px; font-weight: 800; color: #1f1b2a; }
.fs-cuando { margin-top: 6px !important; font-size: 17px; font-weight: 800; color: #5b3fa8; }
.fs-pie { margin-top: 10px !important; font-size: 12.5px; color: #6b6878; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.fs-chip {
  padding: 4px 10px;
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #15803d;
}
.fs-botones { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.fs-enlace {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 10px;
  background: none;
  border: 0;
  color: #6b6878;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}


/* --- Favoritos: recomendador ---
   Sin favoritos: Onachan + día y tipo + actividades que encajan. Con
   favoritos: «¿Necesitas ayuda?» al final, que lo abre. */
.frec { margin: 18px 0 0; }
.frec-ayuda {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1.5px dashed rgba(91, 63, 168, .35);
  border-radius: 16px;
  color: #5b3fa8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.frec-ayuda .mph { width: 22px; height: 22px; }
/* Sin favoritos, sin filtros (no hay nada que filtrar) */
.favorites.sin-favs #activity-filters-favorites { display: none !important; }
.frec-caja {
  position: relative;
  padding: 18px 14px 14px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(51, 38, 75, .1);
  text-align: center;
}
.frec-vacio { padding-top: 8px; }
.frec-onachan { display: block; width: 300px; max-width: 100%; height: auto; margin: 20px auto 20px; }
.frec-titulo { margin: 0 0 20px; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; color: #1f1b2a; }
.frec-caja:not(.frec-vacio) .frec-titulo { padding: 0 30px; }   /* que no pise la x */
/* La x: cierra y vuelve a «¿Necesitas ayuda?» */
.frec-ocultar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  background: #f3efff;
  border: 0;
  border-radius: 50%;
  color: #5b3fa8;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.frec-ocultar .mph { width: 15px; height: 15px; }
.frec-selects { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.frec-select {
  position: relative;
  display: flex;
  align-items: center;
  background: #f6f4fb;
  border-radius: 14px;
}
.frec-select .mph {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #5b3fa8;
  pointer-events: none;
}
.frec-select::after {                /* flechita del desplegable */
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid #5b3fa8;
  border-bottom: 2px solid #5b3fa8;
  transform: rotate(45deg);
  pointer-events: none;
}
.frec-select select {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 36px 0 38px;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 16px;               /* 16 px o más: el iPhone no hace zoom */
  font-weight: 700;
  color: #1f1b2a;
  cursor: pointer;
  outline: none;
}
.frec-lista { text-align: left; }
.frec .actividad-item-rec { background: #f6f4fb; box-shadow: none; }
.frec-nada { margin: 4px 0 2px; font-size: 13px; line-height: 1.45; color: #6b6878; text-align: center; }
.frec-mas {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 12px;
  background: #fff;
  border: 1.5px solid #e3ddf2;
  border-radius: 14px;
  color: #5b3fa8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ===========================================================================
   03 · STORIES (novedades · diseño anterior: la home nueva usa la 03b)
   =========================================================================== */

#news-stories.stories-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 8px 20px 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#news-stories.stories-container::-webkit-scrollbar { display: none; }

#news-stories .story-item {
  flex: 0 0 27%;
  max-width: 27%;
  min-width: 90px;
  scroll-snap-align: start;
  color: inherit;
  text-decoration: none;
}
#news-stories .story-item:first-child { margin-left: 40px; }
#news-stories .story-item:last-child  { margin-right: 20px; }

#news-stories .story-thumb {
  position: relative;
  width: 100%;
  padding-top: 155%;
  overflow: hidden;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
}
#news-stories .story-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0) 55%);
}
#news-stories .story-title {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  word-break: break-word;
}
#news-stories .story-item:active .story-thumb {
  transform: scale(.96);
  transition: transform .08s ease-out;
}


/* ===========================================================================
   03b · HOME («Elige tu camino»)
   ---------------------------------------------------------------------------
   La vista nuevo/mangapp-home.twig, con estética de app de deporte. Títulos
   grandes, sin cursiva y un pelín espaciados, con el mismo título enorme y
   casi transparente detrás, que se sale por los lados de la columna. Las rutas,
   tarjetas altas y numeradas que se deslizan de lado y llegan hasta el borde
   de la pantalla; el «cuadro», una sola tarjeta cuadrada (el mapa, con su
   botón de agrandar, o una imagen con enlace). El idioma flota arriba a la
   derecha mientras se está en la home.
   =========================================================================== */

.mhome { padding: 4px 0 30px; }
/* En WordPress la fila de la home no tiene relleno y la columna va de borde a borde:
   aquí se le da el mismo margen que al resto de la app (en el simulador ya lo pone
   su columna). Lo que va a todo el ancho sigue llegando al borde. */
.wpb_wrapper > .mhome { padding-left: 27.5px; padding-right: 27.5px; }

.mhome-idioma {
  position: fixed;
  top: 12px;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 950;
}
.mhome-idioma .mangapp-lang {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(51, 38, 75, .14);
}
@media (max-width: 767px) {
  .mhome-idioma { top: max(26px, calc(env(safe-area-inset-top) + 12px)); }
}

.mhome-bloque { margin: 0 0 44px; }   /* 19/11: más aire entre bloques (antes 30 px) */

/* NUEVO (19/11) · El contador «¡Quedan X días!» y «¡Consigue pases!» (los sorteos de
   MART, con las mismas tarjetas). Los dos salen ocultos y los enseña el JS. */
.mhome-bloque[hidden] { display: none; }
.mhome-cuenta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px 24px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .25) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 86% 26%, rgba(255, 255, 255, .2) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 70% 84%, rgba(255, 255, 255, .16) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 80%, rgba(255, 204, 0, .4) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 94% 70%, rgba(255, 204, 0, .3) 0 1px, transparent 2px),
    radial-gradient(120% 150% at 0% 0%, #7a4bd1 0%, #3d2380 48%, #1a1226 100%);
  box-shadow: 0 12px 28px rgba(51, 38, 75, .3);
  color: #fff;
}
.mhome-cuenta::after {             /* un brillo que pasa de vez en cuando */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: mcuenta-brillo 5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes mcuenta-brillo { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.mcuenta-antes {
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .28em;
  line-height: 1;
  text-transform: uppercase;
  color: #ffcc00;
}
.mcuenta-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.mcuenta-txt {
  font-family: Poppins, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.mcuenta-num { display: inline-flex; gap: 6px; perspective: 400px; }
.mcuenta-cifra {                   /* cada cifra, en una ficha como de reloj de paletas */
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 66px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2d1b4e 0 50%, #22143c 50% 100%);
  box-shadow: 0 5px 0 #0f0820, inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-family: Poppins, sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: #ffcc00;
  text-shadow: 0 0 16px rgba(255, 204, 0, .5);
  animation: mcuenta-cae .7s calc(var(--i) * .12s) cubic-bezier(.2, 1.3, .4, 1) both;
}
.mcuenta-cifra::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(0, 0, 0, .35);
}
@keyframes mcuenta-cae { from { transform: rotateX(-90deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mcuenta-cifra, .mhome-cuenta::after { animation: none; }
}

/* Cabecera de bloque: va de borde a borde de la pantalla (márgenes de 50% −
   50vw) para que el título de fondo pueda salirse de la columna; recorta lo
   que se pase de la pantalla, así que no ensancha la página. */
.mhome-cabecera {
  position: relative;
  margin: 0 calc(50% - 50vw) 14px;
  padding: 20px calc(50vw - 50%) 0;
  overflow: hidden;
}
/* Donde se puede, recorta solo a los lados: por abajo, las letras grandes siguen
   detrás de las tarjetas en vez de cortarse en recto */
@supports (overflow: clip) {
  .mhome-cabecera { overflow: visible; overflow-x: clip; }
}
.mhome-fondo {                     /* el título, enorme y casi transparente */
  position: absolute;
  top: -6px;
  left: 6px;
  font-family: Poppins, sans-serif;
  font-size: 78px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: #5b3fa8;
  opacity: .08;
  pointer-events: none;
  user-select: none;
}
.mhome-antetitulo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #5b3fa8;
}
.mhome-antetitulo::before {        /* rayita delante */
  content: '';
  flex: 0 0 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.mhome-titulo {
  position: relative;
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;             /* un pelín abierto */
  color: #1f1b2a;
}

/* Stories (saludos en vídeo): círculos con aro de color que se deslizan de lado,
   de borde a borde de la pantalla (sin ensancharla), con el nombre debajo */
.mhome-stories {
  display: flex;
  gap: 14px;
  margin: 0 calc(50% - 50vw);
  padding: 8px calc(50vw - 50%) 8px;  /* sitio para el halo */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mhome-stories::-webkit-scrollbar { display: none; }
.mhome-story {
  flex: 0 0 94px;                    /* se ven 3 enteros sin deslizar */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #1f1b2a;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mhome-story:focus { outline: none; }
.mhome-story:focus-visible .mhome-story-aro { outline: 2px solid #5b3fa8; outline-offset: 2px; }
.mhome-story-aro {                 /* como el aro de las stories de Instagram, en morado:
                                      aro de degradado, hueco del color del fondo y la foto */
  box-sizing: border-box;            /* medidas con el aro dentro: la foto, centrada */
  display: block;
  width: 92px;
  height: 92px;
  padding: 3px;                      /* el grosor del aro */
  background: linear-gradient(45deg, #d8b4fe 0%, #a855f7 40%, #7c3aed 70%, #5b3fa8 100%);
  border-radius: 50%;
  /* (la versión anterior: background #a184e4 y un halo,
     box-shadow 0 0 6px 1px rgba(110, 72, 200, .42), 0 0 16px 4px rgba(226, 35, 47, .1)) */
}
.mhome-story-aro img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
  border: 3px solid #dacafa;         /* el hueco, del color del fondo de la app */
  border-radius: 50%;
}
.mhome-story:active .mhome-story-aro { transform: scale(.95); }
.mhome-story-nombre {
  max-width: 94px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* «Un mensaje para fans»: en una línea en los 4 idiomas. A 30 px no cabe en un
   móvil de 375 (pide 345 px de 320): baja solo lo justo y crece con la pantalla */
.mhome-b-stories .mhome-titulo { font-size: min(30px, 6.8vw); white-space: nowrap; }

/* El vídeo, a pantalla completa y centrado (lo crea el JS) */
.mstory-fondo {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  opacity: 0;
  transition: opacity .2s ease;
}
.mstory-fondo.open { opacity: 1; }
.mstory {
  position: fixed;
  inset: 0;
  z-index: 3001;
  display: flex;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
  color: #fff;
  opacity: 0;
  transition: opacity .2s ease;      /* sin transform: no se lleva bien con el vídeo */
  touch-action: none;                /* deslizar hacia abajo cierra, sin mover la página */
}
.mstory.open { opacity: 1; }
.mstory[hidden],
.mstory-fondo[hidden] { display: none !important; }
.mstory-barras { display: flex; gap: 4px; padding: 0 12px; }
.mstory-barra { flex: 1; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .3); border-radius: 2px; }
.mstory-barra i { display: block; width: 0; height: 100%; background: #fff; }
.mstory-barra.hecha i { width: 100%; }
.mstory-cab {                      /* siempre encima del vídeo: la ✕ se puede tocar */
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.mstory-foto { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; background: #333; }
.mstory-nombre { flex: 1; margin: 0; font-size: 14px; font-weight: 800; line-height: 1.2; color: #fff; }
.mstory-cerrar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, .16);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mstory-cerrar .mph { width: 22px; height: 22px; }
.mstory-cerrar::after {            /* más sitio para el dedo */
  content: '';
  position: absolute;
  inset: -8px;
}
.mstory-medio {                    /* el sitio del vídeo: el vídeo nunca se sale de aquí */
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  margin: 0 0 6px;
}
.mstory-video {                     /* centrado y entero, sea vertical u horizontal; lo de
                                      alrededor queda libre (tocarlo cierra) */
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: #000;
  border-radius: 12px;
  transform: translate(-50%, -50%);
}

/* Rutas: la fila sale de la columna hasta los bordes de la pantalla (márgenes
   de 50% − 50vw) y el padding deja la primera tarjeta alineada con la columna.
   No ensancha la página: mide justo lo que la pantalla. Al deslizar, cada
   tarjeta encaja centrada (la primera y la última, en su sitio). */
.mhome-rutas {
  display: flex;
  gap: 12px;
  margin: 0 calc(50% - 50vw) -16px;    /* el sitio extra de abajo no ocupa */
  padding: 4px calc(50vw - 50%) 36px;  /* sitio para la sombra de las tarjetas */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mhome-rutas::-webkit-scrollbar { display: none; }

.mhome-ruta,
.mhome-cuadro {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #2f2b3a;
  box-shadow: 0 10px 24px rgba(51, 38, 75, .22);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.mhome-ruta {
  flex: 0 0 74%;
  max-width: 270px;
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
}
.mhome-ruta:active,
a.mhome-cuadro:active { transform: scale(.97); }

.mhome-ruta-img,
.mhome-cuadro-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Degradado para que el texto se lea sobre cualquier imagen */
.mhome-ruta::after,
a.mhome-cuadro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 30, .88) 0%, rgba(20, 16, 30, .35) 40%, rgba(20, 16, 30, 0) 62%);
}

.mhome-ruta-etiqueta {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.mhome-ruta-pie {
  position: absolute;
  left: 15px;
  right: 12px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.mhome-ruta-textos {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mhome-ruta-titulo {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #fff;
}
/* El número de la ruta, grande y medio transparente, arriba a la derecha */
.mhome-ruta-num {
  position: absolute;
  top: 6px;
  right: 12px;
  z-index: 1;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  color: #fff;
  opacity: .55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.mhome-ruta-texto {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, .85);
}
.mhome-ruta-ir {
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #5b3fa8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}
.mhome-ruta-ir .mph { width: 18px; height: 18px; }

/* Cuadro: una tarjeta cuadrada, sin deslizar */
.mhome-cuadro { aspect-ratio: 1 / 1; }
.mhome-cuadro-embed { background: #fff; }

/* El mapa: el cuadro enseña el mapa (de arriba) y el botón «Agrandar» */
.mhome-mapa {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}
.mhome-mapa .mhome-cuadro-img { object-position: center 18%; }
.mhome-agrandar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 12px;
  background: #1f1b2a;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(20, 16, 30, .3);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.mhome-agrandar .mph { width: 15px; height: 15px; }
/* El mapa navegable (vista mapa-recinto) dentro del cuadro, en vez de a
   pantalla completa */
.mhome-cuadro-embed > *,
.mhome-cuadro-embed .zona-drag-mapa,
.mhome-cuadro-embed #map-container {
  height: 100% !important;
  border: 0;
}


/* Hoja de página (rutas que se abren sin salir de la home) */
.psheet { height: 78vh; height: 78dvh; }
.psheet .gsheet-scroll { flex: 1; padding: 10px; }
/* Lo escrito en la propia app (la explicación del juego, el contenido de una ruta):
   con aire a los lados; las páginas de WordPress ya traen el suyo */
.psheet-cuerpo:not(:has(.vc_row)) { padding: 4px 14px 24px; }
.psheet-cuerpo:not(:has(.vc_row)) > p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.psheet-titulo {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #1f1b2a;
  display:none;
}
.psheet-cargando {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  font-size: 13px;
  color: #6b6878;
}
.psheet-cargando .onachan-spinner { border-color: #5b3fa8; border-top-color: transparent; }
.psheet-cuerpo .vc_row { margin-left: 0 !important; margin-right: 0 !important; }
.psheet-cuerpo iframe { max-width: 100%; }

/* Hoja del mapa: 70 % de la pantalla, el mapa ocupa toda la hoja */
.msheet { height: 70vh; height: 70dvh; }
.mvisor {
  position: relative;
  flex: 1;
  overflow: hidden;
  margin: 14px 0 0;
  background: #f6f4fb;
  border-radius: 0;
  touch-action: none;            /* los dedos mueven el mapa, no la página */
  cursor: grab;
}
.mvisor:active { cursor: grabbing; }
.mvisor-img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none !important;
  height: auto;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.mvisor-pista {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 6px 12px;
  transform: translateX(-50%);
  background: rgba(31, 27, 42, .78);
  border-radius: 999px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.mvisor.tocado .mvisor-pista { display: none; }
.mvisor-botones {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mvisor-boton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 27, 42, .22);
  color: #1f1b2a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mvisor-boton:active { background: #f1eef8; }
.mvisor-boton .mph { width: 18px; height: 18px; }

/* Imagen a lo ancho (el cartel) */
.mhome-imagen {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(51, 38, 75, .18);
}
.mhome-imagen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Lista de [mbv]/[shortcode] (p. ej. [mangapp_actividades …]) */
.mhome-shortcode { margin: 0; }

/* [mangapp_ids]: la chuleta de ids (solo la ve quien puede editar) */
.mangapp-ids {
  margin: 0 0 20px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  font-size: 12px;
}
.mangapp-ids table { width: 100%; border-collapse: collapse; }
.mangapp-ids th,
.mangapp-ids td {
  padding: 5px 6px;
  border-bottom: 1px solid #ece9f3;
  text-align: left;
  vertical-align: top;
}
.mangapp-ids code { font-size: 11px; user-select: all; }


/* ===========================================================================
   03c · FRANJA DE PUBLICIDAD (bajo el logo · nuevo/mangapp-publi.twig)
   ---------------------------------------------------------------------------
   De borde a borde de la pantalla (sin ensancharla), en morado oscuro: texto a
   la izquierda y el vídeo de la carta a la derecha, que sobresale un poco por
   arriba y por abajo de la franja.
   =========================================================================== */

.mpubli {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 112px;
  margin: 12px calc(50% - 50vw) 16px;
  padding: 14px calc(50vw - 50%) 14px;
  background: linear-gradient(115deg, #1f1636 0%, #35255f 55%, #5b3fa8 100%);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a.mpubli:active { filter: brightness(1.08); }
/* La app, al volver a Inicio, pone display: block a la franja (.mangapp_banner) y
   la rompía: el texto arriba y la carta debajo. Va en fila siempre que se vea. */
.mpubli.mangapp_banner:not([style*="none"]) { display: flex !important; }
/* Al cerrar una hoja el foco vuelve a lo que la abrió: con el dedo no se marca
   (sin esto salían dos rayas azules en la franja); con el teclado, sí. */
.mpubli:focus,
.mhome-ruta:focus,
.mhome-cuadro:focus { outline: none; }
.mpubli:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.mhome-ruta:focus-visible,
.mhome-cuadro:focus-visible { outline: 2px solid #5b3fa8; outline-offset: 3px; }
.mpubli-textos {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.mpubli-titulo {
  margin: 0 0 6px;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .05em;           /* un poco de aire entre letras */
  text-transform: uppercase;
  color: #fff;
}
.mpubli-texto {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.42;
  color: rgba(255, 255, 255, .8);
}
/* La mano que señala la carta, a su derecha (no la mueve), girada 30° hacia
   ella: toda la franja se puede tocar */
.mpubli-clic {
  position: absolute;
  right: 7px;
  bottom: 9px;
  z-index: 1;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
  pointer-events: none;
}
.mpubli-clic .mph { display: block; width: 22px; height: 22px; transform: rotate(-30deg); }
/* La carta en grande, en la hoja que abre el botón */
.mpubli-hoja { text-align: center; }
.mpubli-hoja video,
.mpubli-hoja .mpubli-anim {
  display: block;
  width: 70%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 14px 22px rgba(31, 22, 54, .35));
}
.mpubli-hoja p { margin: 0; font-size: 14px; line-height: 1.6; color: #3a3a44; }
/* Los dos precios, en una caja a todo el ancho partida en dos. La de 9 € lleva
   a «Sorteos de M&G y firmas» de la pestaña de usuario (data-ir="sorteos"). */
.mpubli-precios {
  display: flex;
  margin: 18px 0 4px;
  overflow: hidden;
  background: #f6f4fb;
  border-radius: 18px;
  text-align: left;
}
.mpubli-precio {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  color: #3a3a44;
  text-decoration: none;
}
.mpubli-hoja .mpubli-precio p { font-size: 12px; line-height: 1.45; color: inherit; }
.mpubli-euros {
  font-family: Poppins, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  color: #1f1b2a;
}
.mpubli-precio-sorteo {
  padding-bottom: 40px;              /* sitio para la flecha */
  background: linear-gradient(150deg, #35255f 0%, #5b3fa8 100%);
  color: rgba(255, 255, 255, .88) !important;
  -webkit-tap-highlight-color: transparent;
}
.mpubli-precio-sorteo .mpubli-euros { color: #ffcc00; }
.mpubli-precio-sorteo:active { filter: brightness(1.1); }
.mpubli-precio-sorteo:focus { outline: none; }
.mpubli-precio-sorteo:focus-visible { outline: 2px solid #ffcc00; outline-offset: -4px; }
.mpubli-ir {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ffcc00;
  border-radius: 50%;
  color: #1f1b2a;
}
.mpubli-ir .mph { width: 14px; height: 14px; }
.mpubli-video {
  flex: 0 0 134px;
  width: 134px;
  height: 145px;               /* 400 × 432, como el vídeo */
  margin: -30px -10px -30px 0; /* sobresale de la franja */
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35));
}


/* ===========================================================================
   04 · MAPA
   =========================================================================== */

.zona-drag-mapa {
  position: relative;
  background: #fff;
  border-top: .5px solid #000;
  border-bottom: .5px solid #000;
}

img.map-zoom {
  width: 40%;
  margin-top: 12px;
  margin-bottom: 10px;
}

#map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;   /* evita el salto al ocultarse la barra del navegador */
  overflow: hidden;
  touch-action: none;
}
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  cursor: grab;
  will-change: transform, width;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}


/* ===========================================================================
   05 · FILTROS (calendario, favoritos e invitados) e IDIOMA
   ---------------------------------------------------------------------------
   Rediseño: arriba, una barra pequeña (el idioma a la derecha y, en Invitados,
   el orden a la izquierda). Debajo, las filas de filtros: día (chips de dos
   líneas), zona y tipo (píldoras de una línea; la zona con su nombre entero
   aunque se alargue). El «Todo» de cada fila es un icono (calendario, zona,
   etiqueta, invitados) y es lo único morado, junto con el día y la zona
   marcados; cada tipo, al marcarlo, se pinta de su color. El «hay más a la
   derecha» es un difuminado.
   =========================================================================== */

/* Barra de arriba de cada sección */
.mangapp-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 8px;
}
/* Sus pastillas: el idioma y el orden de invitados */
.mangapp-lang,
.mangapp-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  height: 24px;
  margin: 0;
  padding: 0 18px 0 9px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(51, 38, 75, .12);
  border-radius: 999px;
  color: #4f4864;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mangapp-lang i { font-size: 11px; opacity: .75; pointer-events: none; }
.mangapp-lang::after {               /* flechita del desplegable */
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
  pointer-events: none;
}
/* El desplegable de verdad va invisible encima de TODA la pastilla: se abre
   tocando el globo, el texto o la flecha. Lo que se ve es .mangapp-lang-txt
   (lo pone el JS). Su letra es de 16 px: con menos, el iPhone hace zoom. */
.mangapp-lang-txt { pointer-events: none; }
.mangapp-lang-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.mangapp-lang:focus-within { box-shadow: 0 0 0 2px rgba(91, 63, 168, .35); }
/* El orden de invitados, a la izquierda: un icono u otro según A-Z / Z-A */
.mangapp-pill { margin-right: auto; padding: 0 10px 0 8px; }
.mangapp-pill .mph { width: 13px; height: 13px; }
.gsort .mph-orden-za,
.gsort.is-za .mph-orden-az { display: none; }
.gsort.is-za .mph-orden-za { display: block; }

/* Franja a sangre, de borde a borde de la pantalla. Antes eran márgenes de
   -50px, que hacían la página más ancha que el móvil (22 px por cada lado) y,
   con ella, las hojas modales (position: fixed), que se salían por la derecha.
   Ahora la pinta un border-image que sobresale a los lados (outset): eso no
   ensancha la página. Raya arriba, fondo y raya abajo, en un solo degradado. */
#activity-filters-calendar,
#activity-filters-favorites,
.gfilters {
  margin: 0 0 22px;
  padding: 14px 0;
  border-image: linear-gradient(to bottom,
      rgba(51, 38, 75, .10) 0 1px,
      rgba(255, 255, 255, .45) 1px calc(100% - 1px),
      rgba(51, 38, 75, .10) calc(100% - 1px)) fill 0 / 0 / 0 100vmax;
}

.filters-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;         /* el scroll lo llevan las filas, no el contenedor */
}

/* Cada fila se desliza de lado. Lleva margen por dentro para que la sombra de
   los chips no se corte (el scroll lateral recorta todo lo que sobresale de la
   fila) y márgenes negativos que lo compensan, así no ocupa más. */
.filter-group-calendar,
.filter-group-favorites,
.gfilters-chips {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: -6px -8px -12px;
  padding: 6px 8px 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* Difumina el borde derecho: se intuye que hay más chips */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
}
.filter-group-calendar::-webkit-scrollbar,
.filter-group-favorites::-webkit-scrollbar,
.gfilters-chips::-webkit-scrollbar { display: none; }
/* Hueco al final para que el último chip salga entero al llegar al tope */
.filter-group-calendar::after,
.filter-group-favorites::after,
.gfilters-chips::after {
  content: '';
  flex: 0 0 18px;
}

/* Chip de DÍA (dos líneas: día de la semana y número) */
.filter-option-calendar,
.filter-option-favorites {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 52px;
  padding: 6px 12px;
  background-color: #fff;
  border-radius: 14px;
  color: #4f4864;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(51, 38, 75, .12);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.filter-option-calendar:active,
.filter-option-favorites:active { transform: scale(.96); }

.calendar-dias { min-width: 52px; }
.todo          { min-width: 52px; }

.filter-option-calendar .day-name,
.filter-option-favorites .day-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #7a7489;
}
.filter-option-calendar .day-number,
.filter-option-favorites .day-number {
  margin-top: 1px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  color: #2f2b3a;
}

/* «Todo»: el icono de la fila */
.mph { display: block; flex: 0 0 auto; }
.todo .mph { width: 21px; height: 21px; }

/* ZONAS, TIPOS y categorías de invitados: píldoras de una línea */
.filter-pildoras .filter-option-calendar,
.filter-pildoras .filter-option-favorites,
.gchip {
  flex-direction: row;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
}
.filter-pildoras .todo,
.gchip-todo { min-width: 46px; justify-content: center; }
.filter-pildoras .todo .mph,
.gchip-todo .mph { width: 17px; height: 17px; }

.filter-option-calendar .zone-label,
.filter-option-favorites .zone-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #2f2b3a;
  text-transform: uppercase;
}
.filter-tipos .tipo-label {
  font-size: 12px;
  font-weight: 700;
  color: #3a3a44;
}
.tipo-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tipo-fg, #8a8699);
}

/* Marcado: morado (día, zona y los «Todo») … */
.filter-option-calendar.active,
.filter-option-favorites.active {
  background-color: #5b3fa8;
  color: #fff;
  box-shadow: 0 3px 8px rgba(91, 63, 168, .35);
}
.filter-option-calendar.active span,
.filter-option-favorites.active span { color: #fff; }
/* … salvo un tipo, que se pinta de SU color */
.filter-tipos .calendar-tipos.active {
  background-color: var(--tipo-fg, #5b5670);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.filter-option-calendar.active .tipo-dot,
.filter-option-favorites.active .tipo-dot { background: #fff; }

/* Categorías de invitados (mismas píldoras; son <button>) */
.gchip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  background: #fff;
  border: 0;
  color: #3a3a44;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(51, 38, 75, .12);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.gchip-todo { color: #4f4864; }
.gchip:active { transform: scale(.96); }
.gchip:focus { outline: none; }
.gchip:focus-visible { outline: 2px solid #5b3fa8; outline-offset: 2px; }
.gchip.is-on {
  background: #5b3fa8;
  color: #fff;
  box-shadow: 0 3px 8px rgba(91, 63, 168, .35);
}

/* La flecha «hay más a la derecha» ya no se usa (la sustituye el difuminado) */
.scroll { display: none; }

/* Filtros de invitados del diseño anterior (ya no salen en el Twig) */
.filter-option-invitado {
  padding: 6px 15px;
  background-color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  transition: background-color .3s, color .3s;
}
.filter-option-invitado.invitado-active {
  background-color: #007bff;
  color: #fff;
}
.filter-option-invitado[data-value="all"] { font-size: 12px; }
.filter-option-invitado[data-value]:not([data-value="all"]) { padding-top: 8px; }

.invt-peq {
  display: block;
  margin-bottom: -5px;
  font-size: 10px;
  text-align: center;
}


/* ===========================================================================
   06 · LISTA DE ACTIVIDADES
   ---------------------------------------------------------------------------
   Rediseño: cada actividad en una tarjeta blanca; imagen de 68 px con el día
   encima; hora + etiqueta del tipo (cada tipo con su color); título; UNA línea
   de la descripción con «+», que abre la ficha (sección 06b); y la zona.
   =========================================================================== */

.lineup-container { font-family: Arial, sans-serif; }

.favorites-list { padding-left: 0 !important; }
.favorites-list li { border-top: none; }

.actividad-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid #000;
}

.actividad-item-calendar,
.actividad-item-favorites,
.actividad-item-sc,
.actividad-item-rec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 8px 10px 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(51, 38, 75, .08);
}

.actividad-thumbnail {
  position: relative;
  flex: 0 0 68px;
}
.actividad-thumbnail img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
}

/* El día, como pastilla dentro de la imagen */
.day-indicator {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 1;
  padding: 2px 6px;
  background-color: rgba(20, 16, 30, .72);
  border-radius: 6px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.actividad-details {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.actividad-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.actividad-time {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #5b3fa8;
}

/* Etiqueta del tipo. Los colores de cada tipo están arriba del todo, en la
   sección 00. */
.actividad-tipo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--tipo-bg, #ecebf2);
  color: var(--tipo-fg, #5b5670);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .4px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* El título, hasta tres líneas: con dos se perdían cosas como «(CAT)» al final */
.actividad-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f1b2a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* La descripción de la API: UNA línea y «+» para leerla entera en la ficha */
.actividad-desc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.actividad-desc {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.4;
  color: #6b6878;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}
.actividad-mas {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ece5ff;
  color: #5b3fa8;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.actividad-mas .mph { width: 10px; height: 10px; }
.actividad-mas::after {      /* zona de toque más grande que el círculo */
  content: '';
  position: absolute;
  inset: -9px -6px;
}

.actividad-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 1px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b6878;
}
.actividad-location i {
  font-size: 11px;
  color: #a39dbb;
}

.favorites-button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0 4px;
  font-size: 24px;
}
/* Corazón de las actividades y de su ficha (el de la ficha de invitados no cambia) */
.favorites-button .fav-icon.fa-regular,
.asheet-fav.fa-regular { color: #b9b3c9; }
.favorites-button .fav-icon.fa-solid,
.asheet-fav.fa-solid   { color: #ff4d7d; }

.fav-checkbox { display: none; }
.fav-label { cursor: pointer; }
.fav-label svg { transition: fill .2s ease; }
.favorites-button.loading .fav-label svg { fill: gray; }
.favorites-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid transparent;
  border-top-color: gray;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}



/* --- Mini ([mangapp_actividades … formato="mini"], «Lo +popular») ---
   Unos 2/3 de alto: imagen pequeña, «SÁB 5 · 18:00» y la zona (en el sitio del
   tipo; el tipo va oculto, para la ficha), el título en una línea y el
   corazón. Toda la tarjeta abre la ficha: el «+» se estira por encima de ella
   (transparente; el corazón queda encima). */
.mangapp-sc-mini .actividad-item-sc {
  position: relative;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 7px 6px 7px 7px;
  border-radius: 14px;
}
.mangapp-sc-mini .actividad-thumbnail { flex-basis: 46px; }
.mangapp-sc-mini .actividad-thumbnail img { width: 46px; height: 46px; border-radius: 10px; }
.mangapp-sc-mini .actividad-details { gap: 2px; }
.mangapp-sc-mini .actividad-meta { flex-wrap: nowrap; gap: 5px; min-width: 0; }
.mangapp-sc-mini .actividad-meta .day-indicator {   /* el día, delante de la hora */
  position: static;
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border-radius: 0;
  color: #5b3fa8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.3;
}
.mangapp-sc-mini .actividad-meta .day-indicator::after { content: '·'; margin-left: 5px; }
.mangapp-sc-mini .actividad-time { flex: 0 0 auto; font-size: 11.5px; }
.mangapp-sc-mini .actividad-tipo { display: none; }
.mangapp-sc-mini .actividad-lugar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-left: 3px;
  color: #6b6878;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.mangapp-sc-mini .actividad-lugar i { font-size: 10px; color: #a39dbb; }
.mangapp-sc-mini .actividad-zona { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mangapp-sc-mini .actividad-title {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mangapp-sc-mini .actividad-desc { display: none; }
.mangapp-sc-mini .actividad-desc-row { position: static; }
.mangapp-sc-mini .actividad-mas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: transparent;
}
.mangapp-sc-mini .actividad-mas .mph,
.mangapp-sc-mini .actividad-mas::after { display: none; }
.mangapp-sc-mini .actividad-mas:focus { outline: none; }

/* «Lo +popular» numerado y en páginas de 5 que se deslizan de lado (shortcode con
   paginas="5"): el número, grande y suave a la izquierda (como los títulos de
   fondo); debajo, un punto por página (el JS marca el de la que se ve). */
.mangapp-sc-num .actividad-item-sc { gap: 8px; padding-left: 4px; }
.sc-num {
  flex: 0 0 30px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
  color: rgba(91, 63, 168, .18);
}
.sc-num.sc-num-2 { flex-basis: 38px; padding-left: 5px; }   /* el 10: un pelín más de aire a la izquierda */
.mangapp-sc-paginas {
  display: flex;
  margin: 0 -6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mangapp-sc-paginas::-webkit-scrollbar { display: none; }
.mangapp-sc-pag { flex: 0 0 100%; box-sizing: border-box; padding: 2px 6px 4px; scroll-snap-align: start; }
.mangapp-sc-puntos { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.mangapp-sc-puntos i { width: 7px; height: 7px; border-radius: 50%; background: rgba(91, 63, 168, .25); transition: width .2s; }
.mangapp-sc-puntos i.on { width: 18px; border-radius: 4px; background: #5b3fa8; }
/* Un título largo ensanchaba la página entera (las flex no encogen por debajo de su
   contenido): se salía por la derecha y la página siguiente quedaba descolocada.
   Ahora la página y la tarjeta encogen y el título se corta con «…». */
.mangapp-sc-pag { min-width: 0; overflow: hidden; }
.mangapp-sc-pag .actividad-item-sc { min-width: 0; }
.mangapp-sc-pag .actividad-details { flex: 1 1 auto; min-width: 0; }
.mangapp-sc-pag .actividad-title { overflow: hidden; }
.mangapp-sc-mini .actividad-mas:focus-visible { outline: 2px solid #5b3fa8; outline-offset: 2px; }
.mangapp-sc-mini .favorites-button { position: relative; z-index: 2; font-size: 21px; }


/* ===========================================================================
   06b · FICHA DE LA ACTIVIDAD (hoja que se abre con «+»)
   ---------------------------------------------------------------------------
   Usa la hoja de invitados (sección 08) tal cual; aquí solo su contenido. Va
   por encima de la del invitado: se puede abrir desde ella.
   =========================================================================== */

.gsheet-backdrop.asheet-backdrop { z-index: 2002; }
.gsheet.asheet                   { z-index: 2003; }

.asheet-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 16px;
}
.asheet-img {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  background: #eee;
}
.asheet-headtext {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.asheet .actividad-time { text-transform: uppercase; }   /* «SÁB 5 · 12:00» */
.asheet-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #1f1b2a;
}
.asheet-fav {
  flex: 0 0 auto;
  padding: 2px 2px 0 6px;
  font-size: 26px;
}
.asheet-desc {
  font-size: 14px;
  line-height: 1.62;
  color: #3a3a44;
  white-space: pre-line;
}


/* ===========================================================================
   07 · INVITADOS · TARJETA
   ---------------------------------------------------------------------------
   Rediseño: como las actividades. Foto redonda de 64 px; el nombre, debajo la
   categoría y la bio en dos líneas.
   =========================================================================== */

.gcard {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 8px 10px 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(51, 38, 75, .08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.gcard:active {
  transform: scale(.985);
  box-shadow: 0 1px 5px rgba(51, 38, 75, .10);
}
.gcard:focus { outline: none; }
.gcard:focus-visible {
  outline: 2px solid #5b3fa8;
  outline-offset: 2px;
}

.gcard-thumb { flex: 0 0 64px; }
.gcard-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  background: #eee;
}

.gcard-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.gcard-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: #1f1b2a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* La categoría, con el aspecto de la etiqueta de tipo de las actividades */
.gcard-chip {
  display: inline-block;
  padding: 2px 8px;
  background: #ece5ff;
  border-radius: 8px;
  color: #5b3fa8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .4px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* La bio se corta a dos líneas: el texto entero se lee en la ficha */
.gcard-bio {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #6b6878;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gcard-chevron {
  flex: 0 0 auto;
  padding: 0 4px 0 2px;
  font-size: 24px;
  line-height: 1;
  color: #c3c0cf;
}

/* Fondos especiales por invitado (se mantienen del diseño anterior) */
.gcard[data-invitado-id="18932"] { background: #fbe7a8; }
.gcard[data-invitado-id="28159"] { background: #ffdcf0; }


/* ===========================================================================
   08 · HOJA MODAL (ficha del invitado y, con estos mismos estilos, la de la
   actividad)
   ---------------------------------------------------------------------------
   Se cierran tocando fuera (el fondo oscurecido). Por eso no pasan del 78 % de
   la pantalla: arriba siempre se ve un trozo de lo de detrás, que es lo que
   invita a tocar fuera. También con Escape.
   No hay botón de cerrar a la vista; sí uno oculto para los lectores de
   pantalla (VoiceOver…), que si no no tendrían cómo salir.
   =========================================================================== */

.gsheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 16, 30, .55);
  opacity: 0;
  transition: opacity .22s ease;
}
.gsheet-backdrop.open { opacity: 1; }
.gsheet-backdrop,
.mstory-fondo { touch-action: none; }   /* arrastrar sobre el fondo no mueve la página */

.gsheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  max-height: 78dvh;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22, .9, .3, 1);
}
.gsheet.open { transform: translateY(0); }
/* Cerradas, fuera del todo: si no, su sombra asomaba por abajo de la pantalla
   (una franja oscura, más fuerte cuantas más hojas) */
.gsheet[hidden],
.gsheet-backdrop[hidden] { display: none !important; }

/* Botón de cerrar solo para lectores de pantalla (invisible, pero se puede
   enfocar y pulsar) */
.gsheet-cerrar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gsheet-scroll {
  padding: 22px 22px 90px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;   /* el scroll no se contagia a la página */
}

.gsheet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.gsheet-img {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  background: #eee;
}
.gsheet-headtext {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.gsheet-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #1f1b2a;
}

.gsheet-bio {
  font-size: 14px;
  line-height: 1.62;
  color: #3a3a44;
  text-align: justify;
}
.gsheet-bio p { margin: 0 0 10px; }
.gsheet-bio p:last-child { margin-bottom: 0; }
.gsheet-bio ul,
.gsheet-bio ol { margin: 8px 0; padding-left: 20px; }
.gsheet-bio a { color: #5b3fa8; }

.gsheet-subtitle {
  margin: 18px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a8699;
}

.gsheet-empty {
  margin: 0;
  font-size: 13px;
  color: #8a8699;
}

/* Mientras haya una hoja abierta, la página de detrás no se mueve */
/* El candado ya NO toca el overflow del body: en iOS (WebKit), al quitar un
   overflow: hidden del body el scroll de la página se quedaba congelado hasta que algo
   se redibujaba (la pestaña de usuario se quedaba sin scroll). La página de detrás no se
   mueve porque el fondo oscuro de las hojas no deja arrastrar (touch-action: none) y lo
   de dentro de la hoja no contagia su scroll (overscroll-behavior: contain). */


/* ===========================================================================
   09 · ACTIVIDADES DENTRO DE LA FICHA DEL INVITADO
   ---------------------------------------------------------------------------
   Como las tarjetas de actividad, sin imagen (la foto ya es la del invitado):
     DÍA · HORA [TIPO]   ← el día y la hora, destacados
     Título
     una línea de descripción con «+» (si la hay)
     zona
   =========================================================================== */

.gsheet-acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ece9f3;
}

.actividad-guest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 6px 11px 14px;
  background: #f6f4fb;
  border-radius: 14px;
}

.aguest-cuando {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .2px;
  color: #5b3fa8;
  white-space: nowrap;
}
.aguest-dia { text-transform: uppercase; }

.actividad-guest-item .actividad-title { font-size: 15px; }
.actividad-guest-item .favorites-button { font-size: 22px; }


/* ===========================================================================
   10 · CABECERA DE USUARIO Y PUNTOS
   =========================================================================== */

.user_app_top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -10px -15px 0;
  padding: 20px;
  background-color: #33264b;
  background-image: url("https://participa.ficomic.com/wp-content/uploads/2025/12/magii.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  border-radius: 20px;
  color: #fff;
  font-size: 24px;
}

.user_app_historial {
  position: relative;
  /* De borde a borde de la pantalla, sin ensancharla (antes, márgenes de -50px:
     la página medía más que el móvil y las hojas se salían por la derecha) */
  margin: -100px calc(50% - 50vw) 0;
  padding: 20px 0;
  background-color: #695887;
}

.historial_content,
.intro-screen {
  padding: 40px 20px 0;
  color: #fff;
}
.historial_content h4 {
  padding-left: 10px;
  color: #fff;
  letter-spacing: 1px;
}

.user_app_left {
  padding-left: 10px;
  line-height: 26px;
}
.user_app_left h3 {
  margin: 0;
  padding: 5px 0;
  color: #fff;
  font-weight: 700;
}
.user_app_left .points-container {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 55%;
  color: #ffcc00;
  font-size: 26px;
  font-weight: 700;
  word-wrap: break-word;
}
.user_app_left .points-container span {
  display: inline-block;
  max-width: 70%;
  padding: 15px;
  background-color: #757575;
  border-radius: 50%;
  color: #ffcc00;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 10px rgb(255, 191, 0);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* Si no hay puntos, muestra 0 */
.user_app_left h4:empty::before { content: '0'; }

.user_app_right { display: none; }


/* ===========================================================================
   11 · PESTAÑAS DE PREMIOS
   =========================================================================== */

/* REDISEÑO: las pestañas, una barra morada del juego con la activa en dorado
   (el color de los Magic Points) y el icono encima; el contenido, una lámina
   clara que sale por debajo de la barra, de borde a borde de la pantalla. */
.user_app_tabs { margin: 22px 0 0; }
.user_app_tabs .tabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #33264b;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(51, 38, 75, .28);
}
.user_app_tabs .tabs li { flex: 1; margin: 0; }
.user_app_tabs .tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 9px;
  background: transparent;
  border-radius: 15px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s;
}
.user_app_tabs .tab-link:hover { background: rgba(255, 255, 255, .06); }
.user_app_tabs .tab-link .mph { width: 22px; height: 22px; }
.user_app_tabs .tab-link.active,
.user_app_tabs .tab-link.active:hover {
  background: #ffcc00;
  box-shadow: 0 4px 14px rgba(255, 204, 0, .35);
  color: #33264b !important;
}

#tab-content {
  margin: -24px calc(50% - 50vw) -50px;
  padding: 46px calc(50vw - 50%) 70px;
  background-color: #eceaf2;
  border: 0;
  border-radius: 28px 28px 0 0;
  /* Debajo, el mismo color hasta el final de la pantalla aunque haya poco
     contenido (antes asomaba una franja morada). Es una sombra: no alarga la
     página ni deja hacer scroll de más. Empieza 28 px por debajo del borde de
     arriba, así no toca las esquinas redondeadas. */
  box-shadow: 0 calc(100vh + 28px) 0 100vh #eceaf2;
}
/* Sitio al final del panel para que lo último suba por encima del botón flotante
   «SCAN QR» y de la barra de la app (si no, la página se acababa debajo de ellos y
   parecía que el scroll se atascaba) */
#tab-content { padding-bottom: 190px; }
.tab { display: none; }
.tab.active { display: block; }

#canjear,
#mis-premios { padding: 6px 0; }


/* ===========================================================================
   12 · RETOS
   =========================================================================== */

.reto-list {
  padding-left: 0;
  list-style-type: none;
}
.reto-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ccc;
  border-radius: 8px;
  transition: background-color .3s ease;
}
.reto-list li:hover { background-color: #e0e0e0; }

.reto-info {
  flex: 1;
  display: flex;
  align-items: center;
}
.reto-titulo {
  padding-top: 5px;
  padding-right: 5px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.reto-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.reto-puntos {
  margin: 0 auto 5px;
  font-size: 14px;
  font-weight: 700;
  color: #666;
}

.reto-completo,
.reto-pendiente,
.reto-canjeable,
.reto-fallado {
  width: 120px;
  height: 32px;
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  cursor: default;
}
.reto-completo  { background-color: #118edd; }
.reto-pendiente { background-color: #ffc107; }
.reto-fallado   { background-color: #f16b72; }
.reto-canjeable { background-color: #be63fd; }


/* ===========================================================================
   13 · QUIZ
   =========================================================================== */

.reto-quiz {
  padding: 50px;
  background: #fff;
  border-radius: 15px;
  color: #fff;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.reto-quiz h3 {
  margin: -10px -15px 20px;
  color: #000;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 15px;
  letter-spacing: 1px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: -25px;
}
.quiz-answer {
  margin: 5px 0;
  padding: 20px;
  background: #ff004d;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 13px;
  font-weight: bold;
  line-height: 17px;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, .2);
  transition: all .3s ease;
}
.quiz-answer:hover {
  background: #ffcc00;
  color: #333;
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, .3);
}
.quiz-answer:active {
  transform: scale(.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.quiz-answer[disabled] {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

.correct-answer {
  border: 2px solid #fff;
  color: #28a745;
  animation: blink-correct .5s alternate infinite;
}
.wrong-answer {
  border: 2px solid #fff;
  color: #dc3545;
  animation: shake .5s;
}

@keyframes blink-correct {
  from { box-shadow: 0 0 20px #28a745, 0 0 30px #28a745; }
  to   { box-shadow: 0 0 10px #28a745, 0 0 20px #28a745; }
}
@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  75%  { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.quiz-feedback {
  margin-top: 20px;
  margin-right: 0 !important;
  color: #7fad69;
  font-size: 16px;
  font-weight: bold;
  transition: all .3s ease-in-out;
}
.correct-message {
  color: #28a745;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
}
.wrong-message {
  color: #dc3545;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
}

.img-quiz {
  display: block;
  width: 150px;
  margin: 0 auto;
}


/* ===========================================================================
   14 · LO QUE SE CONSIGUE (nuevo/usuario-juego.twig)
   ---------------------------------------------------------------------------
   «La casa del terror de Onachan»: el juego (Onachan y el logo, un badge por
   reto, los puntos y los badges conseguidos) y las pestañas MART (sorteos de
   firmas + premios), BAG y MAP. El juego y la barra de pestañas miden lo
   mismo de ancho.
   Colores del juego: noche #1a1226 / #2a1840, rojo del logo #e2232f y el
   dorado de los Magic Points #ffcc00.
   =========================================================================== */

/* --- El juego: 5 badges por fila --- */
.juego-badges {
  position: relative;
  margin: 12px 0 0;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, #1a1226 0%, #2a1840 100%);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(20, 15, 31, .22);
  color: #fff;
  text-align: center;
}
/* Onachan asomando a la izquierda (la imagen lleva mucha sombra alrededor) y,
   encima, el logo; «¿Qué es esto?», discreto, en la esquina de arriba. La sombra se recorta por arriba y por
   los lados, con el borde del panel; por abajo sigue, detrás de los badges
   (sin corte recto). */
.juego-badges-cab {
  position: relative;
  margin: -14px -14px 8px;
  padding: 26px 14px 2px 34%;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}
@supports (clip-path: inset(0 0 -100px 0 round 22px 22px 0 0)) {
  .juego-badges-cab { overflow: visible; clip-path: inset(0 0 -120px 0 round 22px 22px 0 0); }
}
.juego-onachan {
  position: absolute;
  top: 50%;
  left: -7%;
  width: 52%;
  height: auto;
  transform: translateY(-48%);
  pointer-events: none;
}
.juego-cab-textos {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.juego-logo {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(226, 35, 47, .35)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
.juego-info {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .8) !important;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.juego-info::after {             /* más sitio para el dedo que la pastilla */
  content: '';
  position: absolute;
  inset: -8px -6px;
}
.juego-info:focus { outline: none; }
.juego-info:focus-visible { outline: 2px solid #ffcc00; outline-offset: 2px; }
.jbadges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 9px;
}
.jbadge {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, .05);
  border: 1.5px dashed rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: rgba(255, 255, 255, .26);      /* el dibujo, apagado: aún no está */
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.jbadge:focus { outline: none; }
.jbadge:focus-visible { outline: 2px solid #ffcc00; outline-offset: 3px; }
.jbadge-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
}
.jbadge-img svg { width: 50%; height: 50%; }
.jbadge-img img { width: 100%; height: 100%; object-fit: cover; }
.jbadge-pendiente .jbadge-img img,
.jbadge-fallado .jbadge-img img { filter: grayscale(1) brightness(.5); opacity: .55; }
/* Escaneado: dorado y latiendo, «¡toca para reclamar!» */
.jbadge-canjear {
  background: radial-gradient(circle at 50% 38%, #fff4b8 0%, #ffcc00 55%, #e0a800 100%);
  border: 0;
  color: #5a3d00;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, .3), 0 0 18px rgba(255, 204, 0, .6);
  animation: jbadge-latido 1.6s ease-in-out infinite;
}
@keyframes jbadge-latido {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(255, 204, 0, .22), 0 0 26px rgba(255, 204, 0, .8); }
}
.jbadge-pts {
  position: absolute;
  bottom: -7px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 1px 6px;
  background: #e2232f;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.45;
  white-space: nowrap;
}
/* Conseguido */
.jbadge-hecho {
  background: linear-gradient(145deg, #e2232f 0%, #7a1236 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(226, 35, 47, .35);
}
.jbadge-ok {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #ffcc00;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #1a1226;
  color: #1a1226;
}
.jbadge-ok svg { width: 11px; height: 11px; }
/* Fallado (el quiz del reto) */
.jbadge-fallado {
  border-style: solid;
  border-color: rgba(226, 35, 47, .5);
  color: rgba(226, 35, 47, .55);
}
/* El nombre del reto: para lectores de pantalla (y el aviso al tocarlo) */
.jbadge-nombre {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .jbadge-canjear { animation: none; }
}
/* Entre el logo y los badges, una fila: «120 POINTS» a la izquierda y «4/10» a la derecha */
.juego-marcador {
  position: relative;               /* encima de la sombra de Onachan */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 2px 12px;
}
.juego-puntos,
.juego-progreso {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  color: rgba(255, 255, 255, .55);
}
.juego-puntos .points-container span,
.juego-encontrados {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .01em;
  color: #ffcc00;
}
.juego-final {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  padding: 12px 18px;
  background: #ffcc00;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255, 204, 0, .45);
  color: #1a1226 !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

/* --- MART: sorteos de firmas + premios del juego --- */
.mart-seccion { margin: 0 0 24px; }
.mart-seccion:last-child { margin-bottom: 0; }
/* Aire debajo de las filas de sorteos de M&G y firmas y de premios (el margen
   negativo de -14 px de la fila se comía el hueco de debajo) */
.mart-seccion .firmas,
.mart-seccion .premios { margin-bottom: 10px; }   /* más concreto: .premios, más abajo, trae margin: … -14px */
.mart-seccion:last-child { padding-bottom: 20px; }
.mart-titulo {
  margin: 0 0 10px;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #33264b;
}
/* Premios: fila que se desliza de lado (de borde a borde, sin ensanchar) */
.premios {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 calc(50% - 50vw) -14px;
  padding: 2px calc(50vw - 50%) 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.premios::-webkit-scrollbar { display: none; }
.premio {
  position: relative;
  flex: 0 0 152px;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(51, 38, 75, .1);
}
.premio-foto { position: relative; margin: 0 0 8px; }
.premio-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1eef7;
  border-radius: 12px;
}
.premio-candado {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 18, 38, .55);
  border-radius: 12px;
  color: #fff;
}
.premio-candado svg { width: 32px; height: 32px; }
.premio-nombre {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: #1f1b2a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.premio-coste {
  align-self: flex-start;
  text-transform: uppercase;         /* «50 PUNTOS» */
  margin: 6px 0 0;
  padding: 2px 8px;
  background: #33264b;
  border-radius: 999px;
  color: #ffcc00;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.5;
}
.premio-coste b { font-size: 12px; }
.premio-desc {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #6b6878;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.premio .stock { margin: 6px 0 0; font-size: 11px; font-weight: 800; color: #e2232f; }
.premio .stock:empty { display: none; }
.premio > :nth-last-child(2) { margin-bottom: 10px; }  /* aire sobre el botón */
.premio-boton {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: auto 0 0;                  /* el botón, siempre abajo */
  padding: 8px 6px;
  background: #5b3fa8;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.premio-boton:disabled,
.premio-boton.premio-agotado { background: #ecebf2; color: #7a7489; cursor: default; }
.premio-boton.premio-hecho   { background: #dcfce7; color: #15803d; }
.premio-boton.premio-error   { background: #fde2e7; color: #b4234a; }
.premio-bloqueado .premio-nombre,
.premio-bloqueado .premio-coste,
.premio-bloqueado .premio-desc { opacity: .6; }

/* --- BAG: lo conseguido, con los epígrafes de MART ---
   Una tarjeta por cosa: foto, nombre, dónde/cuándo, la clave (o el nombre del
   usuario, en los pases) y el sello. 3 toques en el sello sacan, encima de la
   tarjeta, el deslizador del staff. */
.bag-intro { margin: 0 0 18px; font-size: 12.5px; line-height: 1.5; color: #4f4864; }
.bag-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bag-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0;
  padding: 10px 10px 10px 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(51, 38, 75, .1);
}
.bag-foto {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: #f1eef7;
  border-radius: 12px;
}
.bag-foto-redonda { border-radius: 50%; }
.bag-textos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bag-nombre { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.2; color: #1f1b2a; }
.bag-donde { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.35; color: #5b3fa8; }
.bag-clave {
  margin: 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #6b6878;
}
/* El sello: decorativo para el usuario; 3 toques seguidos, para el staff */
.bag-sello {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  background: none;
  border: 2px dashed #c9c1e0;
  border-radius: 50%;
  color: #b9b3c9;
  cursor: default;
  touch-action: manipulation;        /* sin la espera del doble toque */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.bag-sello svg { width: 24px; height: 24px; }
.bag-sello:focus { outline: none; }
.bag-sello:focus-visible { outline: 2px solid #5b3fa8; outline-offset: 2px; }
/* Entregado */
.bag-entregado { background: #f3faf5; box-shadow: inset 0 0 0 1.5px #c3e6cb; }
.bag-entregado .bag-foto { filter: grayscale(.6); opacity: .7; }
.bag-entregado .bag-donde[data-txt="bagTienda"] { display: none; }   /* ya recogido */
.bag-ok {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 76px;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}
.bag-ok .mph,
.bag-ok svg { width: 24px; height: 24px; }
/* El deslizador del staff, encima de la tarjeta */
.bag-staff {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #1a1226;
  border-radius: inherit;
  animation: bag-staff-entra .18s ease-out;
}
@keyframes bag-staff-entra { from { opacity: 0; } to { opacity: 1; } }
.bag-slider {
  position: relative;
  flex: 1;
  height: 54px;
  padding: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  outline: none;
}
.bag-slider:focus-visible { box-shadow: inset 0 0 0 2px #ffcc00; }
.bag-slider-txt {                   /* el aviso, en dos líneas y siempre en castellano */
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px 0 54px;
  color: #ffcc00;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}
.bag-slider-bola {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #ffcc00;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  color: #1a1226;
  cursor: grab;
  touch-action: none;                /* arrastrar sin mover la página */
  transition: transform .25s ease;
}
.bag-slider.arrastrando .bag-slider-bola { cursor: grabbing; transition: none; }
.bag-slider-bola .mph { width: 22px; height: 22px; }
.bag-slider.enviando .bag-slider-bola { animation: bag-enviando .8s linear infinite; }
@keyframes bag-enviando { 50% { opacity: .45; } }
#no-premios-message {
  margin: 0;
  padding: 18px 14px;
  background: #fff;
  border-radius: 18px;
  color: #6b6878;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
#no-premios-message[hidden] { display: none; }
/* Los premios especiales de antes (caramelo, poción…), si alguien los tiene */
#mis-premios-list li.premio-entregado {
  padding: 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(51, 38, 75, .1);
  font-size: 13px;
  line-height: 1.5;
}
#mis-premios-list li.premio-entregado h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }

/* --- MAP: el mapa del juego (el cuadro de la home, que se agranda) --- */
.juego-mapa { width: 100%; padding: 0; border: 0; }

#canje-status {
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-message {
  margin: 15px 0;
  margin-right: 0 !important;
  padding: 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
}
.feedback-message.success { background-color: #28a745; color: #fff; }
.feedback-message.error   { background-color: #dc3545; color: #fff; }

.validacion {
  margin-top: 20px;
  padding: 10px 20px;
  background: #fff;
  border-color: #212121;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}


/* ===========================================================================
   15 · MAGIC ADVENTURE
   =========================================================================== */

.racing-parada { margin-top: -70px; }
.racing-parada img {
  display: block;
  margin: 0 auto -50px;
}
.racing-parada p {
  font-size: 17px;
  text-align: center;
}
.titulo-parada {
  font-size: 24px;
  font-weight: 800;
}

.onachan-magic-img {
  min-width: 100% !important;
  padding-left: 30px !important;
}

.intro-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 600px;
  padding: 20px;
  box-sizing: border-box;
  color: #fff;
}

.intro-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  grid-template-areas:
    "image title"
    "text  text";
  gap: 10px;
  align-items: center;
}

.intro-image { grid-area: image; }
.intro-image img {
  display: block;
  float: right;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.intro-title { grid-area: title; }
.intro-title h2 {
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 21px;
  color: #ffd700;
  text-shadow: 2px 2px #000;
}

.intro-text {
  grid-area: text;
  width: 100%;
  margin-top: -30px;
  justify-self: center;
  text-align: center;
}
.intro-text p {
  margin-bottom: 20px;
  min-height: 4em;          /* reserva sitio: el texto se escribe letra a letra */
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.intro-text button { display: none; }   /* se muestra al acabar el texto */

.game-text,
.game-pista,
.game-title-text {
  color: #fff;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}
.game-text {
  margin-top: 10px;
  margin-right: -60px;
  font-size: 15px;
  text-transform: uppercase;
}
.game-pista {
  margin-top: 10px;
  font-size: 12px;
}
.game-title-text {
  font-size: 15px;
  text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#toggle-music {
  display: block;
  margin: 100px auto 0;
  padding: 8px 15px;
  background: #ff004d;
  border: 4px solid #000;
  color: #fff;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  image-rendering: pixelated;
  box-shadow: 4px 4px 0 #000;
  transition: all .1s steps(1, end);
}
#toggle-music:hover {
  background: #ff77a8;
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

#next-intro-1,
#next-intro-2,
#next-intro-3,
#finish-intro {
  padding: 12px 20px;
  background: #222;
  border: 2px solid #ffd700;
  border-radius: 6px;
  color: #ffd700;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 215, 0, .7);
  transition: all .2s ease-in-out;
}

.reto-boton-final a {
  display: inline-block;
  line-height: 0;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.door-effect {
  width: 450px;
  height: auto;
  border-radius: 8px;
  animation: glow 2s infinite ease-in-out;
}
@keyframes glow {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}

.btn-premio-final {
  width: 100%;
  height: 50px;
  padding: 10px 20px;
  background-color: #d3d3d3;
  border: none;
  border-radius: 20px;
  color: #555;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  opacity: .7;
  cursor: not-allowed;
}


/* ===========================================================================
   16 · RANKING
   =========================================================================== */

.ranking-list {
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ranking-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #ccc;
}
.ranking-list li.current-user {
  background: #ffe680;
  border-radius: 6px;
  font-weight: bold;
}
.ranking-list li.dots {
  justify-content: center;
  font-weight: bold;
  text-align: center;
}


/* ===========================================================================
   17 · PANTALLAS ≤ 360 px
   =========================================================================== */

@media screen and (max-width: 360px) {

  /* Actividades */
  .actividad-item-calendar,
  .actividad-item-favorites,
  .actividad-item-sc,
  .actividad-item-rec { gap: 10px; padding: 9px 6px 9px 9px; }
  .actividad-thumbnail { flex: 0 0 60px; }
  .actividad-thumbnail img { width: 60px; height: 60px; border-radius: 10px; }
  .actividad-title    { font-size: 15px; }
  .actividad-desc,
  .actividad-mas      { font-size: 11px; }
  .actividad-location { font-size: 11px; }
  .actividad-time     { font-size: 12px; }
  .favorites-button   { font-size: 22px; }
  .asheet-img { flex: 0 0 70px; width: 70px; height: 70px; }
  .asheet-title { font-size: 18px; }

  /* Invitados */
  .gcard { gap: 10px; padding: 9px 6px 9px 9px; }
  .gcard-thumb { flex: 0 0 56px; }
  .gcard-thumb img { width: 56px; height: 56px; }
  .gcard-name { font-size: 15.5px; }
  .gcard-bio  { font-size: 11px; }
  .gcard-chip { font-size: 9px; }

  .gsheet-scroll { padding: 0 18px 90px; }
  .gsheet-img { flex: 0 0 70px; width: 70px; height: 70px; }
  .gsheet-name { font-size: 20px; }
  .gsheet-bio { font-size: 13.5px; }

  .actividad-guest-item { gap: 8px; padding: 10px 4px 10px 12px; }
  .aguest-cuando { font-size: 12.5px; }
  .actividad-guest-item .actividad-title { font-size: 14px; }

  /* Filtros */
  .calendar-dias,
  .todo           { min-width: 46px; }
  .filter-option-calendar,
  .filter-option-favorites { height: 48px; padding: 5px 10px; }
  .filter-pildoras .filter-option-calendar,
  .filter-pildoras .filter-option-favorites,
  .gchip { height: 32px; padding: 0 12px; }
  .filter-pildoras .todo,
  .gchip-todo { min-width: 42px; }
  .gchip { font-size: 11.5px; }
  .filter-option-calendar .day-name,
  .filter-option-favorites .day-name { font-size: 10px; }
  .filter-option-calendar .day-number,
  .filter-option-favorites .day-number { font-size: 16px; }
  .filter-option-calendar .zone-label,
  .filter-option-favorites .zone-label { font-size: 10.5px; }
  .filter-tipos .tipo-label { font-size: 11.5px; }
  .filter-option-invitado { padding: 6px 12px; font-size: 12.5px; }
  .filter-option-invitado[data-value="all"] { font-size: 10.5px; }
  .filter-option-invitado[data-value]:not([data-value="all"]) { padding-top: 8.5px; }
  .invt-peq { font-size: 6.5px; }

  /* Resto */
  .premio .canjear-premio { padding: 10px; font-size: 12px; }
  .premio_h2 { font-size: 21px; }
  .reto-titulo { font-size: 13px; }
  .reto-puntos { font-size: 12px; }
  .reto-completo,
  .reto-pendiente,
  .reto-canjeable { font-size: 13px; }
  .historial_content h4 { font-size: 23px; }
  .user_app_left h3 { font-size: 32px; }
  .user_app_tabs .tab-link { font-size: 10px; letter-spacing: .1em; }
  .tabs-nav-link { font-size: 12px; }
  .card { height: 108px; }
  .card-text { font-size: 14px; }
  h5.title { font-size: 19px; }
}


/* MAP del juego: «Próximamente» mientras no hay mapa */
.juego-pronto {
  margin: 8px 0 0;
  padding: 34px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(51, 38, 75, .08);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #5b3fa8;
}

/* Hojas (firma, «¿Qué es esto?», cuenta…): sitio al final para que lo último suba por
   encima del botón «SCAN QR» de la app, que la web no puede esconder (lo pone la app
   nativa en la pestaña de usuario) */
.gsheet .gsheet-scroll { padding-bottom: 160px; }

/* ===========================================================================
   NUEVO (20/11) · EL MAPA DEL EVENTO
   La tarjeta «MAPA 2026» de la home (bloque 'mapa' de mangapp-home.twig) y el mapa
   a pantalla completa que abre (lo monta mangapp.js, «MAPA DEL EVENTO»): crece desde
   la tarjeta, se mueve con los dedos y va por zonas. Todo con el prefijo mapa26 y
   con los valores puestos a mano (el tema pone estilos a botones, títulos e imágenes).
   =========================================================================== */
.mhome-b-mapa { margin-top: 10px; }
.mhome-mapa26 {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1226;
  box-shadow: 0 12px 28px rgba(51, 38, 75, .28);
  font-family: Poppins, sans-serif;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.mhome-mapa26:active { transform: scale(.97); }
.mhome-mapa26-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(.55) contrast(1.08) brightness(.95);
}
.mhome-mapa26-velo {                 /* blanco y negro: un velo gris encima de la foto */
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #444 0%, #777 100%);
  mix-blend-mode: multiply;
  opacity: .74;
}
.mhome-mapa26-sombra {               /* para que se lea el texto de abajo */
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, .88) 0%, rgba(10, 10, 12, .4) 45%, rgba(10, 10, 12, 0) 70%);
}
.mhome-mapa26-ona {                  /* Onachan con la lupa, pegada abajo, entre el texto y la «›» */
  position: absolute;
  z-index: 1;
  right: 50px;
  bottom: -5px;
  width: auto;
  max-width: none;
  height: 148px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
  pointer-events: none;
}
.mhome-mapa26-pie {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 14px;
  bottom: 15px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.mhome-mapa26-textos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mhome-mapa26-tit {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #fff;
}
.mhome-mapa26-lema { font-size: 12px; font-weight: 500; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.mhome-mapa26-ir {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #1f1b2a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}
.mhome-mapa26-ir svg { width: 18px; height: 18px; }

/* --- El mapa a pantalla completa --- */
.mapa26 {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1f1b2a;
  font-family: Poppins, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
          user-select: none;
  clip-path: inset(var(--t, 0) var(--r, 0) var(--b, 0) var(--l, 0) round var(--rad, 0));
  transition: clip-path .5s cubic-bezier(.3, .8, .3, 1);
}
.mapa26[hidden] { display: none; }
.mapa26 button {
  margin: 0;
  border: 0;
  font-family: Poppins, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mapa26 img { max-width: none; }
.mapa26-cab {
  position: relative;
  z-index: 3;
  flex: none;
  padding-top: max(0px, env(safe-area-inset-top));
  background: #fff;
  box-shadow: 0 6px 18px rgba(51, 38, 75, .12);
}
/* En la app de iOS la página va debajo de la barra de estado (env() da 0): hueco a mano */
@supports (-webkit-touch-callout: none) {
  .mapa26-cab { padding-top: max(50px, env(safe-area-inset-top)); }
}
.mapa26-bar { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 8px; }
.mapa26-volver {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 8px 4px;
  border-radius: 12px;
  background: none;
  color: #5b3fa8;
  font-size: 16px;
  font-weight: 800;
}
.mapa26-volver:active { background: #efeaf7; }
.mapa26-volver svg { width: 24px; height: 24px; }
.mapa26-tit {
  flex: 1;
  margin: 0;
  padding-right: 92px;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: #33264b;
}
.mapa26-zonas, .mapa26-subs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px 10px;
}
.mapa26-zonas::-webkit-scrollbar, .mapa26-subs::-webkit-scrollbar { display: none; }
.mapa26-subs {                       /* flota sobre el mapa: no cambia su tamaño. Dos filas: */
  position: absolute;                /* las partes y, debajo, los servicios (bar, WC…) */
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 6px;
  overflow: visible;
  padding: 8px 0 0;
  pointer-events: none;
}
.mapa26-fila { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 12px 4px; }
.mapa26-fila::-webkit-scrollbar { display: none; }
.mapa26-subs:empty { display: none; }
.mapa26-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  background: #efeaf7;
  color: #33264b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.mapa26-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.mapa26-chip.on { background: #33264b; color: #fff; }
.mapa26-subs .mapa26-chip {
  pointer-events: auto;
  padding: 6px 12px;
  font-size: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 27, 42, .18), inset 0 0 0 1.5px #ddd5ee;
}
.mapa26-subs .mapa26-chip.on { background: #5b3fa8; color: #fff; box-shadow: none; }

.mapa26-lienzo { position: relative; flex: 1; overflow: hidden; touch-action: none; background: #fff; cursor: grab; }
.mapa26-lienzo.cogido { cursor: grabbing; }
/* Todo en píxeles de pantalla (lo coloca el JS): imagen ligera < teselas < sombra de la zona */
.mapa26-mundo { position: absolute; inset: 0; overflow: hidden; }
.mapa26-base { position: absolute; z-index: 0; display: block; pointer-events: none; }
.mapa26-teselas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mapa26-teselas img { position: absolute; display: block; opacity: 0; transition: opacity .2s; }
.mapa26-teselas img.ok { opacity: 1; }
.mapa26-capa { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mapa26-sombra { fill: rgba(31, 27, 42, .32); fill-rule: evenodd; opacity: 0; transition: opacity .35s; }
.mapa26-borde { fill: none; stroke: #ffcc00; stroke-linejoin: round; opacity: 0; transition: opacity .35s; }
.mapa26-sombra.on, .mapa26-borde.on { opacity: 1; }
.mapa26-etis { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mapa26-eti {
  position: absolute;
  left: 0;
  top: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(51, 38, 75, .9);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(31, 27, 42, .3);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity .25s;
}
.mapa26-eti.ver { opacity: 1; visibility: visible; }
.mapa26-eti.sub { padding: 5px 10px; font-size: 11.5px; background: rgba(255, 255, 255, .94); color: #33264b; box-shadow: 0 3px 10px rgba(31, 27, 42, .22), inset 0 0 0 1.5px var(--c, #ddd); }
/* + − y ver todo, a la derecha, por encima del «SCAN QR» de la app */
.mapa26-ctrl {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: calc(var(--abajo, 0px) + 14px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 27, 42, .2);
  overflow: hidden;
}
.mapa26-ctrl button { display: grid; place-items: center; width: 46px; height: 44px; padding: 0; background: none; color: #33264b; }
.mapa26-ctrl button + button { border-top: 1px solid #eee8f6; }
.mapa26-ctrl button:active { background: #efeaf7; }
.mapa26-ctrl svg { width: 20px; height: 20px; }
/* El plano pequeño: dónde se está (tocarlo vuelve a todo) */
.mapa26-mini {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: calc(var(--abajo, 0px) + 14px);
  width: 62px;
  padding: 3px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 27, 42, .22);
  opacity: 0;
  visibility: hidden;
  transform: scale(.9);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mapa26-mini.ver { opacity: 1; visibility: visible; transform: none; }
.mapa26-mini span { position: relative; display: block; overflow: hidden; border-radius: 7px; }
.mapa26-mini img { display: block; width: 100%; height: auto; }
.mapa26-mini b { position: absolute; border: 2px solid #5b3fa8; border-radius: 3px; background: rgba(91, 63, 168, .15); }
/* La ficha de una zona (Acceso) */
.mapa26-ficha {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 70px;
  bottom: calc(var(--abajo, 0px) + 14px);
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 27, 42, .25);
  transform: translateY(calc(100% + var(--abajo, 0px) + 30px));
  transition: transform .35s cubic-bezier(.3, .8, .3, 1);
}
.mapa26-ficha.ver { transform: none; }
.mapa26-ficha.ver ~ .mapa26-mini { opacity: 0; visibility: hidden; }
.mapa26-ficha h3 { margin: 0 26px 6px 0; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: 0; text-transform: none; color: #33264b; }
.mapa26-ficha p { margin: 0 0 6px; font-size: 13px; line-height: 1.35; color: #4f4864; }
.mapa26-ficha ul { margin: 0; padding: 0; list-style: none; }
.mapa26-ficha li { padding: 3px 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: #1f1b2a; }
.mapa26-ficha li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: #5b3fa8; }
.mapa26-ficha-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: #efeaf7; color: #33264b; }
.mapa26-ficha-x svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) {
  .mapa26, .mapa26-ficha, .mapa26-sombra, .mapa26-borde, .mapa26-eti, .mapa26-mini { transition: none; }
}
/* Servicios (WC, servicio médico, bar): el icono en la fila y en cada sitio del mapa */
.mapa26-chip.poi { gap: 5px; padding-left: 8px; }
.mapa26-chip.poi b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pc); color: #fff; }
.mapa26-chip.poi b svg { width: 13px; height: 13px; }
.poi-wc { --pc: #2f6fd6; }
.poi-medico { --pc: #e2232f; }
.poi-bar { --pc: #f0a500; }
.mapa26-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pc);
  color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(31, 27, 42, .35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s;
}
.mapa26-pin svg { width: 20px; height: 20px; }
.mapa26-pin.ver { opacity: 1; visibility: visible; animation: mapa26-pin 1.6s ease-out 1; }
@keyframes mapa26-pin { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px var(--pc); } 60% { box-shadow: 0 0 0 3px #fff, 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(31, 27, 42, .35); } }
@media (prefers-reduced-motion: reduce) { .mapa26-pin.ver { animation: none; } }

/* La letra de toda la app */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, ul {
  font-family: 'Poppins', sans-serif !important;
}

/* Del tema y de WordPress, lo que no se enseña: barra de administración, navegación
   entre entradas, comentarios, la barra lateral de Ohio, el pie y el título de la página */
#wpadminbar, .post-navigation-wrapper, #comments { display: none !important; }
.elements-bar.left.-unlist.dynamic-typo { display: none !important; }
.footer-sidebars-wrapper, #colophon { display: none; }
.rwmb-meta-box h2, .entry-header { display: none; }
.site-content { margin-bottom: 0px; }

/* El margen de arriba del contenido de la página */
.entry-content { margin-top: 60px; }
