:root {
  --midnight: #071d72;
  --royal: #1039b7;
  --sky: #4f78ff;
  --lavender: #c9bcff;
  --cloud: #fff7ff;
  --cloud-shadow: #d9ceff;
  --gold: #ffd86d;
  --sunset: #ffb77f;
  --coral: #ff7f9a;
  --mint: #88efd1;
  --ink: #142055;
  --muted: #455187;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(9, 22, 78, 0.22);
}

@font-face {
  font-family: "Baloo 2";
  src: url("recursos/fuentes/baloo-2/Baloo2-VariableFont_wght.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500 800;
}

@font-face {
  font-family: "Nunito";
  src: url("recursos/fuentes/nunito/Nunito-VariableFont_wght.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7f2ff 0%, #eef5ff 52%, #eef9ff 100%);
}

body.nav-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-8rem);
  border-radius: 999px;
  background: var(--white);
  color: var(--royal);
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  left: 50%;
  top: 1rem;
  z-index: 10;
  display: flex;
  width: min(74rem, calc(100% - 2rem));
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 247, 255, 0.84);
  box-shadow: 0 16px 45px rgba(7, 29, 114, 0.24);
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  backdrop-filter: blur(18px);
}

.brand-cloud,
.cloud-link,
.cloud-button {
  position: relative;
  isolation: isolate;
}

