﻿/* El Jardín de María — táctil y lectura cómoda */
@font-face {
  font-family: "Chicle";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("font/Chicle-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Chewy";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("font/Chewy-Regular.ttf") format("truetype");
}

:root {
  --fondo: #1a1a1a;
  --tarjeta: #2d2d2d;
  --texto: #ffffff;
  --acento: #4da3ff;
  --acento-texto: #0d1f33;
  --borde: #555;
  --ok: #3dcc7a;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 120%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.5;
  padding: 1rem;
  padding-bottom: 2rem;
}

header {
  text-align: center;
  padding: 1rem 0 1.5rem;
  border-bottom: 2px solid var(--borde);
  margin-bottom: 1.5rem;
}

header h1 {
  margin: 0;
  font-family: "Chicle", cursive;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  opacity: 0.9;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
}

.fecha-grande {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--tarjeta);
  border-radius: 12px;
  border: 1px solid var(--borde);
}

nav.menu-principal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

nav.menu-principal a,
.boton-volver {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: "Chicle", cursive;
  font-size: 1.45rem;
  font-weight: 400;
  padding: 1.25rem 1rem;
  min-height: 3.5rem;
  border-radius: 14px;
  background: var(--acento);
  color: var(--acento-texto);
  border: 3px solid transparent;
  touch-action: manipulation;
}

nav.menu-principal a:active,
.boton-volver:active {
  filter: brightness(0.92);
}

nav.menu-principal a.secundario {
  background: var(--tarjeta);
  color: var(--texto);
  border-color: var(--borde);
}

/* Botones PNG (IMG/but-*.png, castellano) */
a.btn-img,
button.btn-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  line-height: 0;
  text-decoration: none;
}

button.btn-img {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

a.btn-img img,
button.btn-img img {
  display: block;
  height: clamp(3rem, 12vmin, 5.75rem);
  width: auto;
  max-width: min(70vw, 18rem);
  object-fit: contain;
}

a.btn-img:active img,
button.btn-img:active img {
  filter: brightness(0.9);
  transform: scale(0.97);
}

nav.nav-botones-img {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

body.pagina-menu nav.nav-botones-img.menu-nav-cuatro {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: min(96vw, 56rem);
  gap: clamp(0.1rem, 0.35vw, 0.3rem);
}

body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img img {
  width: 100%;
  height: clamp(3.25rem, 11.5vmin, 5.5rem);
  max-width: none;
  object-fit: contain;
  object-position: center center;
}

body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img--info {
  flex: 1 1 0;
}

body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img--info img {
  height: clamp(3.25rem, 11.5vmin, 5.5rem);
}

body.portada-inicio .portada-contenido a.btn-img img {
  height: clamp(6rem, 24vmin, 11.5rem);
  max-width: min(92vw, 36rem);
}

.contenido {
  max-width: 32rem;
  margin: 0 auto;
}

.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.telefono-emergencia {
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ok);
  text-decoration: none;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  background: rgba(61, 204, 122, 0.15);
  border: 2px solid var(--ok);
  touch-action: manipulation;
}

.telefono-emergencia:active {
  opacity: 0.85;
}

.telefono-placeholder {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem;
  margin: 0.5rem 0 0;
  border-radius: 12px;
  border: 2px dashed var(--borde);
  opacity: 0.85;
}

.boton-volver {
  margin-top: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  opacity: 0.65;
}

@media (min-width: 600px) {
  html {
    font-size: 130%;
  }
}

/* Prioridad horizontal (tablet / apaisado) */
@media (orientation: landscape) {
  html {
    font-size: clamp(105%, 2.4vmin, 135%);
  }

  body {
    min-height: 100svh;
    padding: 0.65rem 1.5rem 1rem;
  }

  header {
    padding: 0.5rem 0 0.85rem;
    margin-bottom: 1rem;
  }

  header h1 {
    font-size: clamp(1.75rem, 4.5vmin, 2.75rem);
  }

  nav.menu-principal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 42rem;
    gap: 0.85rem 1rem;
  }

  nav.menu-principal a,
  .boton-volver {
    flex: 1 1 auto;
    min-width: 10rem;
    max-width: 14rem;
  }

  body.pagina-menu .menu-layout {
    padding: 1rem 1.5rem 1rem;
    gap: 1.75rem;
  }
}

/* Bloqueo orientación incorrecta: móvil=vertical, tablet=horizontal (ver orientacion.js) */
#orientacion-vertical {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #141210;
  color: #fff;
  text-align: center;
}

#orientacion-vertical[hidden] {
  display: none !important;
}

.orientacion-vertical-inner {
  max-width: 22rem;
}

.orientacion-vertical-icon {
  margin: 0 0 0.75rem;
  font-size: 3.5rem;
  line-height: 1;
  animation: icono-girar 2.5s ease-in-out infinite;
}

@keyframes icono-girar {
  0%,
  100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-95deg);
  }
  65% {
    transform: rotate(-85deg);
  }
}

.orientacion-vertical-texto {
  margin: 0 0 0.5rem;
  font-family: "Chicle", cursive;
  font-size: clamp(1.35rem, 4.5vmin, 1.85rem);
  line-height: 1.25;
}

.orientacion-vertical-sub {
  margin: 0;
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.4;
}

/* Portada: mainback.jpg · Menú: menu1.jpg (mismo movimiento suave) */
@keyframes fondo-jardin {
  0% {
    transform: scale(1.2) translate(1.5%, -1%);
  }
  100% {
    transform: scale(1.38) translate(-3.5%, 2.5%);
  }
}

body.portada-inicio,
body.pagina-menu,
body.pagina-juegos,
body.pagina-mramos,
body.pagina-mcuida,
body.pagina-ramos-01,
body.pagina-ramos-02 {
  position: relative;
  background-color: transparent;
  background-image: none;
}

body.portada-inicio::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/mainback.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.pagina-menu::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/menu1.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.pagina-juegos::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/menu3.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.pagina-mramos:not(.pagina-000)::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/menu4.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.pagina-mcuida::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/menu5.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.pagina-ramos-01::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/menu6.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.pagina-ramos-02:not(.pagina-000)::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/menu7.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.pagina-mramos.pagina-000::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  background-color: #3d3420;
  background-image: url("IMG/menu8.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: fondo-jardin 22s ease-in-out infinite alternate;
}

body.portada-inicio > *:not(#decor-flores):not(#splash-carga):not(#orientacion-vertical),
body.pagina-menu > *:not(#decor-flores),
body.pagina-juegos > *:not(#decor-flores),
body.pagina-mramos > *:not(#decor-flores):not(.ramos02-modal):not(#particulas-000-root):not(.pop-semillas-000),
body.pagina-mcuida > *:not(#decor-flores):not(#mbirds-particulas-root):not(.ramos02-modal),
body.pagina-ramos-01 > *:not(#decor-flores) {
  position: relative;
  z-index: 1;
}

/* Pantalla de carga portada (ejdm.png + chispas como el título) */
#splash-carga {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  /* Azul noche alrededor de #02152a (cielo del logo) */
  background: linear-gradient(
    155deg,
    #041a32 0%,
    #02152a 22%,
    #031a35 45%,
    #02152a 58%,
    #010c18 82%,
    #01050c 100%
  );
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-carga.splash-carga--fin {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portada-inicio .splash-ejdm-wrap.titulo-wrap {
  padding: 0.5rem 1.25rem 0.7rem;
}

.portada-inicio .splash-ejdm-img {
  display: block;
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(92vw, 52rem);
  max-height: min(92vh, 44rem);
  margin: 0 auto;
  border-radius: min(3.2vw, 1.35rem);
  /* Suaviza el rectángulo del PNG: funde bordes con el fondo del splash */
  -webkit-mask-image: radial-gradient(
    ellipse 96% 94% at 50% 48%,
    #000 68%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 96% 94% at 50% 48%,
    #000 68%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  /* Sombra de profundidad sin halo circular ancho (evita arcos en el fondo) */
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  animation: splash-ejdm-float 4.8s ease-in-out infinite;
  will-change: transform;
}

.portada-inicio .splash-ejdm-wrap .chispa {
  z-index: 2;
}

@keyframes splash-ejdm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #splash-carga {
    transition-duration: 0.15s;
  }

  .portada-inicio .splash-ejdm-img {
    animation: none;
  }
}

/* Modal y partículas deben quedar fuera: position:relative del hijo anula position:fixed */
body.pagina-ramos-02 > *:not(#decor-flores):not(.ramos02-modal):not(.ramos02-particulas-root) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body.portada-inicio::before,
  body.pagina-menu::before,
  body.pagina-juegos::before,
  body.pagina-mramos::before,
  body.pagina-mcuida::before,
  body.pagina-ramos-01::before,
  body.pagina-ramos-02::before {
    animation: none;
    transform: scale(1.22);
  }
}


body.portada-inicio {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

@keyframes brillo-suave {
  0%,
  100% {
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 20px rgba(232, 197, 71, 0.3));
  }
  50% {
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 32px rgba(255, 248, 220, 0.55))
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
  }
}

@keyframes titulo-juegos-halo {
  0%,
  100% {
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.72),
      0 0 18px rgba(167, 139, 250, 0.45);
  }
  50% {
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.72),
      0 0 30px rgba(196, 170, 255, 0.62),
      0 0 10px rgba(220, 200, 255, 0.35);
  }
}

@keyframes magia-juegos-cap {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  25% {
    transform: translateY(-4px) scale(1.012) rotate(-0.45deg);
  }
  50% {
    transform: translateY(-7px) scale(1.02) rotate(0deg);
  }
  75% {
    transform: translateY(-3px) scale(1.008) rotate(0.42deg);
  }
}

@keyframes magia-juegos-sub {
  0%,
  100% {
    transform: translateY(0);
    letter-spacing: 0.02em;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.78),
      0 2px 12px rgba(0, 0, 0, 0.5),
      0 0 22px rgba(255, 190, 140, 0.42),
      0 0 10px rgba(255, 220, 190, 0.28);
  }
  50% {
    transform: translateY(-4px);
    letter-spacing: 0.045em;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.78),
      0 2px 14px rgba(0, 0, 0, 0.52),
      0 0 34px rgba(255, 205, 160, 0.68),
      0 0 20px rgba(255, 248, 220, 0.48),
      0 0 6px rgba(255, 255, 255, 0.38);
  }
}

@keyframes brillo-ramos {
  0%,
  100% {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75),
      0 2px 0 rgba(200, 172, 255, 0.55),
      0 0 20px rgba(195, 165, 255, 0.55),
      0 0 34px rgba(230, 210, 255, 0.42),
      0 3px 10px rgba(90, 70, 130, 0.2);
  }
  50% {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9),
      0 2px 0 rgba(215, 190, 255, 0.7),
      0 0 28px rgba(210, 180, 255, 0.68),
      0 0 44px rgba(240, 220, 255, 0.55),
      0 3px 12px rgba(90, 70, 130, 0.22);
  }
}

@keyframes brillo-cuida {
  0%,
  100% {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8),
      0 2px 0 rgba(255, 220, 100, 0.6),
      0 0 20px rgba(255, 210, 80, 0.58),
      0 0 34px rgba(255, 235, 150, 0.45),
      0 3px 10px rgba(120, 90, 20, 0.22);
  }
  50% {
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95),
      0 2px 0 rgba(255, 230, 120, 0.75),
      0 0 28px rgba(255, 220, 90, 0.72),
      0 0 44px rgba(255, 245, 180, 0.58),
      0 3px 12px rgba(120, 90, 20, 0.26);
  }
}

@keyframes brillo-mramos-titulo {
  0%,
  100% {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.88),
      0 2px 14px rgba(18, 8, 14, 0.72),
      0 0 2px rgba(32, 16, 26, 0.95),
      0 0 14px rgba(165, 120, 230, 0.45),
      0 0 26px rgba(255, 120, 170, 0.38);
  }
  50% {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.9),
      0 2px 16px rgba(18, 8, 14, 0.76),
      0 0 2px rgba(32, 16, 26, 0.95),
      0 0 20px rgba(185, 140, 248, 0.52),
      0 0 34px rgba(255, 135, 185, 0.46);
  }
}

/* Luciérnagas: más brillo + vuelo corto (solo unos píxeles) */
@keyframes luciernaga-a {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(0, 0) scale(0.92);
  }
  35% {
    opacity: 1;
    transform: translate(10px, -12px) scale(1.12);
  }
  68% {
    opacity: 0.72;
    transform: translate(-7px, 9px) scale(1);
  }
}

@keyframes luciernaga-b {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(0, 0) scale(0.9);
  }
  40% {
    opacity: 1;
    transform: translate(-11px, -9px) scale(1.15);
  }
  78% {
    opacity: 0.68;
    transform: translate(8px, 11px) scale(0.98);
  }
}

@keyframes luciernaga-c {
  0%,
  100% {
    opacity: 0.52;
    transform: translate(0, 0) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translate(7px, 11px) scale(1.1);
  }
}

@keyframes luciernaga-d {
  0%,
  100% {
    opacity: 0.48;
    transform: translate(0, 0) scale(0.91);
  }
  32% {
    opacity: 1;
    transform: translate(5px, 9px) scale(1.14);
  }
  64% {
    opacity: 0.7;
    transform: translate(-10px, -7px) scale(0.96);
  }
}

.titulo-wrap {
  position: relative;
  display: inline-block;
  padding: 0.65rem 1.65rem 0.85rem;
  overflow: visible;
}

.titulo-wrap .chispa,
body.pagina-ramos-02 .ramos02-buquet-item .chispa {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 32%,
    #ffffff 0%,
    #fffce8 35%,
    #ffe566 70%,
    #f0c030 100%
  );
  box-shadow:
    0 0 3px 1px rgba(255, 255, 255, 1),
    0 0 16px 4px rgba(255, 248, 200, 0.95),
    0 0 32px 10px rgba(255, 220, 120, 0.65),
    0 0 48px 16px rgba(255, 190, 80, 0.35);
  pointer-events: none;
  will-change: transform, opacity;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa {
  z-index: 2;
  width: 6px;
  height: 6px;
  box-shadow:
    0 0 2px 1px rgba(255, 255, 255, 0.95),
    0 0 10px 3px rgba(255, 248, 200, 0.88),
    0 0 20px 6px rgba(255, 220, 120, 0.55),
    0 0 28px 10px rgba(255, 190, 80, 0.28);
}

.titulo-wrap .chispa:nth-of-type(1) {
  top: 6%;
  left: -4%;
  width: 7px;
  height: 7px;
  animation: luciernaga-a 3.6s ease-in-out infinite;
  animation-delay: 0s;
}

.titulo-wrap .chispa:nth-of-type(2) {
  top: 18%;
  right: -6%;
  width: 9px;
  height: 9px;
  animation: luciernaga-b 4.2s ease-in-out infinite;
  animation-delay: 0.65s;
}

.titulo-wrap .chispa:nth-of-type(3) {
  bottom: 22%;
  left: -2%;
  width: 6px;
  height: 6px;
  animation: luciernaga-c 3.4s ease-in-out infinite;
  animation-delay: 1.1s;
}

.titulo-wrap .chispa:nth-of-type(4) {
  bottom: 10%;
  right: -4%;
  width: 8px;
  height: 8px;
  animation: luciernaga-b 3.9s ease-in-out infinite;
  animation-delay: 0.25s;
}

.titulo-wrap .chispa:nth-of-type(5) {
  top: 42%;
  left: -8%;
  width: 7px;
  height: 7px;
  animation: luciernaga-a 4.5s ease-in-out infinite;
  animation-delay: 1.85s;
}

.titulo-wrap .chispa:nth-of-type(6) {
  top: 55%;
  right: -7%;
  width: 6px;
  height: 6px;
  animation: luciernaga-c 4s ease-in-out infinite;
  animation-delay: 2.4s;
}

.titulo-wrap .chispa:nth-of-type(7) {
  top: 32%;
  left: 8%;
  width: 5px;
  height: 5px;
  animation: luciernaga-d 3.5s ease-in-out infinite;
  animation-delay: 0.4s;
}

.titulo-wrap .chispa:nth-of-type(8) {
  top: 48%;
  right: 3%;
  width: 7px;
  height: 7px;
  animation: luciernaga-a 4.3s ease-in-out infinite;
  animation-delay: 1.15s;
}

.titulo-wrap .chispa:nth-of-type(9) {
  bottom: 32%;
  right: 18%;
  width: 5px;
  height: 5px;
  animation: luciernaga-b 3.2s ease-in-out infinite;
  animation-delay: 2.1s;
}

.titulo-wrap .chispa:nth-of-type(10) {
  top: 72%;
  left: 12%;
  width: 6px;
  height: 6px;
  animation: luciernaga-c 4.6s ease-in-out infinite;
  animation-delay: 0.9s;
}

.titulo-wrap .chispa:nth-of-type(11) {
  top: 14%;
  left: 28%;
  width: 4px;
  height: 4px;
  animation: luciernaga-b 2.9s ease-in-out infinite;
  animation-delay: 1.6s;
}

.titulo-wrap .chispa:nth-of-type(12) {
  bottom: 42%;
  left: -6%;
  width: 7px;
  height: 7px;
  animation: luciernaga-d 4.1s ease-in-out infinite;
  animation-delay: 2.7s;
}