.brand-cloud {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  color: var(--royal);
  text-decoration: none;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 3px solid rgba(255, 216, 109, 0.86);
  border-radius: 50%;
  background: linear-gradient(145deg, #1d55ff, #071d72);
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(255, 216, 109, 0.18);
}

.cloud-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cloud-link {
  min-width: 7.2rem;
  border-radius: 999px;
  color: var(--royal);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.85rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: block;
}

.nav-dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.65rem);
  z-index: 3;
  display: grid;
  width: min(16rem, 78vw);
  gap: 0.45rem;
  transform: translate(-50%, -0.35rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 247, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  padding: 0.7rem;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-link {
  display: block;
  border-radius: 999px;
  color: var(--royal);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0.75rem 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #fff4b0, #ffffff);
  color: #082682;
}

.cloud-link::before,
.cloud-button::before {
  position: absolute;
  inset: 0.25rem 0.05rem 0.1rem;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 23% 18%, var(--white) 0 24%, transparent 25%),
    radial-gradient(circle at 50% 4%, var(--white) 0 28%, transparent 29%),
    radial-gradient(circle at 78% 18%, var(--white) 0 23%, transparent 24%),
    linear-gradient(180deg, var(--cloud), #f1eaff);
  box-shadow: 0 0.45rem 0 var(--cloud-shadow), 0 0.85rem 1.45rem rgba(10, 28, 104, 0.16);
  content: "";
  transition: transform 180ms ease, background 180ms ease;
}

.cloud-link:hover,
.cloud-link:focus-visible,
.cloud-button:hover,
.cloud-button:focus-visible {
  transform: translateY(-2px);
}

.cloud-link[aria-current="page"],
.cloud-link:hover,
.cloud-link:focus-visible {
  color: #0a2aa1;
}

.cloud-link[aria-current="page"]::before {
  background:
    radial-gradient(circle at 23% 18%, #fffdf2 0 24%, transparent 25%),
    radial-gradient(circle at 50% 4%, #fffdf2 0 28%, transparent 29%),
    radial-gradient(circle at 78% 18%, #fffdf2 0 23%, transparent 24%),
    linear-gradient(180deg, #fff6c7, #ffe3a1);
  box-shadow: 0 0.45rem 0 #eabf5d, 0 0.85rem 1.45rem rgba(10, 28, 104, 0.16);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff8d4, var(--gold));
  box-shadow: 0 8px 18px rgba(7, 29, 114, 0.24);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 0.18rem;
  margin: 0.22rem auto;
  border-radius: 999px;
  background: var(--royal);
}

.hero,
.subpage-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  background:
    linear-gradient(90deg, rgba(7, 29, 114, 0.42) 0%, rgba(7, 29, 114, 0.08) 42%, rgba(7, 29, 114, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 29, 114, 0.08) 0%, rgba(7, 29, 114, 0.16) 62%, rgba(7, 29, 114, 0.42) 100%),
    url("recursos/nubes-magicas.png") center / cover no-repeat;
}

.hero {
  min-height: 88svh;
  align-items: center;
  padding: 8.8rem max(1.25rem, calc((100% - 74rem) / 2)) 5rem;
}

.subpage-hero {
  min-height: 34rem;
  align-items: end;
  padding: 9rem max(1.25rem, calc((100% - 74rem) / 2)) 5rem;
}

.subpage-hero.dino-fruit-hero {
  background:
    linear-gradient(90deg, rgba(7, 29, 114, 0.48) 0%, rgba(7, 29, 114, 0.1) 48%, rgba(7, 29, 114, 0.64) 100%),
    linear-gradient(180deg, rgba(7, 29, 114, 0.04) 0%, rgba(7, 29, 114, 0.24) 68%, rgba(7, 29, 114, 0.62) 100%),
    url("recursos/juegos/dinosaurio-frutas/fondo-de-pagina.png") center / cover no-repeat;
}

.hero::after,
.subpage-hero::after {
  position: absolute;
  right: 0;
  bottom: -0.15rem;
  left: 0;
  height: 8rem;
  background: linear-gradient(180deg, rgba(247, 242, 255, 0), #f7f2ff 82%);
  content: "";
  pointer-events: none;
}

.sky-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.twinkle,
.floating-note {
  position: absolute;
  display: inline-grid;
  place-items: center;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(255, 216, 109, 0.88));
  text-shadow: 0 0 18px rgba(255, 216, 109, 0.7);
}

.twinkle {
  font-size: 1.4rem;
  animation: twinkle 3.6s ease-in-out infinite;
}

.floating-note {
  color: #3380ff;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  animation: floatNote 6.5s ease-in-out infinite;
  text-shadow: 0 0 18px rgba(255, 216, 109, 0.95);
}

.star-a {
  left: 28%;
  top: 12%;
}

.star-b {
  right: 21%;
  top: 18%;
  animation-delay: 900ms;
}

.star-c {
  right: 11%;
  bottom: 28%;
  animation-delay: 1.6s;
}

.note-a {
  left: 39%;
  top: 18%;
}

.note-b {
  right: 24%;
  bottom: 29%;
  animation-delay: 1s;
}

.note-c {
  left: 13%;
  bottom: 22%;
  animation-delay: 1.8s;
}

.hero-content,
.subpage-hero-content {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  color: var(--white);
  text-shadow: 0 3px 18px rgba(2, 12, 58, 0.72);
}

.hero-content {
  margin-left: auto;
}

.subpage-hero-content {
  width: min(42rem, 100%);
}

.eyebrow,
.section-kicker,
.feature-label {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.subpage-hero h1 {
  margin: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero h1 {
  font-size: 5.6rem;
}

.subpage-hero h1 {
  font-size: 4.25rem;
}

.hero-copy,
.subpage-hero p:not(.eyebrow) {
  width: min(36rem, 100%);
  margin: 1.25rem 0 0;
  color: #fff8e9;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.cloud-button {
  display: inline-grid;
  min-height: 4.35rem;
  min-width: 12.5rem;
  place-items: center;
  border: 0;
  color: var(--royal);
  font-weight: 900;
  line-height: 1.1;
  padding: 1rem 1.3rem;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
}

.cloud-button-primary {
  color: #082682;
}

.cloud-button-primary::before {
  background:
    radial-gradient(circle at 23% 18%, #fff9d7 0 24%, transparent 25%),
    radial-gradient(circle at 50% 4%, #fff9d7 0 28%, transparent 29%),
    radial-gradient(circle at 78% 18%, #fff9d7 0 23%, transparent 24%),
    linear-gradient(180deg, #fff4b0, #ffd56a);
  box-shadow: 0 0.45rem 0 #e7ad40, 0 0.85rem 1.45rem rgba(10, 28, 104, 0.26);
}

.music-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff9dd;
  font-weight: 900;
  padding: 0.72rem 1rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.music-cta span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--royal);
  text-shadow: none;
}

.section-panel {
  padding: 5.5rem 1.25rem;
  scroll-margin-top: 6.5rem;
}

.section-inner {
  width: min(74rem, 100%);
  margin: 0 auto;
}

.two-column,
.feature-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(18rem, 1fr);
  align-items: start;
  gap: 2.6rem;
}

.feature-detail {
  align-items: center;
}

.feature-detail-flip > div:first-child {
  order: 2;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-kicker {
  color: var(--royal);
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

h3 {
  margin: 0;
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.section-panel p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
}

.copy-stack {
  display: grid;
  gap: 1rem;
}

.article-card {
  display: grid;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 4vw, 3rem);
}

.article-heading {
  max-width: 48rem;
}

.article-body {
  display: grid;
  max-width: 58rem;
  gap: 1.15rem;
}

.article-body p {
  color: var(--muted);
}

.about-band {
  background: linear-gradient(180deg, #f7f2ff 0%, #eef5ff 100%);
}

.activity-band {
  background: linear-gradient(180deg, #eef5ff 0%, #eef9ff 100%);
}

.family-band {
  background: linear-gradient(180deg, #eef5ff 0%, #fff8fb 100%);
}

.educators-band {
  background: linear-gradient(180deg, #fff8fb 0%, #e9f8ff 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.support-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  padding: 1.6rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card::after {
  position: absolute;
  right: 1.4rem;
  bottom: 0.2rem;
  color: rgba(16, 57, 183, 0.1);
  content: "♪";
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
}

.feature-card:hover,
.feature-card:focus-visible,
.support-link:hover,
.support-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(9, 22, 78, 0.26);
}

.feature-coloring {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 242, 220, 0.94));
}

.feature-games {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(230, 248, 255, 0.94));
}

.feature-icon,
.support-card > span {
  display: grid;
  width: 3.35rem;
  height: 3.35rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff5c7, #ffd86d);
  color: var(--royal);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.feature-icon svg {
  display: block;
  width: 2.45rem;
  height: 2.45rem;
}

.feature-card h3,
.support-card h3 {
  margin-bottom: 0.7rem;
}

.feature-card p,
.support-card p {
  position: relative;
  z-index: 1;
}

.feature-label {
  color: var(--royal);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.support-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-card {
  min-height: 17rem;
  padding: 1.5rem;
}

.support-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.detail-list span,
.detail-list a {
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 35px rgba(7, 29, 114, 0.12);
  color: var(--royal);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  padding: 0.85rem;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.detail-list a:hover,
.detail-list a:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.coloring-tabs {
  align-content: start;
}

.coloring-tab {
  min-height: 4.5rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 35px rgba(7, 29, 114, 0.12);
  color: var(--royal);
  cursor: pointer;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  padding: 0.85rem;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.coloring-tab:hover,
.coloring-tab:focus-visible,
.coloring-tab.is-selected {
  background: linear-gradient(145deg, rgba(255, 248, 210, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.75rem;
}

.gallery-toolbar h2 {
  margin: 0;
}

.toolbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: flex-end;
}

.gallery-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.game-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-panels {
  min-height: 0;
}

.coloring-panel {
  animation: panelIn 220ms ease;
}

.coloring-card {
  position: relative;
  display: grid;
  gap: 1.15rem;
  width: min(100%, 18rem);
  min-height: 0;
  justify-self: center;
  padding: 1.6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 18rem));
  justify-content: center;
  gap: 1.5rem;
}

.empty-gallery {
  display: grid;
  min-height: 8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 35px rgba(7, 29, 114, 0.12);
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
}

.game-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 21rem));
}

.game-card {
  min-height: 19rem;
}

.game-card[href] {
  text-decoration: none;
}

.game-status {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  border-radius: 999px;
  background: linear-gradient(145deg, #fff4b0, #ffd56a);
  color: #082682;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.45rem 0.7rem;
}

.game-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.game-tags span {
  border-radius: 999px;
  background: rgba(16, 57, 183, 0.08);
  color: var(--royal);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.35rem 0.55rem;
}

.coloring-thumbnail {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 210 / 297;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(16, 57, 183, 0.12);
  border-radius: 8px;
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  font-weight: 800;
  text-align: center;
}

.coloring-thumbnail:focus-within {
  outline: 3px solid rgba(255, 216, 109, 0.8);
  outline-offset: 3px;
}

.coloring-thumbnail::before {
  content: none;
}

.coloring-thumbnail img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  object-fit: contain;
  pointer-events: none;
}

.thumbnail-personajes {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 216, 109, 0.2), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 255, 0.94));
}

.thumbnail-musicales {
  background:
    radial-gradient(circle at 72% 22%, rgba(79, 120, 255, 0.16), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 234, 255, 0.94));
}

.thumbnail-valores {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 127, 154, 0.14), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 255, 0.94));
}

.thumbnail-rutinas {
  background:
    radial-gradient(circle at 70% 26%, rgba(136, 239, 209, 0.16), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(243, 251, 255, 0.94));
}

.coloring-info {
  padding: 0;
}

.coloring-info h3 {
  margin-bottom: 0;
}

.coloring-actions {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 0.55rem;
  background: rgba(7, 29, 114, 0.66);
  opacity: 0;
  padding: 0.75rem;
  transition: opacity 180ms ease;
}

.coloring-thumbnail:hover .coloring-actions,
.coloring-thumbnail:focus-within .coloring-actions {
  opacity: 1;
}

.coloring-actions a {
  display: inline-grid;
  width: min(11.25rem, calc(100vw - 5rem));
  min-height: 2.7rem;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--royal);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.08;
  padding: 0.55rem 0.8rem;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
}

.coloring-actions a:first-child {
  background: linear-gradient(145deg, #fff4b0, #ffd56a);
  color: #082682;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb-list a {
  color: var(--royal);
  text-decoration: none;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  text-decoration: underline;
}

.coloring-detail-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.45fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.coloring-detail-preview,
.coloring-detail-copy {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.coloring-detail-preview .coloring-thumbnail {
  width: min(100%, 28rem);
  margin: 0 auto;
}

.coloring-detail-copy {
  display: grid;
  gap: 1rem;
}

.coloring-detail-copy p {
  color: var(--muted);
}

.coloring-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.related-coloring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.related-coloring-card {
  display: grid;
  gap: 0.75rem;
  color: inherit;
  min-height: 0;
  padding: 1rem;
  text-decoration: none;
}

.related-coloring-card .coloring-thumbnail {
  min-height: 0;
}

.related-coloring-card h3 {
  font-size: 1.2rem;
}

.online-coloring {
  display: grid;
  grid-template-columns: minmax(16rem, 0.34fr) minmax(18rem, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.coloring-page-layout {
  display: grid;
  gap: 1.15rem;
}

.gallery-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 35px rgba(7, 29, 114, 0.12);
  padding: 1rem 1.2rem;
}

.gallery-callout p {
  margin: 0;
  color: var(--midnight);
  font-weight: 900;
}

.tool-panel,
.coloring-game {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.tool-panel {
  display: grid;
  gap: 1.4rem;
  padding: 1.35rem;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(2.35rem, 1fr));
  gap: 0.55rem;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 10px 20px rgba(7, 29, 114, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch:hover,
.color-swatch:focus-visible {
  box-shadow: 0 14px 24px rgba(7, 29, 114, 0.22);
  transform: translateY(-2px) scale(1.04);
}

.color-swatch.is-selected {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
}

.brush-options,
.tool-actions {
  display: grid;
  gap: 0.65rem;
}

.brush-option,
.tool-button {
  min-height: 3rem;
  border: 1px solid rgba(16, 57, 183, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--royal);
  cursor: pointer;
  font-weight: 900;
  padding: 0.7rem 0.9rem;
}

.brush-option:disabled,
.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.brush-option:not(:disabled):hover,
.tool-button:not(:disabled):hover,
.brush-option:focus-visible,
.tool-button:focus-visible {
  border-color: rgba(16, 57, 183, 0.28);
  box-shadow: 0 10px 20px rgba(7, 29, 114, 0.12);
  transform: translateY(-1px);
}

.brush-option.is-selected,
.tool-button.is-selected,
.tool-button-primary {
  background: linear-gradient(145deg, #fff4b0, #ffd56a);
  color: #082682;
}

.coloring-game {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.canvas-page {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border: 1px solid rgba(16, 57, 183, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(7, 29, 114, 0.16);
  touch-action: none;
}

.canvas-page canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#page-background-canvas {
  z-index: 1;
}

#coloring-canvas {
  z-index: 3;
  cursor: crosshair;
  mix-blend-mode: multiply;
}

#outline-canvas {
  z-index: 4;
  mix-blend-mode: normal;
  pointer-events: none;
}

#outline-canvas.is-multiply-outline {
  mix-blend-mode: multiply;
}

.current-page-title {
  margin: 0;
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
}

.memory-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}

.memory-toolbar {
  margin-bottom: 0;
}

.memory-game-panel {
  position: relative;
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(0.85rem, 2vw, 1.2rem);
}

.memory-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(7rem, 1fr)) auto;
  gap: 0.85rem;
  align-items: stretch;
}

.memory-status > div,
.memory-message {
  border: 1px solid rgba(16, 57, 183, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(7, 29, 114, 0.1);
  color: var(--royal);
  font-weight: 900;
  padding: 0.7rem 1rem;
}

.memory-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.memory-status span {
  color: var(--muted);
  font-size: 0.95rem;
}

.memory-status strong {
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.memory-message {
  margin: 0;
  text-align: center;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(4.6rem, 1fr));
  width: min(100%, 29rem);
  justify-self: center;
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
}

.memory-card {
  position: relative;
  display: block;
  aspect-ratio: 1086 / 1448;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  perspective: 900px;
}

.memory-card:disabled {
  cursor: default;
}

.memory-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 260ms ease;
}

.memory-card.is-flipped .memory-card-inner,
.memory-card.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: var(--white);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 14px 30px rgba(7, 29, 114, 0.16);
}