/* Partículas extra solo en splash portada (alrededor / sobre el logo) */
.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(13) {
  top: -10%;
  left: 38%;
  width: 5px;
  height: 5px;
  animation: luciernaga-c 3.7s ease-in-out infinite;
  animation-delay: 0.15s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(14) {
  top: 8%;
  right: -14%;
  width: 6px;
  height: 6px;
  animation: luciernaga-a 4.4s ease-in-out infinite;
  animation-delay: 1.3s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(15) {
  bottom: -9%;
  left: 22%;
  width: 7px;
  height: 7px;
  animation: luciernaga-b 3.5s ease-in-out infinite;
  animation-delay: 2s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(16) {
  top: 28%;
  left: -16%;
  width: 5px;
  height: 5px;
  animation: luciernaga-d 4.8s ease-in-out infinite;
  animation-delay: 0.55s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(17) {
  bottom: 18%;
  right: -15%;
  width: 6px;
  height: 6px;
  animation: luciernaga-a 3.3s ease-in-out infinite;
  animation-delay: 2.35s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(18) {
  top: 62%;
  left: -12%;
  width: 4px;
  height: 4px;
  animation: luciernaga-c 4.2s ease-in-out infinite;
  animation-delay: 1.05s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(19) {
  top: 4%;
  left: -10%;
  width: 6px;
  height: 6px;
  animation: luciernaga-b 3.9s ease-in-out infinite;
  animation-delay: 2.85s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(20) {
  bottom: 48%;
  right: -18%;
  width: 5px;
  height: 5px;
  animation: luciernaga-d 3.6s ease-in-out infinite;
  animation-delay: 0.75s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(21) {
  top: 78%;
  left: 6%;
  width: 7px;
  height: 7px;
  animation: luciernaga-a 4.7s ease-in-out infinite;
  animation-delay: 1.45s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(22) {
  top: 34%;
  right: -11%;
  width: 4px;
  height: 4px;
  animation: luciernaga-c 2.85s ease-in-out infinite;
  animation-delay: 2.55s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(23) {
  bottom: -6%;
  right: 18%;
  width: 6px;
  height: 6px;
  animation: luciernaga-b 4s ease-in-out infinite;
  animation-delay: 0.35s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(24) {
  top: -6%;
  right: 26%;
  width: 5px;
  height: 5px;
  animation: luciernaga-d 4.25s ease-in-out infinite;
  animation-delay: 1.95s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(25) {
  bottom: 12%;
  left: -14%;
  width: 5px;
  height: 5px;
  animation: luciernaga-a 3.55s ease-in-out infinite;
  animation-delay: 2.15s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(26) {
  top: 52%;
  right: 16%;
  width: 6px;
  height: 6px;
  animation: luciernaga-c 4.55s ease-in-out infinite;
  animation-delay: 0.95s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(27) {
  bottom: 58%;
  left: 4%;
  width: 4px;
  height: 4px;
  animation: luciernaga-b 3.15s ease-in-out infinite;
  animation-delay: 1.75s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(28) {
  top: 88%;
  right: -8%;
  width: 5px;
  height: 5px;
  animation: luciernaga-d 4.35s ease-in-out infinite;
  animation-delay: 2.25s;
}

.portada-inicio .splash-ejdm-wrap .chispa:nth-of-type(29) {
  top: 66%;
  left: 22%;
  width: 5px;
  height: 5px;
  animation: luciernaga-b 3.65s ease-in-out infinite;
  animation-delay: 1.25s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(1) {
  top: 4%;
  left: -8%;
  width: 5px;
  height: 5px;
  animation: luciernaga-a 3.6s ease-in-out infinite;
  animation-delay: 0s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(2) {
  top: 14%;
  right: -10%;
  width: 6px;
  height: 6px;
  animation: luciernaga-b 4.2s ease-in-out infinite;
  animation-delay: 0.65s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(3) {
  bottom: 18%;
  left: -6%;
  width: 5px;
  height: 5px;
  animation: luciernaga-c 3.4s ease-in-out infinite;
  animation-delay: 1.1s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(4) {
  bottom: 6%;
  right: -8%;
  width: 6px;
  height: 6px;
  animation: luciernaga-b 3.9s ease-in-out infinite;
  animation-delay: 0.25s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(5) {
  top: 38%;
  left: -12%;
  width: 5px;
  height: 5px;
  animation: luciernaga-a 4.5s ease-in-out infinite;
  animation-delay: 1.85s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(6) {
  top: 50%;
  right: -10%;
  width: 5px;
  height: 5px;
  animation: luciernaga-c 4s ease-in-out infinite;
  animation-delay: 2.4s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(7) {
  top: 28%;
  left: 4%;
  width: 4px;
  height: 4px;
  animation: luciernaga-d 3.5s ease-in-out infinite;
  animation-delay: 0.4s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(8) {
  top: 44%;
  right: -2%;
  width: 5px;
  height: 5px;
  animation: luciernaga-a 4.3s ease-in-out infinite;
  animation-delay: 1.15s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(9) {
  bottom: 28%;
  right: 12%;
  width: 4px;
  height: 4px;
  animation: luciernaga-b 3.2s ease-in-out infinite;
  animation-delay: 2.1s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(10) {
  top: 68%;
  left: 6%;
  width: 5px;
  height: 5px;
  animation: luciernaga-c 4.6s ease-in-out infinite;
  animation-delay: 0.9s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(11) {
  top: 10%;
  left: 22%;
  width: 4px;
  height: 4px;
  animation: luciernaga-b 2.9s ease-in-out infinite;
  animation-delay: 1.6s;
}

body.pagina-ramos-02 .ramos02-buquet-item .chispa:nth-of-type(12) {
  bottom: 36%;
  left: -8%;
  width: 5px;
  height: 5px;
  animation: luciernaga-d 4.1s ease-in-out infinite;
  animation-delay: 2.7s;
}

@media (prefers-reduced-motion: reduce) {
  .titulo-wrap .chispa {
    animation: none !important;
    opacity: 0.85;
    transform: none;
  }

  body.pagina-ramos-02 .ramos02-buquet-item .chispa {
    animation: none !important;
    opacity: 0.85;
    transform: none;
  }

  .titulo-ramos {
    animation: none;
  }

  .titulo-cuida {
    animation: none;
  }

  .titulo-pajaros {
    animation: none;
  }

  body.pagina-juegos .juegos-num-slot:first-of-type:hover img {
    animation: none;
  }

  body.pagina-juegos .titulo-juegos {
    animation: none;
  }

  body.pagina-juegos .juegos-contenido .titulo-wrap--juegos {
    animation: none;
    transform: none;
  }

  body.pagina-juegos main.juegos-contenido p.juegos-elegir-texto {
    animation: none;
    letter-spacing: 0.02em;
  }

  body.pagina-mramos .mramos-contenido .titulo-wrap .titulo-mramos {
    animation: none;
  }

  body.pagina-ramos-01 .titulo-wrap--semillas .chispa,
  body.pagina-ramos-02 .titulo-wrap--semillas .chispa,
  body.pagina-mramos.pagina-000 .titulo-wrap--semillas .chispa {
    animation: none !important;
    opacity: 0.85;
    transform: none;
  }

  body.pagina-ramos-01 .titulo-wrap--semillas .titulo-dorado,
  body.pagina-ramos-02 .titulo-wrap--semillas .titulo-dorado,
  body.pagina-mramos.pagina-000 .titulo-wrap--semillas .titulo-dorado {
  font-size: clamp(1.1rem, 3.5vmin, 1.8rem);
  line-height: 1.08;
  white-space: nowrap;
  max-width: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.78)) drop-shadow(0 5px 14px rgba(0,0,0,0.55));
}
}

.titulo-dorado {
  margin: 0;
  max-width: 95vw;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.03em;
  background: linear-gradient(
    185deg,
    #fffbeb 0%,
    #f5e6a8 18%,
    #e8c547 42%,
    #b8860b 68%,
    #7a5a0a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 24px rgba(232, 197, 71, 0.35));
  animation: brillo-suave 3s ease-in-out infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .titulo-dorado {
    color: #e8c547;
    -webkit-text-fill-color: unset;
    background: none;
    filter: none;
    animation: none;
    text-shadow:
      0 1px 0 #fff9e0,
      0 2px 0 #c9a227,
      0 4px 12px rgba(0, 0, 0, 0.55);
  }
}

/* «Ramos»: lila claro real (sin clip+filter: en Chrome se veía negro) */
.titulo-ramos {
  margin: 0;
  max-width: 95vw;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 4rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.03em;
  color: #f0e6ff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 0 rgba(200, 172, 255, 0.55),
    0 0 20px rgba(195, 165, 255, 0.55),
    0 0 34px rgba(230, 210, 255, 0.42),
    0 3px 10px rgba(90, 70, 130, 0.2);
  filter: none;
  animation: brillo-ramos 3s ease-in-out infinite;
}

/* «Cuida»: amarillo dorado (misma estructura que Ramos) */
.titulo-cuida {
  margin: 0;
  max-width: 95vw;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 4rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.03em;
  color: #fff6c8;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 0 rgba(255, 210, 90, 0.65),
    0 0 20px rgba(255, 200, 70, 0.58),
    0 0 34px rgba(255, 235, 160, 0.48),
    0 3px 10px rgba(110, 85, 15, 0.22);
  filter: none;
  animation: brillo-cuida 3s ease-in-out infinite;
}

/* «Pájaros»: cielo / verde claro */
.titulo-pajaros {
  margin: 0;
  max-width: 95vw;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(1.75rem, 7vw, 3.25rem);
  line-height: 1.12;
  text-align: center;
  letter-spacing: 0.02em;
  color: #dff8ff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 0 rgba(120, 200, 230, 0.55),
    0 0 20px rgba(100, 190, 230, 0.55),
    0 0 34px rgba(180, 230, 255, 0.42),
    0 3px 10px rgba(30, 80, 100, 0.22);
  filter: none;
  animation: brillo-ramos 3s ease-in-out infinite;
}

/* Menú principal (fondo compartido arriba con ::before) */
body.pagina-menu {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 0;
}

body.pagina-menu .menu-layout {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  box-sizing: border-box;
}

body.pagina-menu header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.pagina-menu header .titulo-wrap {
  margin: 0 auto;
  max-width: 100%;
}

body.pagina-menu header .titulo-dorado {
  white-space: nowrap;
  max-width: none;
}

/* Tablet / horizontal: título en una sola línea */
body.pagina-menu header .titulo-dorado--menu {
  display: block;
  white-space: nowrap;
}

body.pagina-menu header .titulo-dorado--menu .titulo-menu-l1,
body.pagina-menu header .titulo-dorado--menu .titulo-menu-l2 {
  display: inline;
  white-space: nowrap;
}

body.pagina-menu header .titulo-dorado--menu .titulo-menu-l1::after {
  content: "\00a0";
}

body.pagina-menu .menu-subtitulo {
  margin: 0.75rem 0 0;
  font-family: "Chicle", cursive;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 400;
  color: #fff9e8;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 2px 14px rgba(0, 0, 0, 0.45);
}

body.pagina-menu nav.menu-principal {
  width: 100%;
  max-width: 36rem;
  margin: 0;
}

body.pagina-menu.pagina-premios .contenido-premios,
body.pagina-menu.pagina-info .contenido-info {
  max-width: 32rem;
  width: 100%;
}

body.pagina-menu.pagina-info .tarjeta {
  font-family: "Chicle", cursive;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  color: #fff9e8;
  background: rgba(45, 32, 18, 0.72);
  border-color: rgba(220, 190, 120, 0.35);
}

body.pagina-menu.pagina-info .tarjeta--intro {
  text-align: center;
}

body.pagina-menu.pagina-info header .titulo-wrap--info {
  margin: 0 auto;
}

body.pagina-menu.pagina-info header .titulo-wrap--info .titulo-dorado {
  font-size: clamp(2rem, 8vw, 3.25rem);
  white-space: nowrap;
}

body.pagina-menu.pagina-info .acerca-intro-titulo {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: #ffe97a;
}

body.pagina-menu.pagina-info .acerca-intro-sub {
  margin: 0;
  line-height: 1.4;
}

body.pagina-menu.pagina-info .tarjeta--apoyo {
  text-align: left;
}

body.pagina-menu.pagina-info .acerca-apoyo-titulo {
  margin: 0 0 0.85rem;
  font-family: "Chicle", cursive;
  font-size: clamp(1.25rem, 3.8vw, 1.55rem);
  font-weight: 400;
  color: #ffe97a;
  text-align: center;
}

body.pagina-menu.pagina-info .acerca-apoyo-texto {
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

body.pagina-menu.pagina-info .acerca-apoyo-texto strong,
body.pagina-menu.pagina-info .acerca-apoyo-texto b {
  font-weight: 400;
  color: #ffe97a;
}

body.pagina-menu.pagina-info .acerca-apoyo-texto strong a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 233, 122, 0.7);
  text-underline-offset: 0.12em;
}

body.pagina-menu.pagina-info .acerca-apoyo-texto:last-of-type {
  margin-bottom: 1.1rem;
}

body.pagina-menu.pagina-info .acerca-pay-wrap {
  text-align: center;
  margin: 0.25rem 0 1rem;
}

body.pagina-menu.pagina-info .acerca-apoyo-nota {
  margin: 0;
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  line-height: 1.4;
  color: rgba(255, 249, 232, 0.82);
  text-align: center;
}

body.pagina-menu.pagina-info .acerca-pay-btn {
  display: inline-block;
  min-width: 7rem;
  padding: 0.65rem 1.75rem;
  font-family: "Chicle", cursive;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe97a 0%, #e8c547 55%, #c9a020 100%);
  border: 2px solid rgba(255, 248, 220, 0.85);
  border-radius: 999px;
  box-shadow:
    0 2px 0 rgba(90, 60, 10, 0.45),
    0 0 18px rgba(232, 197, 71, 0.45);
  transition: transform 0.12s ease, filter 0.12s ease;
}

body.pagina-menu.pagina-info .acerca-pay-btn:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

body.pagina-menu.pagina-info .acerca-priv-wrap {
  text-align: center;
  margin: 1rem 0 0.25rem;
}

body.pagina-menu.pagina-info .acerca-info-link {
  display: inline-block;
  min-width: 7rem;
  padding: 0.55rem 1.5rem;
  font-family: "Chicle", cursive;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #ffe97a;
  border: 2px solid rgba(255, 233, 122, 0.55);
  border-radius: 12px;
  background: rgba(45, 32, 18, 0.45);
}

body.pagina-menu.pagina-info .acerca-info-link:active {
  transform: scale(0.97);
  background: rgba(255, 233, 122, 0.12);
}

body.pagina-menu.pagina-premios .contenido-premios {
  max-width: min(36rem, 96vw);
}

body.pagina-menu.pagina-premios .titulo-wrap--premios {
  margin: 0 auto 0.5rem;
}

body.pagina-menu.pagina-premios .premios-encabezado {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  white-space: nowrap;
}

body.pagina-menu.pagina-premios .contenido-premios {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 5vw, 1.75rem);
}

body.pagina-menu.pagina-premios .premios-fila {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 1.5rem);
  width: 100%;
}

body.pagina-menu.pagina-premios .premios-fila-img {
  width: clamp(4rem, 18vw, 6.5rem);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

body.pagina-menu.pagina-premios .titulo-wrap--premios-fila {
  min-width: 3.5rem;
}

body.pagina-menu.pagina-premios .premios-fila-num {
  display: block;
  font-size: clamp(2.5rem, 11vw, 4.5rem);
  line-height: 1;
  min-width: 1.5ch;
  text-align: center;
}

/* Juegos: fondo menu3.jpg · esquina sup. derecha: volver (izq) · menú (dcha) */
body.pagina-juegos {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 0;
}

body.pagina-juegos .juegos-layout {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

body.pagina-juegos .juegos-barra-sup {
  position: fixed;
  top: max(0.45rem, env(safe-area-inset-top, 0px));
  left: max(0.45rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

body.pagina-juegos .juegos-barra-sup a.btn-img img,
body.pagina-juegos .juegos-barra-sup button.btn-img img {
  height: clamp(2.4rem, 9vmin, 4.25rem);
  max-width: min(28vw, 10rem);
}

body.pagina-juegos .juegos-contenido {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.85rem 1.25rem 1.5rem;
  color: #fff9e8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

body.pagina-juegos .juegos-contenido .titulo-wrap {
  margin: 0 auto 0.75rem;
}

body.pagina-juegos .juegos-contenido .titulo-wrap--juegos {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 0;
  padding: 0.45rem 1.35rem 0.12rem;
  transform-origin: center center;
  animation: magia-juegos-cap 4.6s ease-in-out infinite;
  will-change: transform;
}

body.pagina-juegos .titulo-juegos {
  margin: 0;
  max-width: 95vw;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.03em;
  color: #d8c8fa;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.72),
    0 0 20px rgba(167, 139, 250, 0.48);
  animation: titulo-juegos-halo 3.5s ease-in-out infinite;
}

body.pagina-juegos main.juegos-contenido p.juegos-elegir-texto {
  margin: -0.2rem 0 1.15rem;
  font-family: "Chicle", cursive;
  font-size: clamp(1.3rem, 4vmin, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(8, 4, 12, 0.45),
    0 0 32px rgba(255, 190, 220, 0.2);
}

body.pagina-juegos .juegos-fila-numeros {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.55rem;
  width: 100%;
  max-width: 38rem;
  margin: 1.75rem auto 0;
}

body.pagina-juegos #juegos-bloque-pronto .juegos-pronto-texto {
  margin: 0 auto;
  max-width: 30rem;
  padding: 0 0.85rem;
  box-sizing: border-box;
  font-family: "Chicle", cursive;
  font-size: clamp(1.3rem, 4vmin, 1.95rem);
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.04em;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55);
}

@keyframes juegos-num1-hover {
  from {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  }
  to {
    transform: scale(1.07);
    filter: brightness(1.1) drop-shadow(0 0 14px rgba(255, 107, 107, 0.65));
  }
}

body.pagina-juegos .juegos-bloque-ramos {
  width: 100%;
  max-width: 38rem;
  margin: 2rem auto 0;
  text-align: center;
}

@keyframes juegos-ramos-contenido-in {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.pagina-juegos .juegos-bloque-ramos:not([hidden]) .juegos-ramos-contenido {
    opacity: 0;
    transform: translateY(0.55rem);
  }

  body.pagina-juegos .juegos-bloque-ramos--entrando .juegos-ramos-contenido {
    animation: juegos-ramos-contenido-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-juegos .juegos-bloque-ramos:not([hidden]) .juegos-ramos-contenido {
    opacity: 1;
    transform: none;
  }
}

body.pagina-juegos .juegos-contenido .titulo-wrap--ramos {
  margin: 0 auto 0.45rem;
}

body.pagina-juegos .juegos-contenido .titulo-wrap--cuida {
  margin: 0 auto 0.45rem;
}

body.pagina-juegos .juegos-contenido .titulo-wrap--pajaros {
  margin: 0 auto 0.45rem;
}

body.pagina-juegos .juegos-ramos-linea {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  max-width: 100%;
  font-family: "Chicle", cursive;
  line-height: 1.35;
}

body.pagina-juegos .juegos-ramos-linea .juegos-ramos-sub {
  flex: 0 1 auto;
  margin: 0;
  font-size: clamp(1.3rem, 4vmin, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(8, 4, 12, 0.45),
    0 0 32px rgba(255, 190, 220, 0.2);
}

body.pagina-juegos .juegos-ramos-linea .juegos-ramos-sep {
  display: none;
}

body.pagina-juegos .juegos-ramos-linea .juegos-ramos-hint {
  flex: 0 1 auto;
  margin: 0;
  font-size: clamp(1.55rem, 4.9vmin, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff4ea;
  -webkit-text-fill-color: #fff4ea;
  -webkit-text-stroke: 0.05rem rgba(36, 18, 28, 0.9);
  paint-order: stroke fill;
  font-style: normal;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(14, 6, 10, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 190, 220, 0.22);
}

body.pagina-juegos .juegos-num-slot {
  position: relative;
  display: inline-grid;
  width: max-content;
  max-width: 7rem;
  flex: 0 1 auto;
  min-width: 0;
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

body.pagina-juegos .juegos-num-slot img {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

@media (hover: hover) {
  body.pagina-juegos .juegos-num-slot:first-of-type img {
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  body.pagina-juegos .juegos-num-slot:first-of-type:hover img {
    animation: juegos-num1-hover 0.75s ease-in-out infinite alternate;
  }
}

body.pagina-juegos .juegos-num-slot:first-of-type:active img {
  animation: none;
  filter: brightness(0.92);
  transform: scale(0.97);
}

body.pagina-juegos .juegos-num-slot:not(:first-of-type):active img {
  filter: brightness(0.92);
  transform: scale(0.97);
}

body.pagina-juegos .juegos-num-overlay {
  grid-area: 1 / 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Chicle", cursive;
  font-size: clamp(2.0625rem, 6.27vmin, 3.465rem);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  text-align: center;
  -webkit-text-stroke: 0.06rem #000;
  paint-order: stroke fill;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.55);
}

body.pagina-juegos .juegos-num--1 {
  color: #ff6b6b;
}

body.pagina-juegos .juegos-num--2 {
  color: #ffd93d;
}

body.pagina-juegos .juegos-num--3 {
  color: #6bcb77;
}

body.pagina-juegos .juegos-num--4 {
  color: #4d96ff;
}

body.pagina-juegos .juegos-num--5 {
  color: #da9bff;
}

/* Ramos hub menu4 · Cuida menú menu5 · mapas menu6 · partida Ramos menu7 · partida Cuida menu8 */
body.pagina-mramos,
body.pagina-mcuida {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 0;
  font-family: "Chicle", cursive;
}

body.pagina-mramos .mramos-layout,
body.pagina-mcuida .mramos-layout {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
  font-family: "Chicle", cursive;
}

body.pagina-mramos.pagina-000 .ramos01-semillas-score-fila {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.3rem;
  width: max-content;
  max-width: none;
}

body.pagina-mramos.pagina-000 .titulo-wrap--semillas {
  padding: 0.08rem 0.15rem 0.14rem;
  flex: 0 0 auto;
  max-width: 100%;
}

body.pagina-mramos.pagina-000 .ramos01-semillas-marca {
  margin: 0;
}

body.pagina-mramos.pagina-000 .titulo-wrap--semillas .titulo-dorado {
  font-size: clamp(1.1rem, 3.5vmin, 1.8rem);
  line-height: 1.08;
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.78)) drop-shadow(0 5px 14px rgba(0,0,0,0.55));
}

body.pagina-mramos.pagina-000 .ramos01-semillas-sep {
  flex: 0 0 auto;
  font-family: "Chicle", cursive;
  font-size: clamp(1.1rem, 3.5vmin, 1.8rem);
  font-weight: 400;
  line-height: 1;
  color: #f5e6b0;
  text-shadow:
    0 0 10px rgba(255, 236, 200, 0.9),
    0 0 20px rgba(232, 197, 71, 0.55),
    0 2px 5px rgba(0, 0, 0, 0.85);
  padding: 0 0.02rem;
  margin: 0;
}

body.pagina-mramos.pagina-000 .ramos01-puntos-valor {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 6ch;
  font-family: "Chicle", cursive;
  font-size: clamp(1.35rem, 4.2vmin, 2.1rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff9e6;
  text-shadow:
    0 0 10px rgba(255, 236, 180, 1),
    0 0 22px rgba(232, 197, 71, 0.75),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Cuida partida: texto compartido */
body.pagina-mramos.pagina-000 .mramos-barra-sup #meta-000,
body.pagina-mramos.pagina-000 .mramos-barra-sup > .cuida-meta-nivel,
body.pagina-mramos.pagina-000 .mramos-barra-sup #instr-000 .cuida-instr-txt,
body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > .cuida-meta-hint,
body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > #cuida-hint-000 {
  position: relative;
  z-index: 6;
  box-sizing: border-box;
  text-align: center;
  pointer-events: auto;
  font-family: "Chicle", cursive;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  text-transform: none;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(8, 4, 12, 0.45),
    0 0 32px rgba(255, 190, 220, 0.2);
}

/* Cuida partida: volver | semillas; título centrado; instrucción debajo */
body.pagina-mramos.pagina-000 .mramos-barra-sup {
  position: fixed;
  top: max(0.45rem, env(safe-area-inset-top, 0px));
  left: max(0.45rem, env(safe-area-inset-left, 0px));
  right: max(0.45rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr minmax(min-content, max-content);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 0.35rem;
  row-gap: clamp(0.35rem, 1.5dvh, 0.65rem);
  padding-bottom: clamp(0.25rem, 1dvh, 0.45rem);
  box-sizing: border-box;
}

body.pagina-mramos.pagina-000 .mramos-barra-sup > .btn-img {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
}

body.pagina-mramos.pagina-000 .mramos-barra-sup .ramos01-semillas-score-fila {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
}

body.pagina-mramos.pagina-000 .titulo-wrap--semillas {
  padding: 0.02rem 0.08rem 0.06rem;
  flex-shrink: 0;
  max-width: none;
  min-width: min-content;
}

body.pagina-mramos.pagina-000 .titulo-wrap--semillas .chispa {
  display: none;
}

body.pagina-mramos.pagina-000 .titulo-wrap--semillas .titulo-dorado {
  max-width: none;
  min-width: min-content;
  overflow: visible;
  white-space: nowrap;
  letter-spacing: 0;
}

body.pagina-mramos.pagina-000 .mramos-barra-sup .cuida-barra-instr,
body.pagina-mramos.pagina-000 .mramos-barra-sup #instr-000 {
  display: contents;
}

body.pagina-mramos.pagina-000 .mramos-barra-sup #instr-000 .cuida-num-label {
  display: none;
}

body.pagina-mramos.pagina-000 .mramos-barra-sup #meta-000,
body.pagina-mramos.pagina-000 .mramos-barra-sup > .cuida-meta-nivel {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0.5rem clamp(0.12rem, 0.7dvh, 0.28rem);
  min-height: 0;
  font-size: clamp(1.85rem, 7.5vmin, 3rem);
  line-height: 1.08;
  color: #ffe97a;
  -webkit-text-fill-color: #ffe97a;
  display: block;
  text-align: center;
}

body.pagina-mramos.pagina-000 .mramos-barra-sup #instr-000 .cuida-instr-txt {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  max-width: min(36rem, 94vw);
  margin: clamp(0.1rem, 0.55dvh, 0.25rem) 0 0;
  padding: 0 0.35rem clamp(0.22rem, 1.1dvh, 0.48rem);
  box-sizing: border-box;
  display: block;
  font-size: clamp(1.3rem, 4vmin, 1.95rem);
  line-height: 1.32;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
}

body.pagina-mramos.pagina-000 .mramos-layout {
  padding-top: max(9rem, calc(8rem + env(safe-area-inset-top, 0px)));
}

body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main {
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0.2rem;
  padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  padding-bottom: 0;
}

body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > .cuida-meta-hint,
body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > #cuida-hint-000 {
  flex: 0 0 auto;
  align-self: center;
  width: 100%;
  max-width: min(96vw, 38rem);
  margin: clamp(0.45rem, 1.8dvh, 0.95rem) auto clamp(0.75rem, 3dvh, 1.35rem);
  padding: 0 0.75rem;
  min-height: 0;
  font-family: "Chicle", cursive;
  font-size: clamp(1.05rem, 3.5vmin, 1.45rem);
  line-height: 1.25;
  text-align: center;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
}

body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > .cuida-meta-nivel,
body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > #meta-000 {
  display: none !important;
}

body.pagina-000 .cinta-wrap-000 {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-between;
}

body.pagina-000 .cinta-000 {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
}

body.pagina-000 .maquinas-000 {
  flex: 0 0 auto;
}

/* Cuida 2/3 — tablet y horizontal: todos los botones en una fila */
body.pagina-000 .maquinas-000--4,
body.pagina-000 .maquinas-000--5 {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 1.1rem);
  max-width: min(96vw, 52rem);
}

body.pagina-000 .maquinas-000--4 .maquinas-000-fila,
body.pagina-000 .maquinas-000--5 .maquinas-000-fila {
  display: contents;
}

body.pagina-000 .maquinas-000--4 .btn-maquina-000,
body.pagina-000 .maquinas-000--5 .btn-maquina-000 {
  flex: 1 1 0;
  min-width: 0;
  max-width: 8.5rem;
}

body.pagina-000 .cinta-item-000--objetivo .cinta-maceta-000 {
  filter: drop-shadow(0 0 10px rgba(255, 220, 80, 0.95)) drop-shadow(0 0 18px rgba(255, 180, 40, 0.65));
  transform: scale(1.06);
}

body.pagina-000 .cinta-item-000--objetivo .cinta-necesidad-000 {
  animation: cuida-necesidad-pulso-000 0.85s ease-in-out infinite;
}

@keyframes cuida-necesidad-pulso-000 {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

body.pagina-000 .cinta-maceta-000--sana img {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)) saturate(1.1) brightness(1.06);
}

body.pagina-mramos:not(.pagina-000) .mramos-barra-sup,
body.pagina-mcuida .mramos-barra-sup {
  position: fixed;
  top: max(0.45rem, env(safe-area-inset-top, 0px));
  left: max(0.45rem, env(safe-area-inset-left, 0px));
  right: max(0.45rem, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

body.pagina-mramos .mramos-barra-sup a.btn-img img,
body.pagina-mramos .mramos-barra-sup button.btn-img img,
body.pagina-mcuida .mramos-barra-sup a.btn-img img,
body.pagina-mcuida .mramos-barra-sup button.btn-img img {
  height: clamp(2.4rem, 9vmin, 4.25rem);
  max-width: min(28vw, 10rem);
}

body.pagina-mramos .mramos-contenido,
body.pagina-mcuida .mramos-contenido {
  max-width: 44rem;
  margin: 0 auto;
  padding: 5.25rem 1.25rem 1.5rem;
  color: #fff9e8;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

body.pagina-mramos .mramos-contenido .titulo-wrap,
body.pagina-mcuida .mramos-contenido .titulo-wrap {
  margin: 0 auto 1.15rem;
}

body.pagina-mcuida .mramos-contenido .titulo-wrap--cuida-hub {
  margin: 0 auto 1.15rem;
}

body.pagina-mcuida .mramos-contenido .titulo-cuida {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.75rem, 11vw, 5rem);
}

body.pagina-mcuida .mramos-contenido .titulo-wrap--pajaros {
  margin: 0 auto 1.15rem;
}

body.pagina-mcuida .mramos-contenido .titulo-pajaros {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.25rem, 9vw, 4.25rem);
}

/* Título mramos: clase propia (evita .titulo-dorado + transparent en WebKit) */
body.pagina-mramos .mramos-contenido .titulo-mramos {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-family: "Chicle", cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 5rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.03em;
  color: #ea6ba0;
  background: none;
  -webkit-text-fill-color: #ea6ba0;
  -webkit-text-stroke: 0.07rem rgba(105, 65, 150, 0.82);
  paint-order: stroke fill;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 2px 14px rgba(18, 8, 14, 0.72),
    0 0 2px rgba(32, 16, 26, 0.95),
    0 0 14px rgba(165, 120, 230, 0.45),
    0 0 26px rgba(255, 120, 170, 0.38);
  filter: none;
  animation: brillo-mramos-titulo 3.2s ease-in-out infinite;
}

body.pagina-mramos .mramos-bloque-juego1,
body.pagina-mcuida .mramos-bloque-juego1 {
  width: 100%;
  max-width: 38rem;
  margin: 0.85rem auto 0;
  padding: 0 0.75rem;
  text-align: center;
}

body.pagina-mramos .mramos-instr-bajo-juego1,
body.pagina-mcuida .mramos-instr-bajo-juego1 {
  margin: 0;
  font-family: "Chicle", cursive;
  font-size: clamp(1.3rem, 4vmin, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(8, 4, 12, 0.45),
    0 0 32px rgba(255, 190, 220, 0.2);
}

img.mbirds-icono-inline {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin: 0 0.12em;
  vertical-align: -0.22em;
  object-fit: contain;
}

body.pagina-mramos .mramos-instr-bajo-juego1-hint,
body.pagina-mcuida .mramos-instr-bajo-juego1-hint {
  margin: 0.55rem 0 0;
  font-family: "Chicle", cursive;
  font-size: clamp(1.55rem, 4.9vmin, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff4ea;
  -webkit-text-fill-color: #fff4ea;
  -webkit-text-stroke: 0.05rem rgba(36, 18, 28, 0.9);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(14, 6, 10, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.72),
    0 0 16px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(10, 4, 12, 0.42),
    0 0 36px rgba(255, 200, 235, 0.22);
}

body.pagina-mramos .mramos-nav-juegos,
body.pagina-mcuida .mramos-nav-juegos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.65rem, 1.75vw, 1.75rem);
  width: 100%;
  max-width: min(100%, 54rem);
  margin: 0 auto;
}

body.pagina-mramos .mramos-nav-juegos a.btn-img img,
body.pagina-mcuida .mramos-nav-juegos a.btn-img img {
  height: clamp(3.25rem, 14vmin, 6.25rem);
  max-width: min(24vw, 12rem);
  width: auto;
}

body.pagina-mramos .mramos-nav-juegos a.mramos-num-slot,
body.pagina-mcuida .mramos-nav-juegos a.mramos-num-slot {
  position: relative;
  display: inline-grid;
  width: max-content;
  max-width: 100%;
  line-height: 0;
}

body.pagina-mramos .mramos-nav-juegos a.mramos-num-slot img,
body.pagina-mcuida .mramos-nav-juegos a.mramos-num-slot img {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

body.pagina-mramos .mramos-num-overlay,
body.pagina-mcuida .mramos-num-overlay {
  grid-area: 1 / 1;
  position: absolute;
  font-family: "Chicle", cursive;
  font-size: clamp(2.85rem, 8.5vmin, 4.65rem);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  text-align: center;
  -webkit-text-stroke: 0.07rem #000;
  paint-order: stroke fill;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.55);
}

/* but-gamenum.png: pergamino a la derecha del ramo */
body.pagina-mramos .mramos-num-overlay {
  left: 67%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* but-gamenum2.png (Cuida): hueco centrado en el cartel */
body.pagina-mcuida .mramos-num-overlay {
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
}

body.pagina-mramos .mramos-num--1,
body.pagina-mcuida .mramos-num--1 {
  color: #ff6b6b;
}

body.pagina-mramos .mramos-num--2,
body.pagina-mcuida .mramos-num--2 {
  color: #ffd93d;
}

body.pagina-mramos .mramos-num--3,
body.pagina-mcuida .mramos-num--3 {
  color: #6bcb77;
}

body.pagina-mcuida .mramos-num-slot--bloqueado {
  opacity: 0.55;
  filter: grayscale(0.35);
  pointer-events: none;
  cursor: default;
  position: relative;
}

body.pagina-mcuida .mramos-candado {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 9vmin, 3.25rem);
  line-height: 1;
  pointer-events: none;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.75);
}

body.pagina-mcuida .mramos-num-slot--bloqueado .mramos-candado {
  display: flex;
}

body.pagina-mcuida .mramos-num-slot--bloqueado .mramos-num-overlay {
  opacity: 0.65;
}

/* ramos-01-01.html: solo volver + título arriba; sin menú, flores ni botones centrales */
/* ramos-partida.html: misma barra + mesa de juego */
body.pagina-ramos-01,
body.pagina-ramos-02 {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 0;
}

body.pagina-ramos-01 .ramos01-layout,
body.pagina-ramos-02 .ramos02-layout {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

body.pagina-ramos-01 .ramos01-barra-sup,
body.pagina-ramos-02 .ramos01-barra-sup {
  position: fixed;
  top: max(0.45rem, env(safe-area-inset-top, 0px));
  left: max(0.45rem, env(safe-area-inset-left, 0px));
  right: max(0.45rem, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  z-index: 2;
  padding: 0;
  margin-bottom: 0;
  border-bottom: none;
  text-align: initial;
}

body.pagina-ramos-01 .ramos01-barra-izq,
body.pagina-ramos-02 .ramos01-barra-izq {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 1rem;
  flex: 0 1 auto;
  min-width: 0;
}

body.pagina-ramos-01 .ramos01-barra-izq > .btn-img,
body.pagina-ramos-02 .ramos01-barra-izq > .btn-img {
  flex: 0 0 auto;
}

body.pagina-ramos-01 .ramos01-barra-der,
body.pagina-ramos-02 .ramos01-barra-der {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  width: max-content;
  max-width: min(96vw, 28rem);
  padding: 0.48rem 0.7rem 0.52rem 0.75rem;
  border-radius: 18px;
  box-sizing: border-box;
  overflow: visible;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    rgba(18, 10, 16, 0.42) 0%,
    rgba(28, 14, 22, 0.48) 45%,
    rgba(14, 8, 12, 0.44) 100%
  );
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  border: 1px solid rgba(140, 100, 120, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.42),
    0 0 48px 22px rgba(0, 0, 0, 0.18),
    0 0 80px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 28px 0 rgba(255, 240, 250, 0.04);
}

body.pagina-ramos-01 .ramos01-barra-der::before,
body.pagina-ramos-02 .ramos01-barra-der::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 78% at 50% 48%,
    rgba(12, 6, 10, 0.55) 0%,
    rgba(8, 4, 8, 0.28) 52%,
    transparent 78%
  );
  filter: blur(16px);
  opacity: 0.95;
}

body.pagina-ramos-01 .ramos01-semillas-score-fila,
body.pagina-ramos-02 .ramos01-semillas-score-fila {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.42rem;
  width: max-content;
  max-width: 100%;
}

body.pagina-ramos-01 .titulo-wrap--semillas,
body.pagina-ramos-02 .titulo-wrap--semillas {
  padding: 0.12rem 0.2rem 0.2rem;
  flex: 0 0 auto;
  max-width: 100%;
}

body.pagina-ramos-01 .ramos01-semillas-marca,
body.pagina-ramos-02 .ramos01-semillas-marca {
  margin: 0;
}

body.pagina-ramos-01 .titulo-wrap--semillas .titulo-dorado,
body.pagina-ramos-02 .titulo-wrap--semillas .titulo-dorado {
  font-size: clamp(1.42rem, 4.35vw, 2.35rem);
  line-height: 1.08;
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.78))
    drop-shadow(0 5px 14px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 26px rgba(232, 197, 71, 0.55))
    drop-shadow(0 0 42px rgba(255, 220, 140, 0.28));
}

body.pagina-ramos-01 .ramos01-semillas-sep,
body.pagina-ramos-02 .ramos01-semillas-sep {
  flex: 0 0 auto;
  font-family: "Chicle", cursive;
  font-size: clamp(1.35rem, 4.1vw, 2.15rem);
  font-weight: 400;
  line-height: 1;
  color: #f5e6b0;
  text-shadow:
    0 0 10px rgba(255, 236, 200, 0.9),
    0 0 20px rgba(232, 197, 71, 0.55),
    0 2px 5px rgba(0, 0, 0, 0.85);
  padding: 0 0.02rem;
  margin: 0;
}

body.pagina-ramos-01 .ramos01-puntos-valor,
body.pagina-ramos-02 .ramos01-puntos-valor {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 1ch;
  font-family: "Chicle", cursive;
  font-size: clamp(1.52rem, 4.8vmin, 2.35rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff9e6;
  text-shadow:
    0 0 10px rgba(255, 236, 180, 1),
    0 0 22px rgba(232, 197, 71, 0.75),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

body.pagina-ramos-01 .ramos01-barra-sup button.btn-img img,
body.pagina-ramos-02 .ramos01-barra-sup a.btn-img img,
body.pagina-ramos-02 .ramos01-barra-sup button.btn-img img {
  height: clamp(2.4rem, 9vmin, 4.25rem);
  max-width: min(28vw, 10rem);
}

body.pagina-ramos-01 .ramos01-titulo,
body.pagina-ramos-02 .ramos01-titulo {
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(2rem, 8vmin, 3.25rem);
  line-height: 1.05;
  text-align: left;
  letter-spacing: 0.02em;
}

body.pagina-ramos-01 .ramos01-titulo {
  color: #e8dcff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(180, 150, 255, 0.45);
}

body.pagina-ramos-02 .ramos01-titulo {
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  font-size: clamp(2.38rem, 9.45vmin, 3.85rem);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(8, 4, 12, 0.45),
    0 0 32px rgba(255, 190, 220, 0.2);
}

body.pagina-ramos-02 .ramos01-barra-sup .ramos01-subtitulo {
  width: min(42rem, max(44vw, calc(100vw - 2.5rem - min(22rem, 52vw))));
  max-width: min(42rem, max(44vw, calc(100vw - 2.5rem - min(22rem, 52vw))));
  font-size: calc(clamp(1.52rem, 4.65vmin, 2.28rem) + 4px);
}

body.pagina-ramos-02 .titulo-wrap--semillas .titulo-dorado {
  font-size: clamp(1.68rem, 5.1vw, 2.75rem);
}

body.pagina-ramos-02 .ramos01-semillas-sep {
  font-size: clamp(1.58rem, 4.8vw, 2.5rem);
}

body.pagina-ramos-02 .ramos01-puntos-valor {
  font-size: clamp(1.78rem, 5.65vmin, 2.75rem);
}

body.pagina-ramos-02 .ramos01-barra-sup a.btn-img img,
body.pagina-ramos-02 .ramos01-barra-sup button.btn-img img {
  height: clamp(2.85rem, 10.6vmin, 5rem);
  max-width: min(32vw, 11.8rem);
}

body.pagina-ramos-01 .ramos01-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: max(10.75rem, calc(9.5rem + env(safe-area-inset-top, 0px))) 1rem
    max(1.25rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: #fff9e8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

body.pagina-ramos-01 .ramos01-niveles {
  width: min(72vw, 38rem);
  margin: 0.35rem 0 0;
}

body.pagina-ramos-01 .ramos01-niveles-fila {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, min(72vw, 38rem)) minmax(6rem, 1fr);
  align-items: center;
  justify-content: stretch;
  column-gap: clamp(0.35rem, 1.9vmin, 0.95rem);
  width: 100%;
}

body.pagina-ramos-01 .ramos01-niveles-fila .ramos01-niveles {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

body.pagina-ramos-01 .ramos01-map-nav {
  flex: 0 0 clamp(3.25rem, 14vmin, 6rem);
  width: clamp(3.25rem, 14vmin, 6rem);
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

body.pagina-ramos-01 .ramos01-map-prev {
  grid-column: 1;
}

body.pagina-ramos-01 .ramos01-map-next {
  grid-column: 3;
}

body.pagina-ramos-01 .ramos01-map-spacer {
  grid-column: 1;
}

body.pagina-ramos-01 .ramos01-niveles-fila--map2 .ramos01-map-spacer,
body.pagina-ramos-01 .ramos01-niveles-fila--map3 .ramos01-map-spacer {
  grid-column: 3;
}

body.pagina-ramos-01 .ramos01-map-spacer {
  visibility: hidden;
  pointer-events: none;
}

body.pagina-ramos-01 .ramos01-map-nav img {
  display: block;
  height: clamp(3.25rem, 14vmin, 6rem);
  width: clamp(3.25rem, 14vmin, 6rem);
  max-height: 26vmin;
  object-fit: contain;
}

body.pagina-ramos-01 .ramos01-map-next[hidden],
body.pagina-ramos-01 .ramos01-map-prev[hidden] {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.pagina-ramos-01 .ramos01-niveles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  gap: clamp(0.48rem, 2.35vmin, 0.82rem);
  width: 100%;
}

body.pagina-ramos-01 .ramos01-nivel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 10px;
  overflow: hidden;
  touch-action: manipulation;
  text-decoration: none;
  box-sizing: border-box;
  background-color: #4a1530;
  background-image: url("IMG/menu4.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.pagina-ramos-01 button.ramos01-nivel {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: not-allowed;
}

body.pagina-ramos-01 a.ramos01-nivel--libre {
  cursor: pointer;
}

body.pagina-ramos-01 a.ramos01-nivel--libre:active {
  filter: brightness(0.94);
  transform: scale(0.98);
}

body.pagina-ramos-01 .ramos01-nivel--bloqueado::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 200, 220, 0.38) 0%,
    rgba(248, 175, 205, 0.44) 45%,
    rgba(235, 165, 195, 0.36) 100%
  );
  pointer-events: none;
}

body.pagina-ramos-01 .ramos01-nivel-num {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Chicle", cursive;
  font-size: clamp(1.85rem, 7.8vmin, 3.05rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  -webkit-text-stroke: 0.13rem #ff1478;
  paint-order: stroke fill;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 14px rgba(255, 210, 245, 0.95),
    0 0 24px rgba(255, 120, 200, 0.85),
    0 0 36px rgba(255, 80, 160, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Cuida mapas: mismas reglas de cabecera y semillas que Ramos mapas */
body.pagina-ramos-01.pagina-mcuida-map .ramos01-semillas-score-fila {
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
}

body.pagina-ramos-01.pagina-mcuida-map .titulo-wrap--semillas {
  padding: 0.02rem 0.08rem 0.06rem;
  flex-shrink: 0;
  max-width: none;
  min-width: min-content;
}

body.pagina-ramos-01.pagina-mcuida-map .titulo-wrap--semillas .chispa {
  display: none;
}

body.pagina-ramos-01.pagina-mcuida-map .titulo-wrap--semillas .titulo-dorado {
  max-width: none;
  min-width: min-content;
  overflow: visible;
  white-space: nowrap;
  letter-spacing: 0;
}

/* Cuida: mapa de niveles (butram2) */
body.pagina-mcuida-map .ramos01-titulo--cuida {
  color: #fff6c8;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 0 rgba(255, 210, 90, 0.65),
    0 0 20px rgba(255, 200, 70, 0.58),
    0 0 34px rgba(255, 235, 160, 0.48),
    0 3px 10px rgba(110, 85, 15, 0.22);
}

body.pagina-mcuida-map .ramos01-nivel {
  background-color: #4a4020;
  background-image: url("IMG/butram2.png");
}

body.pagina-mcuida-map .ramos01-nivel--bloqueado::after {
  background: linear-gradient(
    160deg,
    rgba(255, 235, 160, 0.42) 0%,
    rgba(255, 210, 90, 0.48) 45%,
    rgba(220, 185, 70, 0.4) 100%
  );
}

body.pagina-mcuida-map .ramos01-nivel-num {
  -webkit-text-stroke: 0.13rem #c9a020;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 14px rgba(255, 235, 160, 0.95),
    0 0 24px rgba(255, 200, 70, 0.85),
    0 0 36px rgba(255, 170, 40, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Pájaros: mapa de niveles */
body.pagina-ramos-01.pagina-mbirds-map .ramos01-semillas-score-fila {
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
}

body.pagina-ramos-01.pagina-mbirds-map .titulo-wrap--semillas {
  padding: 0.02rem 0.08rem 0.06rem;
  flex-shrink: 0;
  max-width: none;
  min-width: min-content;
}

body.pagina-ramos-01.pagina-mbirds-map .titulo-wrap--semillas .chispa {
  display: none;
}

body.pagina-ramos-01.pagina-mbirds-map .titulo-wrap--semillas .titulo-dorado {
  max-width: none;
  min-width: min-content;
  overflow: visible;
  white-space: nowrap;
  letter-spacing: 0;
}

body.pagina-mbirds-map .ramos01-titulo--pajaros {
  color: #fff6c8;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 0 rgba(255, 210, 90, 0.65),
    0 0 20px rgba(255, 200, 70, 0.58),
    0 0 34px rgba(255, 235, 160, 0.48),
    0 3px 10px rgba(110, 85, 15, 0.22);
}

/* Mapas pájaros: título + instrucción arriba (junto a Volver / Semillas) */
body.pagina-ramos-01.pagina-mbirds-map .ramos01-barra-sup {
  grid-template-rows: auto auto;
  align-items: start;
  row-gap: clamp(0.08rem, 0.6dvh, 0.2rem);
  padding-bottom: 0;
}

body.pagina-ramos-01.pagina-mbirds-map .ramos01-barra-izq > .btn-img,
body.pagina-ramos-01.pagina-mbirds-map .ramos01-barra-izq > button.btn-img {
  align-self: start;
}

body.pagina-ramos-01.pagina-mbirds-map .ramos01-barra-izq .ramos01-titulo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: auto;
  max-width: 100%;
  font-size: clamp(1.7rem, 5.5vmin, 2.65rem);
}

body.pagina-ramos-01.pagina-mbirds-map .ramos01-barra-der {
  align-self: start;
}

body.pagina-ramos-01.pagina-mbirds-map .ramos01-barra-sup .ramos01-subtitulo {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 0 0.5rem 0;
  font-size: clamp(1.15rem, 3.4vmin, 1.7rem);
  line-height: 1.25;
}

body.pagina-ramos-01.pagina-mbirds-map {
  background-color: #1a2e18;
  background-image: url("IMG/mbirds-mapa.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body.pagina-ramos-01.pagina-mbirds-map .ramos01-layout {
  background: transparent;
}

body.pagina-mbirds-map .ramos01-nivel {
  background-color: rgba(45, 64, 32, 0.88);
  background-image: url("IMG/butram2.png");
  background-size: cover;
  background-position: center center;
}

body.pagina-mbirds-map .ramos01-nivel--bloqueado::after {
  background: linear-gradient(
    160deg,
    rgba(210, 235, 170, 0.42) 0%,
    rgba(170, 210, 120, 0.48) 45%,
    rgba(140, 185, 90, 0.4) 100%
  );
}

body.pagina-mbirds-map .ramos01-nivel-num {
  -webkit-text-stroke: 0.13rem #5a8a28;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 1),
    0 0 14px rgba(220, 255, 180, 0.95),
    0 0 24px rgba(160, 220, 90, 0.85),
    0 0 36px rgba(120, 190, 60, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

/* mramos-02-01.html: mapa de niveles con celdas circulares */
body.pagina-ramos-01.ramos02-mapa-niveles .ramos02-mapa-col3-holder {
  grid-column: 3;
  justify-self: center;
  width: clamp(3.25rem, 14vmin, 6rem);
  flex: 0 0 clamp(3.25rem, 14vmin, 6rem);
  visibility: hidden;
  pointer-events: none;
}

body.pagina-ramos-01.ramos02-mapa-niveles .ramos01-nivel {
  aspect-ratio: 1;
  width: 100%;
  max-width: min(100%, 5.5rem);
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
}

body.pagina-ramos-01.ramos02-mapa-niveles .ramos01-nivel-num {
  font-size: clamp(1.55rem, 6.5vmin, 2.65rem);
}

/* Mapas juego 3: niveles en hexágono (ni disco ni cuadrado) */
body.pagina-ramos-01.ramos03-mapa-niveles .ramos01-nivel {
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

body.pagina-ramos-01.ramos03-mapa-niveles .ramos01-nivel--bloqueado::after {
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Partida (pagina-ramos-02): volver | semillas; Nivel centrado; Empareja debajo */
body.pagina-ramos-02 .ramos01-barra-sup {
  display: grid;
  grid-template-columns: auto 1fr minmax(min-content, max-content);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 0.35rem;
  row-gap: clamp(0.12rem, 1dvh, 0.32rem);
  padding-bottom: 0.2rem;
}

body.pagina-ramos-02 .ramos01-barra-izq {
  display: contents;
}

body.pagina-ramos-02 .ramos01-barra-izq > .btn-img,
body.pagina-ramos-02 .ramos01-barra-izq > button.btn-img {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
}

body.pagina-ramos-02 .ramos01-barra-izq .ramos01-titulo {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  font-size: clamp(1.85rem, 7.5vmin, 3rem);
}

body.pagina-ramos-02 .ramos01-barra-der {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin-left: 0;
  width: max-content;
  min-width: min-content;
  max-width: none;
  flex-shrink: 0;
  padding: 0.32rem 0.5rem 0.36rem 0.55rem;
}

body.pagina-ramos-02 .ramos01-semillas-score-fila {
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
}

body.pagina-ramos-02 .titulo-wrap--semillas {
  padding: 0.02rem 0.08rem 0.06rem;
  flex-shrink: 0;
  max-width: none;
  min-width: min-content;
}

body.pagina-ramos-02 .titulo-wrap--semillas .chispa {
  display: none;
}

body.pagina-ramos-02 .titulo-wrap--semillas .titulo-dorado {
  max-width: none;
  min-width: min-content;
  overflow: visible;
  text-overflow: clip;
  letter-spacing: 0;
  white-space: nowrap;
}

body.pagina-ramos-02 .ramos01-barra-sup .ramos01-subtitulo,
body.pagina-ramos-02 .ramos02-subtitulo {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  max-width: min(36rem, 94vw);
  margin: 0;
  padding: 0 0.5rem 0.15rem;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  line-height: 1.32;
  font-family: "Chicle", cursive;
  font-size: clamp(1.3rem, 4vmin, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  white-space: normal;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(8, 4, 12, 0.45),
    0 0 32px rgba(255, 190, 220, 0.2);
}

/* Mapas de niveles (pagina-ramos-01): volver | semillas; Ramos centrado; texto debajo */
body.pagina-ramos-01 .ramos01-barra-sup {
  display: grid;
  grid-template-columns: auto 1fr minmax(min-content, max-content);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 0.35rem;
  row-gap: clamp(0.12rem, 1dvh, 0.32rem);
  padding-bottom: 0.2rem;
}

body.pagina-ramos-01 .ramos01-barra-izq {
  display: contents;
}

body.pagina-ramos-01 .ramos01-barra-izq > .btn-img,
body.pagina-ramos-01 .ramos01-barra-izq > button.btn-img {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
}

body.pagina-ramos-01 .ramos01-barra-izq .ramos01-titulo {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  font-size: clamp(1.85rem, 7.5vmin, 3rem);
}

body.pagina-ramos-01 .ramos01-barra-der {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin-left: 0;
  width: max-content;
  min-width: min-content;
  max-width: none;
  flex-shrink: 0;
  padding: 0.32rem 0.5rem 0.36rem 0.55rem;
}

body.pagina-ramos-01 .ramos01-semillas-score-fila {
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
}

body.pagina-ramos-01 .titulo-wrap--semillas {
  padding: 0.02rem 0.08rem 0.06rem;
  flex-shrink: 0;
  max-width: none;
  min-width: min-content;
}

body.pagina-ramos-01 .titulo-wrap--semillas .chispa {
  display: none;
}

body.pagina-ramos-01 .titulo-wrap--semillas .titulo-dorado {
  max-width: none;
  min-width: min-content;
  overflow: visible;
  text-overflow: clip;
  letter-spacing: 0;
}

body.pagina-ramos-01 .ramos01-barra-sup .ramos01-subtitulo {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  max-width: min(36rem, 94vw);
  margin: 0;
  padding: 0 0.5rem 0.15rem;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  line-height: 1.32;
  font-family: "Chicle", cursive;
  font-size: clamp(1.3rem, 4vmin, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff9f2;
  -webkit-text-fill-color: #fff9f2;
  -webkit-text-stroke: 0.055rem rgba(32, 14, 24, 0.92);
  paint-order: stroke fill;
  white-space: normal;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(12, 4, 10, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.75),
    0 0 14px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(8, 4, 12, 0.45),
    0 0 32px rgba(255, 190, 220, 0.2);
}

/* ramos-partida.html — emparejar flores */
body.pagina-ramos-02 {
  --ramos02-celda: min(
    6.3rem,
    108px,
    calc((100dvh - 11rem) / 4.7),
    calc((100vw - 2rem) / 5.35)
  );
}

@media (max-width: 380px) and (not ((orientation: portrait) and (max-width: 768px))) {
  body.pagina-ramos-02 {
    --ramos02-celda: min(
      5.45rem,
      94px,
      calc((100dvh - 11rem) / 4.7),
      calc((100vw - 2rem) / 5.35)
    );
  }
}

/* Tablet con altura suficiente: celdas un poco mayores */
@media (min-width: 481px) and (min-height: 521px) and (max-width: 1100px) {
  body.pagina-ramos-02 {
    --ramos02-celda: min(
      clamp(5.3rem, 11.8vmin, 7.45rem),
      calc((100dvh - 11rem) / 4.7),
      calc((100vw - 2rem) / 5.35)
    );
  }

  body.pagina-ramos-02 .ramos01-barra-sup .ramos01-subtitulo {
    width: min(36rem, calc(100vw - 13.5rem));
    max-width: min(36rem, calc(100vw - 13.5rem));
    font-size: clamp(1.18rem, 2.95vmin, 1.68rem);
  }

  body.pagina-ramos-02 .ramos02-subtitulo {
    width: min(32rem, calc(100vw - 13.5rem));
    max-width: min(32rem, calc(100vw - 13.5rem));
    font-size: clamp(1.15rem, 2.88vmin, 1.65rem);
  }

  body.pagina-ramos-02 .ramos01-titulo {
    font-size: clamp(1.75rem, 5.65vmin, 2.92rem);
  }

  body.pagina-ramos-02 .ramos01-barra-sup a.btn-img img,
  body.pagina-ramos-02 .ramos01-barra-sup button.btn-img img {
    height: clamp(2.35rem, 6.1vmin, 3.92rem);
    max-width: min(24vw, 9.95rem);
  }

  body.pagina-ramos-02 .titulo-wrap--semillas .titulo-dorado {
    font-size: clamp(1.18rem, 3.05vw, 1.78rem);
  }

  body.pagina-ramos-02 .ramos01-semillas-sep {
    font-size: clamp(1.15rem, 2.92vw, 1.72rem);
  }

  body.pagina-ramos-02 .ramos01-puntos-valor {
    font-size: clamp(1.25rem, 3.35vmin, 1.92rem);
  }

  body.pagina-ramos-02 .ramos02-main {
    max-width: min(94vw, 44rem);
    padding: max(5.15rem, calc(4.25rem + env(safe-area-inset-top, 0px))) 1rem
      max(1rem, env(safe-area-inset-bottom, 0px));
  }

  body.pagina-ramos-02 .ramos02-aviso-linea {
    font-size: clamp(1.28rem, 3.45vmin, 2.18rem);
  }

  body.pagina-ramos-02 .ramos02-aviso-sub {
    font-size: clamp(1.08rem, 2.75vmin, 1.48rem);
  }

  body.pagina-ramos-02 .ramos02-mesa {
    gap: clamp(0.46rem, 2.05vmin, 0.85rem);
  }
}

/* Tablet en horizontal baja: ajuste fino (no aplica en móvil; ahí se usa vertical) */
@media (orientation: landscape) and (max-height: 520px) {
  html:not(.modo-movil) body.pagina-ramos-02 {
    --ramos02-celda: min(
      calc((100dvh - 8.5rem) / 4.85),
      calc((100vw - 1.5rem) / 5.4),
      76px
    );
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
  }

  body.pagina-ramos-02 .ramos02-layout {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body.pagina-ramos-02 .ramos02-main {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - 0.5rem);
    padding-top: max(4.1rem, calc(3.2rem + env(safe-area-inset-top, 0px)));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    gap: 0.15rem;
    overflow: hidden;
  }

  body.pagina-ramos-02 .ramos01-barra-sup a.btn-img img,
  body.pagina-ramos-02 .ramos01-barra-sup button.btn-img img {
    height: clamp(1.85rem, 8dvh, 2.65rem);
    max-width: min(20vw, 6.5rem);
  }

  body.pagina-ramos-02 .ramos01-titulo {
    font-size: clamp(1.15rem, 4.5dvh, 1.6rem);
  }

  body.pagina-ramos-02 .ramos01-barra-sup .ramos01-subtitulo,
  body.pagina-ramos-02 .ramos02-subtitulo {
    font-size: clamp(0.82rem, 3.1dvh, 1.1rem);
    line-height: 1.15;
  }

  body.pagina-ramos-02 .ramos01-barra-der {
    padding: 0.28rem 0.45rem 0.32rem 0.5rem;
  }

  body.pagina-ramos-02 .titulo-wrap--semillas .titulo-dorado {
    font-size: clamp(0.9rem, 3.4dvh, 1.28rem);
  }

  body.pagina-ramos-02 .ramos01-semillas-sep,
  body.pagina-ramos-02 .ramos01-puntos-valor {
    font-size: clamp(0.95rem, 3.6dvh, 1.35rem);
  }

  body.pagina-ramos-02 .ramos02-mesa {
    gap: clamp(0.22rem, 1.1dvh, 0.48rem);
    margin-top: 0;
  }

  body.pagina-ramos-02 .ramos03-tablero {
    min-height: 0;
    max-height: calc(100dvh - 8rem);
    gap: clamp(0.35rem, 1.5dvh, 0.65rem);
  }

  body.pagina-ramos-02 .ramos03-meta-fila--multi .ramos03-meta-cuota {
    font-size: clamp(1.35rem, 6dvh, 2.25rem);
  }

  body.pagina-ramos-02 .ramos02-aviso-linea {
    font-size: clamp(1rem, 4.2dvh, 1.55rem);
  }

  body.pagina-ramos-02 .ramos02-aviso-sub {
    font-size: clamp(0.8rem, 3dvh, 1.1rem);
  }

  /* Juego Cuida (mcuida-partida): cinta y macetas */
  body.pagina-000 .cinta-banda-fila-000 {
    min-height: clamp(6.5rem, 30dvh, 10rem);
  }

  body.pagina-000 .cinta-box-000 {
    height: clamp(6.5rem, 30dvh, 10rem);
    min-width: clamp(2.75rem, 9vw, 4.5rem);
  }

  body.pagina-000 .cinta-000 {
    --cinta-alto-items: clamp(3.5rem, 12dvh, 5.25rem);
  }
}

body.pagina-ramos-02 .ramos02-particulas-root {
  position: fixed;
  inset: 0;
  z-index: 9998 !important;
  pointer-events: none;
  overflow: visible;
}

body.pagina-ramos-02 .ramos02-subtitulo {
  font-size: calc(clamp(1.2rem, 3.95vmin, 1.75rem) + 2px);
  width: min(35rem, max(40vw, calc(100vw - 2.5rem - min(22rem, 52vw))));
  max-width: min(35rem, max(40vw, calc(100vw - 2.5rem - min(22rem, 52vw))));
}

body.pagina-ramos-02 .ramos02-layout {
  font-family: "Chicle", cursive;
}

body.pagina-ramos-02 .ramos02-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  box-sizing: border-box;
  width: 100%;
  max-width: min(96vw, 46rem);
  margin: 0 auto;
  padding: max(10.75rem, calc(9.5rem + env(safe-area-inset-top, 0px))) 1rem
    max(1.25rem, env(safe-area-inset-bottom, 0px));
  color: #fff9e8;
}

/* Niveles 11+: avisos flotantes bajo el subtítulo; no desplazan la mesa (fuera del flujo flex) */
body.pagina-ramos-02 .ramos02-aviso-flores {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 6;
  width: min(94vw, 42rem);
  max-width: min(94vw, 42rem);
  margin: 0;
  padding: 0.2rem 0.85rem 0;
  border-radius: 0;
  box-sizing: border-box;
  border: none;
  cursor: default;
  pointer-events: none;
  touch-action: manipulation;
  font: inherit;
  text-align: center;
  font-family: "Chewy", cursive;
  line-height: 1.22;
  color: hsl(222, 52%, 30%);
  background: transparent;
  box-shadow: none;
}

body.pagina-ramos-02 .ramos02-aviso-linea {
  display: block;
  font-size: clamp(1.95rem, 6.55vmin, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: hsl(222, 52%, 30%);
}

body.pagina-ramos-02 .ramos02-aviso-flores .ramos02-aviso-linea {
  color: hsl(222, 55%, 31%);
  text-shadow:
    0 0 10px rgba(160, 195, 255, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(15, 40, 90, 0.25);
}

body.pagina-ramos-02 .ramos02-aviso-flores[hidden] {
  display: none !important;
}

body.pagina-ramos-02 .ramos02-aviso-sub {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 6;
  width: min(92vw, 40rem);
  max-width: min(92vw, 40rem);
  margin: 0;
  padding: 0.15rem 0.85rem;
  border-radius: 0;
  box-sizing: border-box;
  font-family: "Chicle", cursive;
  font-size: clamp(1.38rem, 4.65vmin, 1.88rem);
  line-height: 1.35;
  text-align: center;
  color: hsl(222, 52%, 30%);
  cursor: default;
  pointer-events: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: none;
  box-shadow: none;
  text-shadow:
    0 0 10px rgba(160, 195, 255, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(15, 40, 90, 0.22);
}

body.pagina-ramos-02 .ramos02-aviso-sub[hidden] {
  display: none !important;
}

body.pagina-ramos-02 .ramos02-mesa {
  display: grid;
  grid-template-columns: repeat(5, var(--ramos02-celda));
  grid-template-rows: repeat(4, var(--ramos02-celda));
  justify-content: center;
  align-content: start;
  align-items: center;
  justify-items: center;
  gap: clamp(0.52rem, 2.55vmin, 1.05rem);
  width: fit-content;
  max-width: 100%;
  margin: 0.15rem auto 0;
  box-sizing: border-box;
}

body.pagina-ramos-02 .ramos02-mesa[hidden] {
  display: none !important;
}

body.pagina-ramos-02 .ramos03-tablero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: min(100%, 34rem);
  min-height: min(72vmin, 28rem);
  margin: 0.15rem auto 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  gap: clamp(0.65rem, 2.2vmin, 1.1rem);
}

body.pagina-ramos-02 .ramos03-tablero[hidden] {
  display: none !important;
}

body.pagina-ramos-02 .ramos03-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: clamp(0.55rem, 2vmin, 1rem);
}

body.pagina-ramos-02 .ramos03-meta-fila {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 3vmin, 1.15rem);
  text-align: center;
  width: 100%;
}

body.pagina-ramos-02 .ramos03-meta-fila--multi {
  flex-wrap: nowrap;
  max-width: 100%;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-inline: clamp(0, 1vw, 0.35rem);
}

body.pagina-ramos-02 .ramos03-meta-par {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.28rem, 1.8vmin, 0.65rem);
  flex-shrink: 0;
}

body.pagina-ramos-02 .ramos03-meta-par--completado {
  pointer-events: none;
  animation: ramos03-meta-par-sale 0.38s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-ramos-02 .ramos03-meta-par--completado {
    animation: none;
    opacity: 0;
  }
}

@keyframes ramos03-meta-par-sale {
  to {
    opacity: 0;
    transform: scale(0.88);
    filter: blur(1px);
  }
}

body.pagina-ramos-02 .ramos03-meta-fila--multi .ramos03-meta-par .ramos03-meta-flor {
  width: calc(var(--ramos02-celda) * 0.88);
  height: calc(var(--ramos02-celda) * 0.88);
}

body.pagina-ramos-02 .ramos03-meta-fila--multi .ramos03-meta-par .ramos03-meta-img {
  width: calc(var(--ramos02-celda) * 0.88);
  height: calc(var(--ramos02-celda) * 0.88);
  max-width: calc(var(--ramos02-celda) * 0.88);
  max-height: calc(var(--ramos02-celda) * 0.88);
  transform: scale(1);
}

body.pagina-ramos-02 .ramos03-meta-fila--multi .ramos03-meta-cuota {
  font-size: clamp(2.15rem, 10vmin, 3.65rem);
}

body.pagina-ramos-02 .ramos03-carruseles {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: clamp(0.35rem, 1.5vmin, 0.75rem);
}

body.pagina-ramos-02 .ramos03-carrusel-slot {
  width: 100%;
  flex-shrink: 0;
}

body.pagina-ramos-02 .ramos03-carruseles--doble .ramos03-carrusel-slot--inf .ramos03-carrusel-mirror-x {
  width: 100%;
  transform: scaleX(-1);
  transform-origin: center center;
}

body.pagina-ramos-02 .ramos03-carruseles--doble .ramos03-carrusel-slot--inf .ramos03-carrusel-item {
  transform: scaleX(-1);
  transform-origin: center center;
}

body.pagina-ramos-02 .ramos03-carruseles--doble.ramos03-carruseles--swap-flip {
  overflow: visible;
}

body.pagina-ramos-02 .ramos03-carruseles--doble.ramos03-carruseles--swap-flip .ramos03-carrusel-viewport {
  overflow: visible;
}

body.pagina-ramos-02 .ramos03-carruseles--doble .ramos03-carrusel-viewport {
  padding-top: 0.2rem;
  padding-bottom: 0.35rem;
}

body.pagina-ramos-02 .ramos03-meta-flor {
  width: var(--ramos02-celda);
  height: var(--ramos02-celda);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

body.pagina-ramos-02 .ramos03-meta-img {
  width: var(--ramos02-celda);
  height: var(--ramos02-celda);
  max-width: var(--ramos02-celda);
  max-height: var(--ramos02-celda);
  object-fit: contain;
  transform: scale(1);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
}

body.pagina-ramos-02 .ramos03-meta-cuota {
  margin: 0;
  flex-shrink: 0;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(2.95rem, 14vmin, 4.85rem);
  line-height: 1;
  letter-spacing: 0.03em;
  background: linear-gradient(
    185deg,
    #fffbeb 0%,
    #f5e6a8 18%,
    #e8c547 42%,
    #b8860b 68%,
    #7a5a0a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 14px rgba(232, 197, 71, 0.28));
  animation: brillo-suave 3s ease-in-out infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  body.pagina-ramos-02 .ramos03-meta-cuota {
    color: #e8c547;
    -webkit-text-fill-color: unset;
    background: none;
    filter: none;
    animation: none;
    text-shadow:
      0 1px 0 #fff9e0,
      0 2px 0 #c9a227,
      0 4px 12px rgba(0, 0, 0, 0.55);
  }
}

body.pagina-ramos-02 .ramos03-carrusel-viewport {
  width: 100%;
  overflow: hidden;
  padding: 0.35rem 0 0.5rem;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

body.pagina-ramos-02 .ramos03-carrusel-track {
  --ramos03-marquee-dur: 42s;
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
  animation: ramos03-marquee var(--ramos03-marquee-dur, 42s) linear infinite;
}

body.pagina-ramos-02 .ramos03-carrusel-track.ramos03-carrusel-track--invert {
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-ramos-02 .ramos03-carrusel-track {
    animation-duration: 120s !important;
  }

  body.pagina-ramos-02 .ramos03-carrusel-item--ok,
  body.pagina-ramos-02 .ramos03-carrusel-item--cae {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes ramos03-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

body.pagina-ramos-02 .ramos03-carrusel-grupo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.42rem, 2vmin, 0.85rem);
  flex-shrink: 0;
  padding: 0 clamp(0.35rem, 1.5vmin, 0.65rem);
}

body.pagina-ramos-02 .ramos03-carrusel-item {
  flex-shrink: 0;
  width: var(--ramos02-celda);
  height: var(--ramos02-celda);
  box-sizing: border-box;
  border: none;
  border-radius: 14%;
  cursor: pointer;
  touch-action: manipulation;
  appearance: none;
  padding: 2px;
  margin: 0;
  background: linear-gradient(145deg, #f7f2e4 0%, #dcd3bc 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease;
}

body.pagina-ramos-02 .ramos03-carrusel-item:active:not(.ramos03-carrusel-item--ok) {
  transform: scale(0.96);
}

body.pagina-ramos-02 .ramos03-carrusel-item--error {
  animation: ramos02-sacudir 0.32s ease;
  box-shadow:
    0 0 0 2px rgba(220, 48, 48, 0.78),
    0 0 18px rgba(210, 35, 35, 0.52),
    0 4px 14px rgba(0, 0, 0, 0.38),
    inset 0 0 6px rgba(255, 90, 90, 0.18);
}

body.pagina-ramos-02 .ramos03-carrusel-item--error .ramos03-carrusel-img {
  filter: brightness(0.88) saturate(1.5) hue-rotate(-8deg) drop-shadow(0 0 7px rgba(200, 25, 25, 0.72));
}

body.pagina-ramos-02
  .ramos03-carruseles--doble
  .ramos03-carrusel-slot--inf
  .ramos03-carrusel-item:active:not(.ramos03-carrusel-item--ok) {
  transform: scaleX(-1) scale(0.96);
}

body.pagina-ramos-02 .ramos03-carrusel-item.ramos03-carrusel-item--blink-off {
  filter: brightness(var(--ramos03-j3-blink-b, 0.08)) saturate(var(--ramos03-j3-blink-s, 0.5));
  opacity: var(--ramos03-j3-blink-o, 0.2);
}

body.pagina-ramos-02 .ramos03-carrusel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Juego 3 niveles 41–60: giro sobre sí en la imagen; el carril sigue con marquee */
@keyframes ramos03-flor-giro-en-casilla {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-item:not(.ramos03-carrusel-item--ok):not(.ramos03-carrusel-item--cae)
  .ramos03-carrusel-img {
  animation: ramos03-flor-giro-en-casilla var(--ramos03-spin-dur, 14s) linear infinite;
  transform-origin: 50% 50%;
}

body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-grupo
  .ramos03-carrusel-item:nth-child(4n + 1):not(.ramos03-carrusel-item--ok):not(.ramos03-carrusel-item--cae)
  .ramos03-carrusel-img {
  --ramos03-spin-dur: 11.5s;
  animation-delay: -0.7s;
}

body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-grupo
  .ramos03-carrusel-item:nth-child(4n + 2):not(.ramos03-carrusel-item--ok):not(.ramos03-carrusel-item--cae)
  .ramos03-carrusel-img {
  --ramos03-spin-dur: 16s;
  animation-delay: -2.2s;
}

body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-grupo
  .ramos03-carrusel-item:nth-child(4n + 3):not(.ramos03-carrusel-item--ok):not(.ramos03-carrusel-item--cae)
  .ramos03-carrusel-img {
  --ramos03-spin-dur: 13s;
  animation-delay: -3.8s;
}

body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-grupo
  .ramos03-carrusel-item:nth-child(4n + 4):not(.ramos03-carrusel-item--ok):not(.ramos03-carrusel-item--cae)
  .ramos03-carrusel-img {
  --ramos03-spin-dur: 18.5s;
  animation-delay: -1.1s;
}

body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-slot--inf
  .ramos03-carrusel-item:not(.ramos03-carrusel-item--ok):not(.ramos03-carrusel-item--cae)
  .ramos03-carrusel-img {
  animation-direction: reverse;
}

body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-item--ok
  .ramos03-carrusel-img,
body.pagina-ramos-02
  #ramos03-tablero.ramos03-carrusel-spin-flores
  .ramos03-carrusel-item--cae
  .ramos03-carrusel-img {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-ramos-02 #ramos03-tablero.ramos03-carrusel-spin-flores .ramos03-carrusel-img {
    animation: none !important;
  }
}

body.pagina-ramos-02 .ramos03-carrusel-item--ok {
  pointer-events: none;
  animation: ramos03-flor-subida 1.12s cubic-bezier(0.22, 0.72, 0.28, 1) forwards;
}

@keyframes ramos03-flor-subida {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) blur(0);
  }

  20% {
    opacity: 1;
    transform: translateY(min(-1.1vh, -0.55rem)) scale(1.06);
    filter: brightness(1.1) blur(0);
  }

  55% {
    opacity: 0.88;
    transform: translateY(min(-5vh, -1.85rem)) scale(1.02);
    filter: brightness(1.12) blur(0.3px);
  }

  100% {
    opacity: 0;
    transform: translateY(min(-11vh, -3.6rem)) scale(0.92);
    filter: brightness(1.18) blur(2px);
  }
}

body.pagina-ramos-02 .ramos03-carrusel-item--cae {
  animation: ramos03-flor-cae 0.48s ease forwards;
}

@keyframes ramos03-flor-cae {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(min(42vh, 14rem)) scale(0.82);
  }
}

body.pagina-ramos-02 .ramos02-carta--j2-oculta {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.2) !important;
  max-width: 0 !important;
  max-height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    max-width 0.35s ease,
    max-height 0.35s ease;
}

@keyframes ramos02-j2-cae {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(min(46vh, 16rem)) scale(0.82);
  }
}

body.pagina-ramos-02 .ramos02-carta.ramos02-carta--j2-cae {
  z-index: 6;
  pointer-events: none !important;
  transition: none !important;
  animation: ramos02-j2-cae 0.75s cubic-bezier(0.42, 0.02, 0.58, 1) forwards !important;
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-ramos-02 .ramos02-carta.ramos02-carta--j2-cae {
    animation: none !important;
    opacity: 0 !important;
    transform: translateY(0.75rem) scale(0.96) !important;
    transition: opacity 0.18s ease;
  }
}

body.pagina-ramos-02 .ramos02-carta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--ramos02-celda);
  height: var(--ramos02-celda);
  max-width: var(--ramos02-celda);
  max-height: var(--ramos02-celda);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  justify-self: center;
  align-self: center;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  border: none;
  padding: 0.38rem;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
  appearance: none;
  font: inherit;
  background: linear-gradient(
    158deg,
    rgba(90, 48, 68, 0.4) 0%,
    rgba(36, 16, 30, 0.72) 100%
  );
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.32s ease,
    filter 0.28s ease,
    outline 0.22s ease;
}

body.pagina-ramos-02 .ramos02-carta:active:not(:disabled):not(.ramos02-carta--sel) {
  transform: scale(0.97);
}

body.pagina-ramos-02 .ramos02-carta--blink-off {
  filter: brightness(0.08) saturate(0.5);
  opacity: 0.2;
}

body.pagina-ramos-02 .ramos02-carta--sel {
  outline: 3px solid rgba(255, 228, 160, 0.98);
  outline-offset: 3px;
  transform: scale(1.07);
  z-index: 3;
  overflow: visible;
  filter: brightness(1.08) saturate(1.12);
  box-shadow:
    0 0 0 2px rgba(255, 160, 90, 0.45),
    0 0 32px rgba(255, 210, 130, 0.55),
    0 0 52px rgba(255, 140, 200, 0.32),
    0 10px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation:
    ramos02-seleccion-elevacion 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    ramos02-seleccion-resplandor 1.35s ease-in-out infinite 0.48s;
}

@keyframes ramos02-seleccion-elevacion {
  0% {
    transform: scale(0.94) translateY(4px);
    filter: brightness(1) saturate(1);
  }
  70% {
    transform: scale(1.09) translateY(-3px);
  }
  100% {
    transform: scale(1.07) translateY(-2px);
    filter: brightness(1.08) saturate(1.12);
  }
}

@keyframes ramos02-seleccion-resplandor {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 160, 90, 0.45),
      0 0 28px rgba(255, 210, 130, 0.45),
      0 0 44px rgba(255, 140, 200, 0.25),
      0 10px 28px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 200, 120, 0.65),
      0 0 40px rgba(255, 220, 150, 0.75),
      0 0 64px rgba(255, 160, 210, 0.45),
      0 12px 32px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

body.pagina-ramos-02 .ramos02-carta--sel .ramos02-carta-img {
  animation: ramos02-seleccion-flor 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes ramos02-seleccion-flor {
  0% {
    transform: scale(0.88) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-ramos-02 .ramos02-carta {
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  }

  body.pagina-ramos-02 .ramos02-carta--sel {
    animation: none;
    transform: scale(1.03);
    filter: brightness(1.05);
    box-shadow:
      0 0 0 2px rgba(255, 180, 100, 0.4),
      0 0 18px rgba(255, 210, 130, 0.35),
      0 6px 18px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  body.pagina-ramos-02 .ramos02-carta--sel .ramos02-carta-img {
    animation: none;
  }
}

body.pagina-ramos-02 .ramos02-carta--error {
  animation: ramos02-sacudir 0.32s ease;
  box-shadow:
    0 0 0 2px rgba(220, 48, 48, 0.78),
    0 0 18px rgba(210, 35, 35, 0.52),
    0 5px 16px rgba(0, 0, 0, 0.38),
    inset 0 0 8px rgba(255, 90, 90, 0.18);
}

body.pagina-ramos-02 .ramos02-carta--error .ramos02-carta-img {
  filter: brightness(0.88) saturate(1.5) hue-rotate(-8deg) drop-shadow(0 0 7px rgba(200, 25, 25, 0.72));
}

@keyframes ramos02-sacudir {
  0%,
  100% {
    transform: translateX(0);
  }
  22% {
    transform: translateX(-6px);
  }
  55% {
    transform: translateX(6px);
  }
}

@keyframes ramos02-acierto-resplandor {
  0% {
    filter: brightness(1.42) saturate(1.3)
      drop-shadow(0 0 10px rgba(255, 248, 210, 0.95))
      drop-shadow(0 0 22px rgba(255, 215, 120, 0.85));
    box-shadow:
      0 0 0 3px rgba(255, 228, 150, 0.95),
      0 0 32px rgba(255, 238, 170, 1),
      0 0 56px rgba(255, 200, 90, 0.9),
      0 0 88px rgba(255, 170, 100, 0.5),
      0 10px 28px rgba(0, 0, 0, 0.38),
      inset 0 0 18px rgba(255, 255, 245, 0.4);
  }
  38% {
    filter: brightness(1.72) saturate(1.42)
      drop-shadow(0 0 18px rgba(255, 252, 220, 1))
      drop-shadow(0 0 36px rgba(255, 210, 100, 1))
      drop-shadow(0 0 56px rgba(255, 160, 80, 0.65));
    box-shadow:
      0 0 0 4px rgba(255, 235, 160, 1),
      0 0 44px rgba(255, 245, 190, 1),
      0 0 72px rgba(255, 200, 100, 0.95),
      0 0 110px rgba(255, 150, 90, 0.55),
      0 12px 32px rgba(0, 0, 0, 0.32),
      inset 0 0 26px rgba(255, 255, 255, 0.55);
  }
  100% {
    filter: brightness(1.22) saturate(1.18)
      drop-shadow(0 0 14px rgba(255, 220, 140, 0.75));
    box-shadow:
      0 0 0 2px rgba(255, 200, 120, 0.7),
      0 0 40px rgba(255, 220, 140, 0.8),
      0 0 64px rgba(255, 180, 90, 0.45),
      0 8px 22px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}

body.pagina-ramos-02 .ramos02-carta--acierto {
  overflow: visible;
  z-index: 8;
  animation: ramos02-acierto-resplandor 0.78s ease-out forwards;
}

body.pagina-ramos-02 .ramos02-carta--hecha {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
  transition:
    opacity 0.38s ease,
    transform 0.38s ease,
    visibility 0s linear 0.42s;
}

body.pagina-ramos-02 .ramos02-carta-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
}

body.pagina-ramos-02 .ramos02-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1.25rem max(1rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

body.pagina-ramos-02 #ramos02-modal.ramos02-modal {
  background: rgba(255, 255, 255, 0.12);
}

body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal {
  z-index: 10004;
  background: rgba(40, 110, 72, 0.14);
}

body.pagina-ramos-02 #ramos02-modal-juego-completo.ramos02-modal,
body.pagina-ramos-02 #mcuida-modal-juego-completo.ramos02-modal,
body.pagina-ramos-02 #mcuida-modal-recompensa.ramos02-modal {
  z-index: 10005;
  background: rgba(40, 110, 72, 0.14);
}

body.pagina-ramos-02 #mcuida-modal-juego-completo.ramos02-modal {
  z-index: 10006;
}

body.pagina-ramos-02 .ramos02-modal[hidden] {
  display: none !important;
}

body.pagina-ramos-02 .ramos02-modal-inner {
  max-width: 26rem;
  width: 100%;
  max-height: min(88dvh, 38rem);
  margin: auto;
  overflow: auto;
  padding: 1.65rem 1.35rem 1.65rem;
  border-radius: 18px;
  box-sizing: border-box;
  text-align: center;
}

body.pagina-ramos-02 #ramos02-modal .ramos02-modal-inner {
  background: linear-gradient(
    168deg,
    rgba(52, 88, 140, 0.52) 0%,
    rgba(28, 48, 92, 0.62) 100%
  );
  border: 1px solid rgba(170, 205, 255, 0.38);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(100, 160, 255, 0.2);
}

body.pagina-ramos-02 .ramos02-modal-inner--ramos {
  max-width: min(42rem, 96vw);
  background: linear-gradient(
    168deg,
    rgba(42, 118, 78, 0.54) 0%,
    rgba(18, 58, 40, 0.64) 100%
  );
  border: 1px solid rgba(165, 235, 195, 0.4);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(70, 200, 130, 0.22);
}

body.pagina-ramos-02 .ramos02-modal-ramos-frase {
  margin: 0 0 0.35rem;
  color: rgba(255, 245, 250, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

@keyframes ramos02-texto-entra {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pagina-ramos-02 #ramos02-modal:not([hidden]) .ramos02-modal-titulo {
  animation:
    ramos02-texto-entra 0.58s cubic-bezier(0.22, 1, 0.36, 1) both,
    brillo-suave 3s ease-in-out 0.55s infinite;
}

body.pagina-ramos-02 #ramos02-modal:not([hidden]) #ramos02-modal-texto {
  animation:
    ramos02-texto-entra 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both,
    brillo-ramos 3s ease-in-out 0.65s infinite;
}

body.pagina-ramos-02 #ramos02-modal:not([hidden]) .ramos02-modal-botones {
  animation: ramos02-texto-entra 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-titulo {
  animation:
    ramos02-texto-entra 0.65s cubic-bezier(0.22, 1, 0.36, 1) both,
    brillo-suave 3s ease-in-out 0.6s infinite;
}

body.pagina-ramos-02 #ramos02-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-titulo,
body.pagina-ramos-02 #mcuida-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-titulo {
  animation:
    ramos02-texto-entra 0.65s cubic-bezier(0.22, 1, 0.36, 1) both,
    brillo-suave 3s ease-in-out 0.6s infinite;
}

body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-ramos-frase,
body.pagina-ramos-02 #mcuida-modal-recompensa.ramos02-modal--abierto .ramos02-modal-ramos-frase {
  animation: ramos02-texto-entra 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

body.pagina-ramos-02 #ramos02-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-ramos-frase,
body.pagina-ramos-02 #mcuida-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-ramos-frase {
  animation: ramos02-texto-entra 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-ramos-siguiente-nivel {
  animation: ramos02-texto-entra 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-botones--solo {
  animation: ramos02-texto-entra 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

body.pagina-ramos-02 #ramos02-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-botones--solo,
body.pagina-ramos-02 #mcuida-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-botones--solo,
body.pagina-ramos-02 #mcuida-modal-recompensa.ramos02-modal--abierto .ramos02-modal-botones--solo {
  animation: ramos02-texto-entra 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-ramos-vacio {
  animation: ramos02-texto-entra 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* garantizar visibilidad del contenido del modal juego-completo aunque la animación falle */
body.pagina-ramos-02 #ramos02-modal-juego-completo .ramos02-modal-titulo,
body.pagina-ramos-02 #ramos02-modal-juego-completo .ramos02-modal-ramos-frase,
body.pagina-ramos-02 #ramos02-modal-juego-completo .ramos02-modal-botones--solo,
body.pagina-ramos-02 #ramos02-modal-juego-completo .ramos02-buquet-item {
  opacity: 1 !important;
  transform: none !important;
}

body.pagina-ramos-02 .ramos02-aviso-flores:not([hidden]) .ramos02-aviso-linea {
  animation: ramos02-texto-entra 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.pagina-ramos-02 .ramos02-aviso-sub:not([hidden]) {
  animation: ramos02-texto-entra 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

body.pagina-ramos-02 .ramos02-proximo:not([hidden]) .ramos02-proximo-txt {
  animation: ramos02-texto-entra 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.pagina-ramos-02 .ramos02-proximo:not([hidden]) .ramos02-boton {
  animation: ramos02-texto-entra 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

body.pagina-ramos-02 .ramos02-modal-ramos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  min-height: 4.5rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.35rem 0;
}

body.pagina-ramos-02 .ramos02-buquet-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  overflow: visible;
  opacity: 0;
  will-change: transform, opacity;
  animation: ramos02-buquet-entra 0.88s cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}

@keyframes ramos02-buquet-entra {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(28px) rotate(-12deg);
  }
  65% {
    opacity: 1;
    transform: scale(1.12) translateY(-8px) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

body.pagina-ramos-02 .ramos02-buquet-img {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(4.1rem, 16.5vmin, 6.15rem);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.42)) brightness(1.06)
    drop-shadow(0 0 10px rgba(255, 238, 200, 0.55))
    drop-shadow(0 0 20px rgba(255, 205, 110, 0.38));
}

body.pagina-ramos-02 .ramos02-modal-ramos-vacio {
  margin: 0;
  font-family: "Chewy", cursive;
  font-size: clamp(1.12rem, 3.45vmin, 1.45rem);
  line-height: 1.35;
  color: rgba(255, 235, 245, 0.88);
  max-width: 22rem;
  margin-inline: auto;
}

body.pagina-ramos-02 .ramos02-modal-ramos-siguiente-nivel {
  margin: 0 0 0.25rem;
  font-size: clamp(1.18rem, 3.7vmin, 1.55rem);
  color: rgba(255, 248, 235, 0.95);
}

body.pagina-ramos-02 .ramos02-modal-botones--solo {
  margin-top: 0.85rem;
}

body.pagina-ramos-02 .ramos02-modal-titulo {
  margin: 0 0 0.55rem;
  font-family: "Chicle", cursive;
  font-size: clamp(2.15rem, 7vmin, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  background: linear-gradient(
    185deg,
    #fffbeb 0%,
    #f5e6a8 18%,
    #e8c547 42%,
    #b8860b 68%,
    #7a5a0a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 24px rgba(232, 197, 71, 0.35));
}

body.pagina-ramos-02 .ramos02-modal-txt {
  margin: 0;
  font-family: "Chewy", cursive;
  font-size: clamp(1.2rem, 3.95vmin, 1.62rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

body.pagina-ramos-02 #ramos02-modal-texto {
  font-size: clamp(1.58rem, 5.15vmin, 2.1rem);
  color: #8fd3ff;
  -webkit-text-fill-color: currentColor;
  text-shadow:
    0 1px 0 rgba(235, 248, 255, 0.98),
    0 0 12px rgba(120, 210, 255, 0.95),
    0 0 26px rgba(90, 185, 255, 0.82),
    0 0 42px rgba(70, 160, 235, 0.5),
    0 2px 8px rgba(8, 30, 70, 0.35);
}

body.pagina-ramos-02 .ramos02-modal-botones {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

body.pagina-ramos-02 .ramos02-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.52rem 1.28rem;
  border-radius: 12px;
  border: none;
  font-family: "Chicle", cursive;
  font-size: clamp(1.32rem, 4.15vmin, 1.68rem);
  font-weight: 400;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
  color: #2a1810;
  background: linear-gradient(180deg, #ffeaa8 0%, #e8c547 45%, #c9a227 100%);
  box-shadow:
    0 2px 0 rgba(120, 90, 20, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

body.pagina-ramos-02 .ramos02-boton--sec {
  color: #2a1810;
  background: linear-gradient(180deg, #ffeaa8 0%, #e8c547 45%, #c9a227 100%);
  border: none;
  box-shadow:
    0 2px 0 rgba(120, 90, 20, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

body.pagina-ramos-02 .ramos02-boton:active {
  filter: brightness(0.94);
  transform: scale(0.98);
}

body.pagina-ramos-02 .ramos02-proximo {
  flex: 0 0 auto;
  text-align: center;
  max-width: 30rem;
  padding: 0.75rem 1rem 0;
}

body.pagina-ramos-02 .ramos02-proximo[hidden] {
  display: none !important;
}

body.pagina-ramos-02 .ramos02-proximo-txt {
  margin: 0 0 1rem;
  font-family: "Chewy", cursive;
  font-size: clamp(1.2rem, 4vmin, 1.65rem);
  line-height: 1.4;
  color: rgba(255, 245, 250, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

@keyframes ramos02-particula-nucleo {
  0%,
  100% {
    box-shadow:
      0 0 4px 1px rgba(255, 255, 255, 1),
      0 0 14px 2px rgba(255, 248, 200, 0.98),
      0 0 28px 3px rgba(255, 215, 100, 0.9),
      0 0 44px 4px rgba(255, 170, 60, 0.55),
      0 0 64px 6px rgba(255, 120, 80, 0.28);
    filter: brightness(1.08) saturate(1.12);
  }
  50% {
    box-shadow:
      0 0 6px 2px rgba(255, 255, 255, 1),
      0 0 22px 4px rgba(255, 252, 220, 1),
      0 0 40px 5px rgba(255, 225, 120, 1),
      0 0 62px 8px rgba(255, 185, 70, 0.85),
      0 0 90px 10px rgba(255, 140, 90, 0.45);
    filter: brightness(1.38) saturate(1.28);
  }
}

body.pagina-ramos-02 .ramos02-particula {
  position: fixed;
  width: 15px;
  height: 15px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  background: radial-gradient(
    circle at 30% 28%,
    #ffffff 0%,
    #fffcef 22%,
    #fff0a0 48%,
    #ffc94a 78%,
    #e8a018 100%
  );
  box-shadow:
    0 0 5px 1px rgba(255, 255, 255, 1),
    0 0 16px 2px rgba(255, 235, 160, 0.98),
    0 0 30px 3px rgba(255, 200, 80, 0.88),
    0 0 48px 5px rgba(255, 160, 60, 0.55);
  animation: ramos02-particula-nucleo 0.32s ease-in-out infinite;
}

/* Vuelo hacia Semillas: sin pulso CSS (más fluido en móvil/tablet) */
body.pagina-ramos-02 .ramos02-particula--vuelo {
  animation: none;
  box-shadow:
    0 0 4px 1px rgba(255, 255, 255, 0.95),
    0 0 12px 2px rgba(255, 230, 150, 0.9),
    0 0 22px 3px rgba(255, 190, 70, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-ramos-02 .ramos02-carta--error {
    animation: none;
    box-shadow:
      0 0 0 2px rgba(220, 48, 48, 0.72),
      0 0 14px rgba(210, 35, 35, 0.45),
      0 4px 14px rgba(0, 0, 0, 0.36),
      inset 0 0 6px rgba(255, 90, 90, 0.16);
  }

  body.pagina-ramos-02 .ramos02-carta--error .ramos02-carta-img {
    filter: brightness(0.9) saturate(1.35) drop-shadow(0 0 5px rgba(200, 35, 35, 0.55));
  }

  body.pagina-ramos-02 .ramos03-carrusel-item--error {
    animation: none;
    box-shadow:
      0 0 0 2px rgba(220, 48, 48, 0.72),
      0 0 14px rgba(210, 35, 35, 0.45),
      0 4px 14px rgba(0, 0, 0, 0.36),
      inset 0 0 6px rgba(255, 90, 90, 0.16);
  }

  body.pagina-ramos-02 .ramos03-carrusel-item--error .ramos03-carrusel-img {
    filter: brightness(0.9) saturate(1.35) drop-shadow(0 0 5px rgba(200, 35, 35, 0.55));
  }

  body.pagina-ramos-02 .ramos02-particula {
    animation: none;
    filter: none;
    box-shadow:
      0 0 4px rgba(255, 255, 255, 0.9),
      0 0 12px rgba(255, 210, 120, 0.75);
  }

  body.pagina-ramos-02 .ramos02-carta--acierto {
    animation: none;
    filter: brightness(1.14);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.48),
      0 0 18px rgba(255, 210, 130, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body.pagina-ramos-02 #ramos02-modal:not([hidden]) .ramos02-modal-titulo,
  body.pagina-ramos-02 #ramos02-modal:not([hidden]) #ramos02-modal-texto,
  body.pagina-ramos-02 #ramos02-modal:not([hidden]) .ramos02-modal-botones,
  body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-titulo,
  body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-ramos-frase,
  body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-ramos-siguiente-nivel,
  body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-botones--solo,
  body.pagina-ramos-02 #ramos02-modal-ramos.ramos02-modal--abierto .ramos02-modal-ramos-vacio,
  body.pagina-ramos-02 #ramos02-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-titulo,
  body.pagina-ramos-02 #ramos02-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-ramos-frase,
  body.pagina-ramos-02 #ramos02-modal-juego-completo.ramos02-modal--abierto .ramos02-modal-botones--solo,
  body.pagina-ramos-02 .ramos02-aviso-flores:not([hidden]) .ramos02-aviso-linea,
  body.pagina-ramos-02 .ramos02-aviso-sub:not([hidden]),
  body.pagina-ramos-02 .ramos02-proximo:not([hidden]) .ramos02-proximo-txt,
  body.pagina-ramos-02 .ramos02-proximo:not([hidden]) .ramos02-boton {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.pagina-ramos-02 .ramos02-buquet-item {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  body.pagina-ramos-02 .ramos02-buquet-img {
    filter:
      drop-shadow(0 3px 10px rgba(0, 0, 0, 0.42)) brightness(1.04)
      drop-shadow(0 0 8px rgba(255, 238, 200, 0.45))
      drop-shadow(0 0 14px rgba(255, 205, 110, 0.28));
  }
}

/* Flores en L: esquinas izq/der pegadas al borde (todas las páginas con flores.js) */
@keyframes flor-plantada-izq {
  from {
    opacity: 0.35;
    transform: translate(0, 0);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes flor-plantada-der {
  from {
    opacity: 0.35;
    transform: translate(0, 0);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

#decor-flores.decor-flores {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  padding:
    0
    max(0px, env(safe-area-inset-right, 0px))
    max(0px, env(safe-area-inset-bottom, 0px))
    max(0px, env(safe-area-inset-left, 0px));
}

.decor-flores-lado {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.decor-flores-izq {
  justify-content: flex-start;
}

.decor-flores-izq .decor-flores-maceta {
  width: min(31.5vw, 10.6875rem);
  max-width: min(36vw, 11.8125rem);
}

.decor-flores-der {
  justify-content: flex-end;
  margin-left: auto;
}

.decor-flores-der .decor-flores-maceta {
  width: min(31.5vw, 10.6875rem);
  max-width: min(36vw, 11.8125rem);
  margin-left: auto;
  overflow: visible;
}

/* Ventana más alta: se ve casi toda la flor; solo recorta un poco abajo (“plantada”) */
.decor-flores-maceta {
  position: relative;
  height: clamp(6.1875rem, 27vmin, 12.375rem);
}

.decor-flores-img {
  position: absolute;
  bottom: 0;
  display: block;
  height: clamp(6.1875rem, 27vmin, 12.375rem);
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  opacity: 0.35;
}

.decor-flores-izq .decor-flores-img {
  left: 0;
  transform: translate(0, 0);
  transform-origin: bottom left;
  object-position: bottom left;
}

.decor-flores-der .decor-flores-img {
  left: auto;
  right: 0;
  transform: translate(0, 0);
  transform-origin: bottom right;
  object-position: bottom right;
}

.decor-flores.decor-flores--anim .decor-flores-izq .decor-flores-img {
  animation: flor-plantada-izq 2.6s ease-out forwards;
}

.decor-flores.decor-flores--anim .decor-flores-der .decor-flores-img {
  animation: flor-plantada-der 2.6s ease-out 0.55s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .decor-flores.decor-flores--anim .decor-flores-izq .decor-flores-img,
  .decor-flores.decor-flores--anim .decor-flores-der .decor-flores-img {
    animation: none;
    opacity: 1;
    transform: translate(0, 0);
  }
}











/* ── Tutorial popup Cuida ── */
.cuida-tutorial-inner {
  max-width: min(92vw, 28rem);
}
.cuida-tutorial-inner .ramos02-modal-txt {
  display: block;
  text-align: center;
}
.cuida-tutorial-maquinas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0 1.25rem;
}
.cuida-tutorial-maq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: "Chicle", cursive;
  font-size: clamp(0.9rem, 3vmin, 1.2rem);
  color: #f5e6b0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.cuida-tutorial-maq img {
  width: clamp(3rem, 12vmin, 5rem);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}


/* Tutorial guiado: parpadeo del boton correcto */
@keyframes btn-hint-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,230,80,0); border-color: rgba(255,248,238,0.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(255,230,80,0.55), 0 0 22px 4px rgba(255,200,0,0.45); border-color: rgba(255,230,80,0.95); transform: scale(1.08); }
}
.btn-maquina-000--hint {
  animation: btn-hint-pulse 0.8s ease-in-out infinite !important;
}

/* Pájaros (mbirds) — tablet / landscape: escena ancha */
body.pagina-mbirds {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
}

body.pagina-mbirds .mbirds-layout {
  position: relative;
  display: block;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  box-sizing: border-box;
}

body.pagina-mbirds .mbirds-barra {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  padding:
    max(0.4rem, env(safe-area-inset-top, 0px))
    max(0.55rem, env(safe-area-inset-right, 0px))
    0.25rem
    max(0.55rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  gap: 0.35rem;
  background: transparent;
  pointer-events: none;
}

body.pagina-mbirds .mbirds-barra a,
body.pagina-mbirds .mbirds-barra button {
  pointer-events: auto;
}

body.pagina-mbirds .mbirds-barra-volver {
  grid-column: 1;
  justify-self: start;
}

body.pagina-mbirds .mbirds-titulo {
  grid-column: 2;
  margin: 0;
  justify-self: center;
  max-width: 100%;
  font-family: "Chicle", cursive;
  font-weight: 400;
  font-size: clamp(1.35rem, 5.2vw, 2.35rem);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
  color: #dff8ff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 0 rgba(120, 200, 230, 0.45),
    0 0 14px rgba(100, 190, 230, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.55);
}

body.pagina-mbirds .mbirds-meta {
  margin: 0;
  padding: 0;
  font-family: "Chicle", cursive;
  font-size: clamp(1rem, 3.6vmin, 1.45rem);
  line-height: 1;
  color: #fff8d8;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 10px rgba(255, 210, 90, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

body.pagina-mbirds .mbirds-barra-der {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

body.pagina-mbirds .mbirds-semillas {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: "Chicle", cursive;
  font-size: clamp(1rem, 3.8vmin, 1.5rem);
  line-height: 1;
  color: #ffeaa8;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 10px rgba(255, 200, 70, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

body.pagina-mbirds .mbirds-semillas-valor--pulse {
  animation: mbirds-semillas-pulse 0.46s ease;
}

@keyframes mbirds-semillas-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

body.pagina-mbirds .mbirds-particulas-root {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: visible;
}

body.pagina-mbirds .mbirds-particula {
  position: fixed;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  background: radial-gradient(
    circle at 30% 28%,
    #ffffff 0%,
    #fffcef 22%,
    #fff0a0 48%,
    #ffc94a 78%,
    #e8a018 100%
  );
  box-shadow:
    0 0 5px 1px rgba(255, 255, 255, 1),
    0 0 16px 2px rgba(255, 235, 160, 0.98),
    0 0 30px 3px rgba(255, 200, 80, 0.88),
    0 0 48px 5px rgba(255, 160, 60, 0.55);
}

body.pagina-mbirds .mbirds-particula--vuelo {
  box-shadow:
    0 0 4px 1px rgba(255, 255, 255, 0.95),
    0 0 12px 2px rgba(255, 230, 150, 0.9),
    0 0 22px 3px rgba(255, 190, 70, 0.65);
}

body.pagina-mbirds #mbirds-modal .ramos02-modal-inner {
  width: min(92vw, 26rem);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(165deg, rgba(55, 75, 40, 0.96) 0%, rgba(35, 50, 28, 0.98) 100%);
  box-shadow:
    0 0 0 2px rgba(255, 235, 160, 0.35),
    0 12px 36px rgba(0, 0, 0, 0.45);
}

body.pagina-mbirds #mbirds-modal .ramos02-modal-titulo {
  margin: 0 0 0.55rem;
  font-family: "Chicle", cursive;
  font-size: clamp(2.15rem, 7vmin, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #ffeaa8;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

body.pagina-mbirds #mbirds-modal .ramos02-modal-txt {
  margin: 0;
  font-family: "Chewy", cursive;
  font-size: clamp(1.25rem, 4.2vmin, 1.7rem);
  line-height: 1.35;
  color: #dff8ff;
}

body.pagina-mbirds #mbirds-modal .ramos02-modal-botones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

body.pagina-mbirds #mbirds-modal .ramos02-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.52rem 1.28rem;
  border-radius: 12px;
  border: none;
  font-family: "Chicle", cursive;
  font-size: clamp(1.32rem, 4.15vmin, 1.68rem);
  font-weight: 400;
  cursor: pointer;
  touch-action: manipulation;
  color: #2a1810;
  background: linear-gradient(180deg, #ffeaa8 0%, #e8c547 45%, #c9a227 100%);
  box-shadow:
    0 2px 0 rgba(120, 90, 20, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

body.pagina-mbirds #mbirds-modal .ramos02-boton:active {
  filter: brightness(0.94);
  transform: scale(0.98);
}

body.pagina-mbirds .mbirds-barra a.btn-img img {
  height: clamp(2.4rem, 9vmin, 4.25rem);
  max-width: min(28vw, 10rem);
  width: auto;
}

body.pagina-mbirds .mbirds-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.pagina-mbirds .mbirds-flores {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: end;
  padding: 0 clamp(0.5rem, 2vw, 1.25rem);
  pointer-events: none;
  box-sizing: border-box;
  overflow: visible;
  height: clamp(calc((5.2rem + 30px) * 1.05), calc((22vmin + 30px) * 1.05), calc((9.2rem + 30px) * 1.05));
}

body.pagina-mbirds .mbirds-flores-fila {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  width: max-content;
  max-width: 98vw;
  gap: clamp(0.4rem, calc(2.6rem - var(--n, 6) * 0.16rem), 2.4rem);
  transform: none;
}

body.pagina-mbirds .mbirds-flor {
  display: block;
  position: relative;
  width: auto;
  height: clamp(calc((5.2rem + 30px) * 1.05), calc((22vmin + 30px) * 1.05), calc((9.2rem + 30px) * 1.05));
  max-width: min(calc((16vw + 30px) * 1.05), calc((6.4rem + 30px) * 1.05));
  margin-left: 0;
  object-fit: contain;
  object-position: bottom center;
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transform: none;
  transform-origin: bottom center;
}

body.pagina-mbirds .mbirds-flores-fila .mbirds-flor:first-child {
  margin-left: 0;
}

body.pagina-mbirds .mbirds-flor--sube {
  animation: mbirds-flor-subida 1.05s cubic-bezier(0.22, 0.72, 0.28, 1) forwards;
}

@keyframes mbirds-flor-subida {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  }
  18% {
    opacity: 1;
    transform: translateY(-0.6rem) scale(1.08);
    filter: brightness(1.15) drop-shadow(0 0 10px rgba(255, 220, 120, 0.85));
  }
  55% {
    opacity: 0.9;
    transform: translateY(-5.5vh) scale(1.02);
    filter: brightness(1.2) drop-shadow(0 0 14px rgba(255, 210, 90, 0.7));
  }
  100% {
    opacity: 0;
    transform: translateY(-14vh) scale(0.9);
    filter: brightness(1.25) blur(1.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pagina-mbirds .mbirds-flor--sube {
    animation: mbirds-flor-subida-red 0.28s ease-out forwards;
  }
  @keyframes mbirds-flor-subida-red {
    to {
      opacity: 0;
      transform: translateY(-2rem) scale(0.92);
    }
  }
  body.pagina-mbirds .mbirds-semillas-valor--pulse {
    animation: none;
  }
}

body.pagina-mbirds #mbirds-cvs {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  background: transparent;
}

/* =============================================================================
   MÓVIL vertical (pantalla estrecha) — tablet sin cambios
   ============================================================================= */
@media (orientation: portrait) and (max-width: 768px) {
  body.pagina-mbirds .mbirds-barra {
    padding:
      max(0.35rem, env(safe-area-inset-top, 0px))
      max(0.45rem, env(safe-area-inset-right, 0px))
      0.2rem
      max(0.45rem, env(safe-area-inset-left, 0px));
  }

  body.pagina-mbirds .mbirds-titulo {
    font-size: clamp(1.15rem, 4.8vw, 1.75rem);
    max-width: 14rem;
  }

  body.pagina-mbirds .mbirds-barra a.btn-img img {
    height: clamp(2.15rem, 9.5vw, 3.35rem);
    max-width: min(42vw, 9.5rem);
  }

  /* Cabecera partida (02): grid 3 filas en CSS base; ajustes móvil */
  body.pagina-ramos-02 .ramos01-barra-der {
    width: max-content;
    min-width: min-content;
    max-width: none;
    justify-self: end;
    padding: 0.28rem 0.4rem 0.32rem 0.45rem;
    overflow: visible;
  }

  body.pagina-ramos-02 .ramos01-barra-izq .ramos01-titulo {
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    max-width: 100%;
    font-size: clamp(1.65rem, 6.5vw, 2.35rem);
  }

  body.pagina-ramos-01 .ramos01-barra-der {
    width: max-content;
    min-width: min-content;
    max-width: none;
    justify-self: end;
    padding: 0.28rem 0.4rem 0.32rem 0.45rem;
    overflow: visible;
  }

  body.pagina-ramos-01 .ramos01-barra-izq .ramos01-titulo {
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    max-width: 100%;
    font-size: clamp(1.65rem, 6.5vw, 2.35rem);
  }

  body.pagina-ramos-01 .ramos01-semillas-score-fila,
  body.pagina-ramos-02 .ramos01-semillas-score-fila {
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
  }

  body.pagina-ramos-01 .titulo-wrap--semillas,
  body.pagina-ramos-02 .titulo-wrap--semillas {
    padding: 0.04rem 0.1rem 0.08rem;
    flex-shrink: 0;
    max-width: none;
  }

  body.pagina-ramos-01 .titulo-wrap--semillas .chispa,
  body.pagina-ramos-02 .titulo-wrap--semillas .chispa {
    display: none;
  }

  body.pagina-ramos-01 .titulo-wrap--semillas .titulo-dorado,
  body.pagina-mramos.pagina-000 .titulo-wrap--semillas .titulo-dorado {
    font-size: clamp(0.88rem, 3.4vw, 1.12rem);
    letter-spacing: 0;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }

  body.pagina-ramos-02 .titulo-wrap--semillas .titulo-dorado {
    font-size: clamp(0.88rem, 3.4vw, 1.12rem);
    letter-spacing: 0;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }

  body.pagina-ramos-01 .ramos01-semillas-sep,
  body.pagina-mramos.pagina-000 .ramos01-semillas-sep {
    font-size: clamp(0.88rem, 3.4vw, 1.12rem);
  }

  body.pagina-ramos-02 .ramos01-semillas-sep {
    font-size: clamp(0.88rem, 3.4vw, 1.12rem);
  }

  body.pagina-ramos-01 .ramos01-puntos-valor,
  body.pagina-mramos.pagina-000 .ramos01-puntos-valor {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  body.pagina-ramos-02 .ramos01-puntos-valor {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  body.pagina-mramos.pagina-000 .ramos01-semillas-score-fila {
    max-width: none;
    width: max-content;
    flex-shrink: 0;
  }

  body.pagina-mramos.pagina-000 .titulo-wrap--semillas {
    padding: 0.04rem 0.1rem 0.08rem;
    max-width: none;
  }

  body.pagina-mramos.pagina-000 .titulo-wrap--semillas .chispa {
    display: none;
  }

  body.pagina-ramos-02 .ramos01-barra-sup .ramos01-subtitulo,
  body.pagina-ramos-02 .ramos02-subtitulo {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    grid-column: 1 / -1;
    grid-row: 3;
    order: unset;
    flex: none;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0 0.35rem 0.12rem;
    font-size: clamp(1.25rem, 4.5vw, 1.9rem);
    line-height: 1.3;
    pointer-events: none;
    white-space: normal;
  }

  body.pagina-ramos-01 .ramos01-barra-sup .ramos01-subtitulo {
    grid-row: 3;
    font-size: clamp(1.25rem, 4.5vw, 1.9rem);
    line-height: 1.3;
    padding: 0 0.35rem 0.12rem;
  }

  body.pagina-ramos-01 .ramos01-barra-sup a.btn-img img,
  body.pagina-ramos-01 .ramos01-barra-sup button.btn-img img,
  body.pagina-ramos-02 .ramos01-barra-sup a.btn-img img,
  body.pagina-ramos-02 .ramos01-barra-sup button.btn-img img {
    height: clamp(2.35rem, 10vw, 3.35rem);
    max-width: min(36vw, 8.5rem);
  }

  body.pagina-ramos-02 .ramos01-titulo {
    font-size: clamp(1.65rem, 6.5vw, 2.35rem);
  }

  body.pagina-ramos-01 .ramos01-main {
    padding-top: max(11.5rem, calc(10.25rem + env(safe-area-inset-top, 0px)));
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
  }

  /* Mapas 1–60: rejilla ancha, botones grandes, flechas abajo */
  body.pagina-ramos-01 .ramos01-niveles-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    column-gap: clamp(1.25rem, 8vw, 2.5rem);
    row-gap: clamp(0.55rem, 2.5dvh, 0.85rem);
    width: 100%;
    max-width: min(98vw, 30rem);
    margin: 0 auto;
  }

  body.pagina-ramos-01 .ramos01-niveles-fila .ramos01-niveles {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  body.pagina-ramos-01 .ramos01-map-spacer {
    display: none !important;
  }

  body.pagina-ramos-01 .ramos01-map-nav[hidden] {
    display: none !important;
  }

  body.pagina-ramos-01 .ramos01-map-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }

  body.pagina-ramos-01 .ramos01-map-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
  }

  /* Mapa 1–20 (solo →) o 41–60 (solo ←): flecha centrada abajo */
  body.pagina-ramos-01 .ramos01-niveles-fila:not(:has(.ramos01-map-prev)) .ramos01-map-next,
  body.pagina-ramos-01 .ramos01-niveles-fila:not(:has(.ramos01-map-next)) .ramos01-map-prev {
    grid-column: 1 / -1;
  }

  body.pagina-ramos-01 .ramos01-niveles-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.42rem, 2vw, 0.7rem);
  }

  body.pagina-ramos-01 .ramos01-nivel {
    aspect-ratio: 1.05 / 1;
    min-height: clamp(3.6rem, 16.5vw, 5.25rem);
    border-radius: 12px;
  }

  body.pagina-ramos-01 .ramos01-map-nav img {
    height: clamp(2.85rem, 12.5vw, 4.15rem);
    width: clamp(2.85rem, 12.5vw, 4.15rem);
  }

  body.pagina-ramos-01 .ramos01-nivel-num {
    font-size: clamp(1.55rem, 7vw, 2.35rem);
    -webkit-text-stroke: 0.1rem #ff1478;
  }

  body.pagina-mcuida-map .ramos01-nivel-num {
    font-size: clamp(1.5rem, 6.8vw, 2.25rem);
  }

  /* Cuida 1 / 2 / 3 — barra y escenario */
  body.pagina-ramos-02 {
    --ramos02-mesa-gap: clamp(0.32rem, 1.15vw, 0.58rem);
    --ramos02-celda: min(
      calc((100vw - 1.75rem - 3 * var(--ramos02-mesa-gap)) / 4),
      calc((100dvh - 18rem - 4 * var(--ramos02-mesa-gap)) / 5),
      min(84px, 20.5vw)
    );
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
  }

  body.pagina-ramos-02 .ramos02-layout {
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }

  body.pagina-ramos-02 .ramos02-main {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: flex-start;
    padding-top: max(11.5rem, calc(10.25rem + env(safe-area-inset-top, 0px)));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
    gap: 0.4rem;
    overflow-x: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.pagina-ramos-02 .ramos02-aviso-flores {
    top: max(10.5rem, calc(9.5rem + env(safe-area-inset-top, 0px)));
  }

  body.pagina-ramos-02 .ramos02-mesa {
    --ramos02-mesa-gap: clamp(0.32rem, 1.15vw, 0.58rem);
    display: grid;
    grid-template-columns: repeat(4, var(--ramos02-celda)) !important;
    grid-template-rows: repeat(5, var(--ramos02-celda)) !important;
    gap: var(--ramos02-mesa-gap);
    width: min(100%, calc(var(--ramos02-celda) * 4 + 3 * var(--ramos02-mesa-gap)));
    max-width: 100%;
    margin: 0 auto;
    padding: 0.3rem 0.15rem;
    flex-shrink: 0;
    overflow: visible;
    justify-content: center;
    box-sizing: border-box;
  }

  body.pagina-ramos-02 .ramos02-carta--sel {
    transform: scale(1.04);
    outline-offset: 2px;
    animation: ramos02-seleccion-resplandor 1.35s ease-in-out infinite;
  }

  @keyframes ramos02-seleccion-elevacion {
    0% {
      transform: scale(0.96) translateY(3px);
      filter: brightness(1) saturate(1);
    }
    70% {
      transform: scale(1.05) translateY(-2px);
    }
    100% {
      transform: scale(1.04) translateY(-1px);
      filter: brightness(1.06) saturate(1.1);
    }
  }

  body.pagina-ramos-02 .ramos03-tablero {
    min-height: 0;
    max-height: none;
    width: 100%;
    max-width: min(100%, calc(var(--ramos02-celda) * 4 + 2.5rem));
    gap: clamp(0.45rem, 2vw, 0.8rem);
  }

  body.pagina-ramos-02 .ramos03-meta-fila--multi .ramos03-meta-cuota {
    font-size: clamp(1.45rem, 6.5vw, 2.35rem);
  }

  body.pagina-ramos-02 .ramos02-aviso-linea {
    font-size: clamp(1.05rem, 4.5vw, 1.55rem);
  }

  body.pagina-ramos-02 .ramos02-aviso-sub {
    font-size: clamp(0.85rem, 3.5vw, 1.15rem);
  }

  body.pagina-mramos.pagina-000 .mramos-barra-sup {
    row-gap: clamp(0.28rem, 1.2dvh, 0.48rem);
    padding-bottom: clamp(0.2rem, 0.9dvh, 0.38rem);
  }

  body.pagina-mramos.pagina-000 .mramos-barra-sup > .btn-img {
    grid-column: 1;
    grid-row: 1;
  }

  body.pagina-mramos.pagina-000 .mramos-barra-sup .ramos01-semillas-score-fila {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding: 0.28rem 0.4rem 0.32rem 0.45rem;
  }

  body.pagina-mramos.pagina-000 .mramos-barra-sup #meta-000,
  body.pagina-mramos.pagina-000 .mramos-barra-sup > .cuida-meta-nivel {
    font-size: clamp(1.65rem, 6.5vw, 2.35rem);
    padding-bottom: clamp(0.08rem, 0.5dvh, 0.2rem);
  }

  body.pagina-mramos.pagina-000 .mramos-barra-sup #instr-000 .cuida-instr-txt {
    font-size: clamp(1.25rem, 4.5vw, 1.9rem);
    line-height: 1.3;
    margin-top: clamp(0.06rem, 0.4dvh, 0.16rem);
    padding-bottom: clamp(0.16rem, 0.85dvh, 0.36rem);
  }

  body.pagina-mramos.pagina-000 .mramos-barra-sup a.btn-img img {
    height: clamp(2.2rem, 9.5vw, 3.2rem);
    max-width: min(34vw, 8rem);
  }

  body.pagina-mramos.pagina-000 .mramos-layout {
    padding-top: max(9.35rem, calc(8.35rem + env(safe-area-inset-top, 0px)));
  }

  body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > .cuida-meta-hint,
  body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > #cuida-hint-000 {
    font-size: clamp(1rem, 4vw, 1.35rem);
    margin: clamp(0.35rem, 1.5dvh, 0.75rem) auto clamp(0.85rem, 3.5dvh, 1.5rem);
  }

  body.pagina-000 .cinta-wrap-000 {
    width: 100%;
    max-width: min(100%, 26rem);
    gap: clamp(0.65rem, 3dvh, 1.25rem);
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  body.pagina-000 .cinta-000 {
    --cinta-alto-items: clamp(3.75rem, 10.5dvh, 5.75rem);
  }

  body.pagina-000 .cinta-banda-fila-000 {
    min-height: clamp(7.5rem, 20dvh, 11rem);
  }

  body.pagina-000 .cinta-box-000 {
    height: clamp(7.5rem, 20dvh, 11rem);
    min-width: clamp(2.5rem, 8.5vw, 4.25rem);
  }

  body.pagina-000 .maquinas-000 {
    gap: clamp(0.45rem, 3vw, 0.85rem);
    justify-content: center;
  }

  body.pagina-000 .maquinas-000--4,
  body.pagina-000 .maquinas-000--5 {
    flex-direction: column;
    align-items: center;
    gap: clamp(0.3rem, 2vw, 0.55rem);
    max-width: min(96vw, 52rem);
  }

  body.pagina-000 .maquinas-000--4 .maquinas-000-fila,
  body.pagina-000 .maquinas-000--5 .maquinas-000-fila {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
  }

  body.pagina-000 .maquinas-000--4 .maquinas-000-fila--base,
  body.pagina-000 .maquinas-000--5 .maquinas-000-fila--base {
    gap: clamp(0.45rem, 3.5vw, 0.9rem);
    max-width: min(100%, 24rem);
  }

  body.pagina-000 .maquinas-000--4 .maquinas-000-fila--extra,
  body.pagina-000 .maquinas-000--5 .maquinas-000-fila--extra {
    justify-content: center;
  }

  body.pagina-000 .maquinas-000--5 .maquinas-000-fila--extra {
    gap: clamp(0.55rem, 6vw, 1.1rem);
    max-width: min(100%, 16.5rem);
  }

  body.pagina-000 .maquinas-000--4 .maquinas-000-fila--extra .btn-maquina-000,
  body.pagina-000 .maquinas-000--5 .maquinas-000-fila--extra .btn-maquina-000 {
    flex: 0 1 auto;
    max-width: clamp(5rem, 24vw, 6.75rem);
  }

  body.pagina-000 .maquinas-000--4 .maquinas-000-fila--base .btn-maquina-000,
  body.pagina-000 .maquinas-000--5 .maquinas-000-fila--base .btn-maquina-000 {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  body.pagina-000 .btn-maquina-000 img {
    width: clamp(3.25rem, 14vw, 4.75rem) !important;
    height: auto !important;
  }

  body.pagina-000 .maquinas-000--4 .maquinas-000-fila--base .btn-maquina-000 img,
  body.pagina-000 .maquinas-000--5 .maquinas-000-fila--base .btn-maquina-000 img {
    width: clamp(4rem, 17.5vw, 5.5rem) !important;
  }

  body.pagina-000 .maquinas-000--4 .maquinas-000-fila--extra .btn-maquina-000 img,
  body.pagina-000 .maquinas-000--5 .maquinas-000-fila--extra .btn-maquina-000 img {
    width: clamp(4.15rem, 18vw, 5.65rem) !important;
  }

  body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > .cuida-meta-nivel,
  body.pagina-mramos.pagina-000 .mramos-contenido.pagina-000-main > #meta-000 {
    font-size: clamp(0.95rem, 3.8vw, 1.25rem);
    margin-bottom: 0.15rem;
  }

  /* Portada (index): título más grande y más arriba */
  body.portada-inicio {
    align-items: flex-start;
    justify-content: flex-start;
    padding: max(1.85rem, calc(1.35rem + env(safe-area-inset-top, 0px))) 1rem
      max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  body.portada-inicio .portada-contenido {
    width: 100%;
    gap: clamp(1.65rem, 6.5dvh, 2.35rem);
    margin-top: clamp(0.25rem, 3.5dvh, 1.25rem);
  }

  body.portada-inicio .portada-contenido .titulo-dorado {
    font-size: clamp(3.2rem, 15vw, 4.85rem);
    max-width: 98vw;
    line-height: 1.05;
  }

  body.pagina-menu .menu-layout {
    padding-top: max(1.35rem, calc(0.85rem + env(safe-area-inset-top, 0px)));
    gap: clamp(1rem, 3.5dvh, 1.45rem);
  }

  body.pagina-menu header .titulo-wrap {
    padding: 0.35rem 0.5rem 0.45rem;
  }

  /* Móvil vertical: título en 2 líneas */
  body.pagina-menu header .titulo-dorado--menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: normal;
    max-width: 100%;
    line-height: 1.06;
  }

  body.pagina-menu header .titulo-dorado--menu .titulo-menu-l1,
  body.pagina-menu header .titulo-dorado--menu .titulo-menu-l2 {
    display: block;
    white-space: nowrap;
  }

  body.pagina-menu header .titulo-dorado--menu .titulo-menu-l1::after {
    content: none;
  }

  body.pagina-menu header .titulo-dorado {
    font-size: clamp(2.85rem, 13vw, 3.75rem);
  }

  /* Menú móvil: 4 botones en columna (~50 % del tamaño anterior) */
  body.pagina-menu nav.nav-botones-img.menu-nav-cuatro {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: min(46vw, 11rem);
    gap: clamp(0.28rem, 1.1dvh, 0.48rem);
  }

  body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img {
    flex: 0 0 auto;
    width: 100%;
    max-width: min(46vw, 11rem);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img--info {
    flex: 0 0 auto;
  }

  body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img img {
    width: 100%;
    height: auto;
    min-height: clamp(2.25rem, 6.75vw, 2.925rem);
    max-width: min(46vw, 11rem);
    object-fit: contain;
    object-position: center center;
  }

  body.pagina-menu nav.nav-botones-img.menu-nav-cuatro a.btn-img--info img {
    height: auto;
    min-height: clamp(2.25rem, 6.75vw, 2.925rem);
  }

  /* Menú y juegos (juegos.html) */
  body.pagina-menu .menu-nav-cuatro {
    max-width: min(46vw, 11rem);
  }

  /* Flores: un poco más anchas en móvil vertical */
  .decor-flores-izq .decor-flores-maceta,
  .decor-flores-der .decor-flores-maceta {
    width: min(36vw, 11.5rem);
    max-width: min(40vw, 12rem);
  }

  body.pagina-juegos .juegos-fila-numeros {
    gap: clamp(0.35rem, 2vw, 0.65rem);
    justify-content: center;
    align-items: center;
    max-width: min(100%, 24rem);
  }

  body.pagina-juegos .juegos-num-slot {
    flex: 0 0 auto;
    max-width: clamp(3.5rem, 16vw, 5.25rem);
  }

  body.pagina-juegos .juegos-num-slot img {
    width: clamp(3.5rem, 16vw, 5.25rem);
    height: auto;
  }

  body.pagina-juegos .juegos-num-overlay {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
  }

  body.pagina-mramos .mramos-nav-juegos,
  body.pagina-mcuida .mramos-nav-juegos {
    flex-wrap: wrap;
    gap: clamp(0.65rem, 3.5vw, 1.1rem);
    max-width: min(100%, 22rem);
  }

  body.pagina-mramos .mramos-nav-juegos a.btn-img img,
  body.pagina-mcuida .mramos-nav-juegos a.btn-img img {
    height: clamp(2.85rem, 13.5vw, 4.5rem);
    max-width: min(42vw, 10.5rem);
  }

  body.pagina-mramos .mramos-num-overlay,
  body.pagina-mcuida .mramos-num-overlay {
    font-size: clamp(2.1rem, 9vw, 3.15rem);
  }

  body.pagina-mramos .mramos-num-overlay {
    left: 67%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  body.pagina-mcuida .mramos-num-overlay {
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
  }

  /* Ramos / Cuida: subtítulo en 2 líneas */
  body.pagina-juegos .juegos-ramos-contenido {
    width: 100%;
    max-width: 100%;
    padding: 0 0.65rem;
    box-sizing: border-box;
  }

  body.pagina-juegos .juegos-ramos-linea {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.25rem;
    box-sizing: border-box;
  }

  body.pagina-juegos .juegos-ramos-linea .juegos-ramos-sep {
    display: none;
  }

  body.pagina-juegos .juegos-ramos-linea .juegos-ramos-sub,
  body.pagina-juegos .juegos-ramos-linea .juegos-ramos-hint {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.32;
  }

  body.pagina-juegos main.juegos-contenido p.juegos-elegir-texto,
  body.pagina-juegos .juegos-ramos-linea .juegos-ramos-sub,
  body.pagina-mramos .mramos-instr-bajo-juego1,
  body.pagina-mcuida .mramos-instr-bajo-juego1,
  body.pagina-juegos #juegos-bloque-pronto .juegos-pronto-texto {
    font-size: clamp(1.25rem, 4.5vw, 1.9rem);
  }

  body.pagina-juegos .juegos-ramos-linea .juegos-ramos-hint,
  body.pagina-mramos .mramos-instr-bajo-juego1-hint,
  body.pagina-mcuida .mramos-instr-bajo-juego1-hint {
    font-size: clamp(1.45rem, 5.2vw, 2.2rem);
  }
}