.memory-card-front {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.memory-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card:not(:disabled):hover .memory-card-face,
.memory-card:focus-visible .memory-card-face {
  box-shadow: 0 18px 36px rgba(7, 29, 114, 0.24);
}

.memory-card.is-matched .memory-card-face {
  border-color: rgba(255, 216, 109, 0.95);
  box-shadow: 0 14px 32px rgba(255, 184, 76, 0.24);
}

.memory-game-panel.is-complete .memory-board {
  opacity: 0.42;
  pointer-events: none;
}

.memory-complete {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  display: grid;
  width: min(27rem, calc(100% - 2rem));
  gap: 0.75rem;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px rgba(7, 29, 114, 0.24);
  padding: clamp(1.2rem, 4vw, 2rem);
  text-align: center;
  transform: translate(-50%, -50%);
}

.memory-complete[hidden] {
  display: none;
}

.memory-complete h3 {
  margin: 0;
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.memory-complete p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.memory-complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.memory-complete-actions .tool-button {
  display: inline-grid;
  min-width: 9rem;
  place-items: center;
  text-decoration: none;
}

.star-band {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.star-layout {
  display: grid;
  gap: 1rem;
  max-width: 50rem;
}

.star-toolbar {
  margin-bottom: 0;
}

.star-game-panel {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(0.85rem, 2vw, 1.2rem);
}

.star-status {
  display: grid;
  grid-template-columns: minmax(11rem, 1.2fr) minmax(8rem, 0.8fr) auto;
  gap: 0.85rem;
  align-items: stretch;
}

.star-status > div,
.star-message {
  border: 1px solid rgba(16, 57, 183, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(7, 29, 114, 0.1);
  color: var(--royal);
  font-weight: 900;
  padding: 0.7rem 1rem;
}

.star-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.star-status span {
  color: var(--muted);
  font-size: 0.95rem;
}

.star-status strong {
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.star-target strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.star-target strong::before {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--target-color, var(--gold));
  box-shadow: 0 6px 14px rgba(7, 29, 114, 0.16);
  content: "";
}

.star-message {
  margin: 0;
  text-align: center;
}

.star-scene {
  position: relative;
  justify-self: center;
  width: 100%;
  max-height: 25rem;
  overflow: hidden;
  aspect-ratio: 1448 / 1086;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: url("recursos/juegos/busca-estrellas/fondo.png") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(7, 29, 114, 0.18);
}

.star-scene.is-complete .star-item:not(.is-found) {
  opacity: 0.38;
  pointer-events: none;
}

.star-item {
  position: absolute;
  width: clamp(2.55rem, 5.3vw, 4.6rem);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform: translate(-50%, -50%) rotate(var(--star-rotate, 0deg));
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.star-item img {
  display: block;
  width: 100%;
  height: auto;
  animation: starHover 2.8s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(7, 29, 114, 0.22));
  pointer-events: none;
}

.star-item:not(:disabled):hover,
.star-item:focus-visible {
  transform: translate(-50%, -50%) rotate(var(--star-rotate, 0deg)) scale(1.1);
}

.star-item:not(:disabled):hover img,
.star-item:focus-visible img {
  filter:
    drop-shadow(0 8px 14px rgba(7, 29, 114, 0.22))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.88));
}

.star-item.is-found {
  cursor: default;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--star-rotate, 0deg)) scale(1.35);
  pointer-events: none;
}

.star-item.is-wrong {
  animation: starWrong 260ms ease;
}

.star-item:disabled {
  cursor: default;
}

.star-found-burst {
  position: absolute;
  z-index: 3;
  color: var(--burst-color, var(--gold));
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px currentColor;
  transform: translate(-50%, -50%) scale(0.45) rotate(var(--burst-rotate, 0deg));
  animation: starFoundBurst 760ms ease-out forwards;
}

.star-complete {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  display: grid;
  width: min(27rem, calc(100% - 2rem));
  gap: 0.75rem;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 54px rgba(7, 29, 114, 0.24);
  padding: clamp(1.2rem, 4vw, 2rem);
  text-align: center;
  transform: translate(-50%, -50%);
}

.star-complete[hidden] {
  display: none;
}

.star-complete h3 {
  margin: 0;
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.star-complete p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.star-complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.star-complete-actions .tool-button {
  display: inline-grid;
  min-width: 9rem;
  place-items: center;
  text-decoration: none;
}

.dino-fruit-band {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.dino-fruit-layout {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.dino-fruit-toolbar {
  margin-bottom: 0;
}

.dino-fruit-game-panel {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(0.8rem, 2vw, 1.15rem);
}

.dino-fruit-status {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) minmax(6.5rem, 0.5fr) auto auto auto;
  gap: 0.85rem;
  align-items: stretch;
}

.dino-fruit-status > div,
.dino-fruit-message {
  border: 1px solid rgba(16, 57, 183, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(7, 29, 114, 0.1);
  color: var(--royal);
  font-weight: 900;
  padding: 0.7rem 1rem;
}

.dino-fruit-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dino-fruit-status span {
  color: var(--muted);
  font-size: 0.95rem;
}

.dino-fruit-status strong {
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.dino-fruit-target strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dino-fruit-target strong::before {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--target-color, var(--gold));
  box-shadow: 0 6px 14px rgba(7, 29, 114, 0.16);
  content: "";
}

.dino-fruit-message {
  margin: 0;
  text-align: center;
}

.dino-fruit-scene {
  position: relative;
  justify-self: center;
  width: 100%;
  max-height: 22rem;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(7, 29, 114, 0.06)),
    url("recursos/juegos/dinosaurio-frutas/fondo.png") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(7, 29, 114, 0.18);
  outline: none;
  touch-action: none;
}

.dino-fruit-scene:focus-visible {
  outline: 3px solid rgba(255, 216, 109, 0.9);
  outline-offset: 3px;
}

.dino-fruit-scene.is-ended .dino-character {
  filter: saturate(0.82);
}

.dino-fruit-scene.is-busy .dino-fruit-item {
  animation-play-state: paused;
}

.dino-fruit-start,
.dino-fruit-end {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 7;
  display: grid;
  width: min(27rem, calc(100% - 2rem));
  gap: 0.75rem;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 24px 54px rgba(7, 29, 114, 0.24);
  padding: clamp(1.2rem, 4vw, 2rem);
  text-align: center;
  transform: translate(-50%, -50%);
}

.dino-fruit-start[hidden],
.dino-fruit-end[hidden] {
  display: none;
}

.dino-fruit-start h3,
.dino-fruit-end h3 {
  margin: 0;
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.dino-fruit-end p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.dino-fruit-end-actions,
.dino-fruit-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.dino-fruit-end-actions .tool-button {
  display: inline-grid;
  min-width: 9rem;
  place-items: center;
  text-decoration: none;
}

.dino-character {
  position: absolute;
  left: var(--dino-x, 50%);
  bottom: -9%;
  z-index: 3;
  width: clamp(13rem, 30vw, 22rem);
  pointer-events: none;
  transform: translateX(-50%) scaleX(var(--dino-facing, 1));
  transform-origin: center bottom;
  transition: filter 180ms ease;
}

.dino-character img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(7, 29, 114, 0.2));
}

.dino-character.is-munching {
  z-index: 5;
}

.dino-fruit-item {
  position: absolute;
  z-index: 2;
  width: clamp(2.8rem, 5.5vw, 4.8rem);
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--fruit-rotate, 0deg));
  transform-origin: 50% 15%;
}

.dino-fruit-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(7, 29, 114, 0.2));
  pointer-events: none;
}

.dino-fruit-item.is-caught {
  animation: dinoFruitCaught 340ms ease-out forwards;
}

.dino-fruit-controls .tool-button {
  min-width: 5.5rem;
  font-size: 1.35rem;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
}

.online-page-card {
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.online-page-card.is-selected {
  outline: 3px solid rgba(255, 216, 109, 0.85);
  outline-offset: 4px;
}

.online-page-card .pdf-title {
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.coloring-confirm {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.coloring-confirm[hidden] {
  display: none;
}

.coloring-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 114, 0.48);
  backdrop-filter: blur(6px);
}

.coloring-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 216, 109, 0.28), transparent 8rem),
    rgba(255, 247, 255, 0.98);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 4vw, 2rem);
  text-align: center;
}

.coloring-confirm-dialog .feature-icon {
  margin-inline: auto;
}

.coloring-confirm-dialog h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.85rem, 6vw, 2.45rem);
}

.coloring-confirm-dialog p {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-weight: 800;
}

.coloring-confirm-actions {
  display: grid;
  gap: 0.75rem;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  color: var(--royal);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  content: "→";
}

.accordion-list {
  display: grid;
  gap: 0.85rem;
}

.accordion-item {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  min-height: 5.3rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 35px rgba(7, 29, 114, 0.12);
  color: var(--ink);
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.accordion-item span {
  color: var(--midnight);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.accordion-item small {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  transition: max-height 180ms ease, opacity 180ms ease;
}

.accordion-item.is-open {
  background: linear-gradient(145deg, rgba(255, 248, 210, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.accordion-item.is-open small {
  max-height: 4rem;
  opacity: 1;
}

.site-footer {
  background: var(--midnight);
  color: #fff8e9;
  padding: 2rem 1.25rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  font-weight: 800;
}

.footer-inner a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.sparkle {
  position: fixed;
  z-index: 30;
  color: var(--gold);
  font-size: 1rem;
  pointer-events: none;
  text-shadow: 0 0 14px rgba(255, 216, 109, 0.88);
  transform: translate(-50%, -50%);
  animation: sparklePop 780ms ease-out forwards;
}

@keyframes floatNote {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-1.1rem) rotate(7deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes sparklePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -130%) scale(1.4);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starWrong {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--star-rotate, 0deg));
  }

  35% {
    transform: translate(calc(-50% - 0.35rem), -50%) rotate(var(--star-rotate, 0deg));
  }

  70% {
    transform: translate(calc(-50% + 0.35rem), -50%) rotate(var(--star-rotate, 0deg));
  }
}

@keyframes starHover {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-0.22rem) scale(1.025);
  }
}

@keyframes starFoundBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45) rotate(var(--burst-rotate, 0deg));
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--burst-x, 0rem)), calc(-50% + var(--burst-y, -2rem)))
      scale(1.18)
      rotate(calc(var(--burst-rotate, 0deg) + 24deg));
  }
}

@keyframes dinoFruitCaught {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--fruit-rotate, 0deg)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -75%) rotate(calc(var(--fruit-rotate, 0deg) + 18deg)) scale(0.45);
  }
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 1.2rem);
    top: 0.6rem;
  }

  .menu-toggle {
    display: block;
  }

  .cloud-nav {
    position: fixed;
    right: 0.6rem;
    top: 5.5rem;
    display: none;
    width: min(20rem, calc(100vw - 1.2rem));
    border-radius: 24px;
    background: rgba(255, 247, 255, 0.94);
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  .cloud-nav.is-open {
    display: grid;
  }

  .cloud-link {
    min-width: 100%;
  }

  .nav-dropdown {
    display: grid;
    gap: 0.4rem;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    transform: none;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: none;
    opacity: 1;
    padding: 0.35rem;
    pointer-events: auto;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    transform: none;
  }

  .hero {
    min-height: 86svh;
    align-items: end;
  }

  .hero,
  .subpage-hero {
    background:
      linear-gradient(180deg, rgba(7, 29, 114, 0.08) 0%, rgba(7, 29, 114, 0.46) 48%, rgba(7, 29, 114, 0.88) 100%),
      url("recursos/nubes-magicas.png") 35% center / cover no-repeat;
  }

  .subpage-hero.dino-fruit-hero {
    background:
      linear-gradient(180deg, rgba(7, 29, 114, 0.04) 0%, rgba(7, 29, 114, 0.28) 50%, rgba(7, 29, 114, 0.72) 100%),
      url("recursos/juegos/dinosaurio-frutas/fondo-de-pagina.png") 68% center / cover no-repeat;
  }

  .hero-content,
  .subpage-hero-content {
    width: min(36rem, 100%);
    margin-left: 0;
  }

  .hero h1 {
    font-size: 4.25rem;
  }

  .subpage-hero h1 {
    font-size: 3.2rem;
  }

  .hero-copy,
  .subpage-hero p:not(.eyebrow) {
    font-size: 1.14rem;
  }

  .two-column,
  .feature-detail,
  .coloring-detail-layout,
  .feature-grid,
  .online-coloring,
  .gallery-tabs,
  .gallery-grid,
  .support-grid,
  .support-grid-two {
    grid-template-columns: 1fr;
  }

  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .memory-status {
    grid-template-columns: 1fr;
  }

  .star-status {
    grid-template-columns: 1fr;
  }

  .dino-fruit-status {
    grid-template-columns: 1fr;
  }

  .feature-detail-flip > div:first-child {
    order: 0;
  }
}

@media (max-width: 640px) {
  .brand-cloud {
    font-size: 1.15rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
  }

  .subpage-hero {
    min-height: 31rem;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .subpage-hero h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cloud-button {
    width: 100%;
  }

  .section-panel {
    padding: 4rem 1rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  .section-panel p {
    font-size: 1rem;
  }

  .feature-card {
    min-height: 20rem;
    padding: 1.35rem;
  }

  .coloring-card {
    width: min(100%, 16.5rem);
    padding: 1rem;
  }

  .color-palette {
    grid-template-columns: repeat(6, 1fr);
  }

  .memory-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memory-card-face {
    border-radius: 12px;
  }

  .star-scene {
    max-height: 18rem;
    aspect-ratio: 4 / 3;
    background-position: center;
  }

  .star-item {
    width: clamp(2.25rem, 9vw, 3.35rem);
  }

  .dino-fruit-scene {
    height: min(48svh, 22rem);
    min-height: 18rem;
    max-height: none;
    aspect-ratio: auto;
    background-position: center bottom;
  }

  .dino-character {
    bottom: -7%;
    width: clamp(10.5rem, 48vw, 15rem);
  }

  .dino-fruit-item {
    width: clamp(2.35rem, 10vw, 3.6rem);
  }

  .dino-fruit-band {
    padding: 2.25rem 0.75rem 2.75rem;
  }

  .dino-fruit-layout {
    gap: 0.75rem;
  }

  .dino-fruit-game-panel {
    gap: 0.65rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.7rem;
  }

  .dino-fruit-status {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .dino-fruit-status > div,
  .dino-fruit-message {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.58rem 0.65rem;
  }

  .dino-fruit-target {
    grid-column: span 4;
  }

  .dino-fruit-status > div:not(.dino-fruit-target) {
    grid-column: span 2;
  }

  .dino-fruit-status .tool-button {
    grid-column: span 2;
    min-height: 2.75rem;
    padding: 0.55rem 0.35rem;
    font-size: 0.86rem;
  }

  .dino-fruit-status span {
    font-size: 0.78rem;
  }

  .dino-fruit-status strong {
    font-size: 1.08rem;
  }

  .dino-fruit-message {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .dino-fruit-controls {
    position: sticky;
    bottom: 0.65rem;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid rgba(16, 57, 183, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(7, 29, 114, 0.2);
    padding: 0.45rem;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: none;
  }

  .dino-fruit-controls .tool-button {
    width: 100%;
    min-height: 4rem;
    border-radius: 999px;
    font-size: 2rem;
    -webkit-user-select: none;
    user-select: none;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .coloring-thumbnail {
    min-height: 17rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
