/* Materiales y ambiente de la maqueta. La mecánica del libro vive en kiara.css. */
.kh#kiara-en-el-hogar {
  container: kiara-maqueta / inline-size;
  --kh-fibra: url("img/papel-fibra.webp");
}

.kh .kh-portada {
  overflow: hidden;
  background: #b5e1ed url("img/portada-jardin.webp") center 39% / cover no-repeat;
}
.kh.kh-navidad .kh-portada {
  background: #233861 url("img/portada-navidad.webp") center 39% / cover no-repeat;
}
.kh .kh-jardin {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.kh .kh-jardin__mariposa {
  position: absolute;
  right: 16%;
  top: 18%;
  width: clamp(22px,3.7vw,56px);
  aspect-ratio: 1;
  rotate: 16deg;
  animation: kh-aleteo-jardin 10s -2.6s ease-in-out infinite;
}
.kh .kh-jardin__mariposa--lejos {
  right: 5%;
  top: 46%;
  width: clamp(16px,2.2vw,31px);
  rotate: -18deg;
  opacity: .8;
  animation-duration: 13s;
  animation-delay: -6s;
  animation-direction: alternate-reverse;
}
.kh .kh-jardin__mariposa i {
  display: block;
  width: 100%;
  height: 100%;
  background: url("img/sprite-mariposa.webp") left center / 800% 100% no-repeat;
  animation: kh-alas-jardin .86s steps(7,end) infinite;
}
.kh .kh-jardin__hoja {
  position: absolute;
  left: var(--x);
  top: 4%;
  width: clamp(9px,1.3vw,18px);
  aspect-ratio: 1.45;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(163deg,#e9c960 44%,#a98141 48% 53%,#bd994e 58%);
  box-shadow: 1px 1px #7a62434d;
  animation: kh-hoja-vuela 14s var(--d) linear infinite;
}
@keyframes kh-aleteo-jardin {
  0%, 100% { transform: translate(6%,12%); }
  23% { transform: translate(-81%,8%) rotate(-15deg); }
  47% { transform: translate(-153%,-43%) rotate(-30deg); }
  73% { transform: translate(-57%,56%) rotate(6deg); }
}
@keyframes kh-alas-jardin { to { background-position-x: 100%; } }
@keyframes kh-hoja-vuela {
  0% { opacity: 0; transform: translate(0,-22px) rotate(var(--g)); }
  12%, 74% { opacity: .73; }
  46% { transform: translate(26px,94px) rotate(calc(var(--g) + 135deg)); }
  100% { opacity: 0; transform: translate(-32px,222px) rotate(calc(var(--g) + 280deg)); }
}
.kh .kh-portada__texto {
  position: relative;
  padding: clamp(20px,3vw,36px);
  background: radial-gradient(circle at 30% 34%,#99623c14 0 .9px,transparent 1.1px) 0 0 / 8px 9px,
    radial-gradient(ellipse at 84% 0%,#ffe9b7,transparent 55%),linear-gradient(144deg,#fffcf2,#fff1d6 84%);
  border: 4px solid #fffdfa;
  border-radius: 31px 28px 29px 28px;
  box-shadow: 5px 6px #d29c57,9px 11px #956740a8,9px 15px 26px #48321c51;
}
.kh .kh-portada__texto::before { content: ""; position: absolute; inset: 7px; border: 1px dashed #bd8b485a; border-radius: 22px; pointer-events: none; }
.kh .kh-portada__texto::after { content: ""; position: absolute; top: -11px; left: 69%; width: min(85px,20%); height: 20px; transform: rotate(6deg); background: repeating-linear-gradient(125deg,#f6b73b 0 6px,#ffd765 6px 12px); opacity: .87; pointer-events: none; }
.kh .kh-portada .kh-portada__texto .kh-etiqueta { color: #644764; }
.kh .kh-portada__texto .kh-portada__intro { color: #5b4564; font-weight: 600; }
.kh .kh-portada .kh-acciones .kh-boton:first-child { background: #147c70; color: #fffdf4; box-shadow: 0 4px #0b665a,0 10px 18px -8px #0b665a81; }
.kh .kh-portada .kh-modo { color: #433250; background: #f3e2c7; border-color: #ad875f70; }
.kh .kh-portada .kh-titulo {
  color: #176d64;
  font-size: clamp(31px,4.4vw,56px);
  font-weight: 700;
  line-height: .96;
  text-shadow: none;
}
.kh .kh-portada .kh-letras { gap: .02em; font-size: 1.73em; letter-spacing: -.028em; filter: drop-shadow(0 .046em 0 #d9b98785); }
.kh .kh-portada .kh-letras span {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
  paint-order: stroke fill;
  -webkit-text-stroke: .101em #fffdf7;
  animation-name: none;
}
.kh .kh-portada .kh-letras span:nth-child(1) { color: #f07b31; transform: rotate(-5deg); }
.kh .kh-portada .kh-letras span:nth-child(2) { color: #f45668; transform: rotate(4deg); }
.kh .kh-portada .kh-letras span:nth-child(3) { color: #159e94; transform: rotate(-4deg); }
.kh .kh-portada .kh-letras span:nth-child(4) { color: #edab1d; transform: rotate(3deg); }
.kh .kh-portada .kh-letras span:nth-child(5) { color: #73b940; transform: rotate(2deg); }
.kh .kh-portada .kh-titulo__resto { letter-spacing: -.023em; }
@media (max-width: 680px) {
  .kh .kh-portada { background-image: url("img/portada-jardin-movil.webp"); background-position: 67% 43%; }
  .kh.kh-navidad .kh-portada { background-image: url("img/portada-navidad-movil.webp"); background-position: 67% 43%; }
}

.kh .kh-libro__hojas {
  box-shadow: 0 3px 0 #473156, 0 6px 0 #7a546a, 0 11px 0 #57395f, 0 42px 44px -27px #573421b8;
}
.kh .kh-libro__hojas::before,
.kh .kh-libro__hojas::after {
  border: 1px solid #b295655c;
  background-image: linear-gradient(var(--kh-sentido), #8b5b383d 0%, transparent 19%, #fff9e22e 76%, #9977431b), var(--kh-fibra);
  background-size: auto, 152px 152px;
}
.kh .kh-libro__hojas::before { --kh-sentido: 270deg; }
.kh .kh-libro__hojas::after { --kh-sentido: 90deg; }
.kh .kh-tapa__dorso {
  background-image: linear-gradient(270deg,#ac895250,transparent 19%), var(--kh-fibra);
  background-size: auto, 152px 152px;
}
.kh .kh-tapete {
  position: absolute;
  display: block;
  left: 19%;
  bottom: 16%;
  width: 62%;
  height: auto;
  transform: translateZ(5px);
  opacity: .94;
  filter: drop-shadow(1px 3px 1px #6d3f2c61);
}
.kh .kh-luz-pagina {
  position: absolute;
  inset: 7% 44% 11% 2%;
  background: linear-gradient(125deg, #fff7d48c, #fff4ce22 75%, transparent);
  clip-path: polygon(21% 9%,48% 9%,97% 83%,72% 87%);
  transform: translateZ(.2px);
  pointer-events: none;
}
.kh.kh-navidad .kh-luz-pagina { opacity: .32; }

/* Al cerrarse solo se ve una tapa. La otra mitad nace al girar sobre el lomo. */
.kh .kh-libro[data-apertura="cerrado"] .kh-base {
  transform: translateX(-24%) rotateX(38deg) scale(.91);
}
.kh .kh-libro[data-apertura="cerrado"] .kh-libro__hojas {
  left: 50%;
  background: #59416d;
}
.kh .kh-libro[data-apertura="cerrado"] .kh-libro__hojas::before { display: none; }
.kh .kh-libro[data-apertura="cerrado"] .kh-libro__hojas::after { left: 2%; right: 2%; width: auto; }
.kh .kh-libro[data-apertura="cerrado"] .kh-tapa,
.kh .kh-libro[data-apertura="abierto"] .kh-tapa { animation: none; }
.kh .kh-libro[data-apertura="cerrado"] .kh-tapa { transform: translateZ(4px) rotateY(0); }
.kh .kh-libro[data-apertura="abierto"] .kh-tapa { transform: rotateY(-179.5deg); }
.kh .kh-libro[data-apertura="cerrado"] .kh-pieza { animation: none; }
.kh .kh-libro[data-apertura="cerrado"] :is(.kh-popup,.kh-tapete,.kh-luz-pagina,.kh-toca,.kh-polvo,.kh-mariposa) { visibility: hidden; }
.kh .kh-libro[data-apertura="cerrado"] .kh-pieza { transform: rotateX(0deg); opacity: 0; }
.kh .kh-libro[data-apertura="abriendo"] .kh-base { animation: kh-libro-despliega 1.16s cubic-bezier(.35,.03,.24,1) both; }
.kh .kh-libro[data-apertura="abriendo"] .kh-libro__hojas { animation: kh-paginas-asoman .53s .50s cubic-bezier(.43,0,.3,1) both; }
.kh .kh-libro[data-apertura="abriendo"] .kh-tapa { animation: kh-tapa-gira 1.09s .12s cubic-bezier(.46,.03,.28,1) both; }
.kh .kh-libro[data-apertura="abriendo"] :is(.kh-tapete,.kh-luz-pagina) { animation: kh-suelo-asoma .52s .64s both; }
.kh .kh-libro[data-apertura="abriendo"] .kh-pieza--pared { animation-delay: 1.02s; }
.kh .kh-libro[data-apertura="abriendo"] .kh-pieza--cortina-i { animation-delay: 1.14s; }
.kh .kh-libro[data-apertura="abriendo"] .kh-pieza--cortina-d { animation-delay: 1.18s; }
.kh .kh-libro[data-apertura="abriendo"] .kh-pieza--muebles { animation-delay: 1.3s; }
.kh .kh-libro[data-apertura="abriendo"] .kh-pieza--mateo { animation-delay: 1.43s; }
.kh .kh-libro[data-apertura="abriendo"] .kh-pieza--kiara { animation-delay: 1.53s; }
.kh .kh-libro[data-apertura="abriendo"] :is(.kh-toca,.kh-polvo,.kh-mariposa) { visibility: hidden; }
.kh .kh-libro[data-apertura="abierto"] .kh-base { transform: rotateX(56deg); animation: none; }
.kh .kh-libro[data-apertura="abierto"] .kh-libro__hojas { clip-path: none; animation: none; }
.kh .kh-libro[data-apertura="abierto"] .kh-pieza { animation: none; opacity: 1; transform: rotateX(-56deg); }

@keyframes kh-libro-despliega {
  0%,9% { transform: translateX(-24%) rotateX(38deg) scale(.91); }
  100% { transform: rotateX(56deg); }
}
@keyframes kh-paginas-asoman {
  from { clip-path: inset(0 -18px -26px 49.6% round 7px); }
  to { clip-path: inset(-10px -18px -40px -18px round 7px); }
}
@keyframes kh-tapa-gira {
  0% { transform: translateZ(4px) rotateY(0); }
  67% { transform: translateZ(3px) rotateY(-149deg); }
  100% { transform: rotateY(-179.5deg); }
}
@keyframes kh-suelo-asoma { from { opacity: 0; } }

.kh .kh-abrir-portada {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 8;
  translate: -50% 0;
  min-height: 42px;
  padding: 7px 17px;
  border: 1px solid #a67737;
  border-radius: 999px;
  background: #f8d582;
  color: #402e41;
  font: 600 .98rem/1 var(--kh-display);
  box-shadow: 0 3px 0 #8f603c, 0 8px 14px -6px #563420a1;
  cursor: pointer;
  white-space: nowrap;
}
.kh .kh-abrir-portada span { margin-inline-start: 4px; font-size: 1.3em; }
.kh .kh-abrir-portada:hover { background: #ffe7a3; }
.kh .kh-abrir-portada:disabled { opacity: 0; pointer-events: none; }
.kh .kh-abrir-portada:focus-visible { outline: 3px solid #633367; outline-offset: 3px; }

.kh .kh-luz-boton {
  position: absolute;
  inset: auto 0 0 auto;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .3rem .65rem;
  border: 1px solid #b08450;
  border-radius: 12px;
  color: #51395c;
  background: #fff4d9;
  box-shadow: 0 3px #9f704d;
  cursor: pointer;
  font: 600 .82rem/1 var(--kh-display), sans-serif;
}
.kh .kh-luz-boton i {
  width: 15px;
  height: 16px;
  border: 1px solid #946c45;
  border-radius: 7px 7px 3px 3px;
  background: #b9c6e0;
  box-shadow: inset 0 -4px #b48b54;
}
.kh .kh-luz-boton[aria-pressed="true"] i { background: #ffe496; }
.kh .kh-luz-boton:focus-visible { outline: 3px solid #633367; outline-offset: 3px; }
.kh .kh-libro[data-apertura="abierto"] .kh-toca {
  inset-inline: 1% auto;
  padding-inline: clamp(6px,1.3vw,14px);
  font-size: clamp(.7rem,1.5vw,.9rem);
}
.kh .kh-casa-iluminada .kh-pieza--pared::after {
  display: block;
  background: radial-gradient(ellipse, #fffdc8d9, #f9c05b78 75%);
}
.kh .kh-casa-iluminada .kh-luz-pagina { opacity: .84; }
.kh .kh-chispas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.kh .kh-chispas i {
  position: absolute;
  left: 49%;
  top: 63%;
  width: var(--s,9px);
  aspect-ratio: 1;
  opacity: 0;
  background: var(--c,#f9d17f);
  clip-path: polygon(50% 0,63% 36%,100% 50%,63% 64%,50% 100%,37% 64%,0 50%,37% 36%);
}
.kh .kh-chispas i:nth-child(1) { --x: -86px; --y: -74px; --d: .02s; }
.kh .kh-chispas i:nth-child(2) { --x: -55px; --y: -111px; --d: .05s; --c: #81d5ba; }
.kh .kh-chispas i:nth-child(3) { --x: -19px; --y: -94px; --d: .15s; --s: 14px; }
.kh .kh-chispas i:nth-child(4) { --x: 33px; --y: -136px; --d: .06s; --c: #ff9faa; }
.kh .kh-chispas i:nth-child(5) { --x: 70px; --y: -92px; --d: .09s; --s: 15px; }
.kh .kh-chispas i:nth-child(6) { --x: 97px; --y: -61px; --d: .18s; --c: #f4b6d7; }
.kh .kh-chispas i:nth-child(7) { --x: 125px; --y: -32px; --d: .11s; --c: #fff0bf; }
.kh .kh-libro[data-apertura="abriendo"] .kh-chispas i {
  animation: kh-chispa-papel .88s calc(.95s + var(--d)) ease-out both;
}
.kh .kh-casa-iluminada[data-apertura="abierto"] .kh-chispas i {
  animation: kh-chispa-papel .73s var(--d) ease-out both;
}
@keyframes kh-chispa-papel {
  0% { opacity: 0; transform: translate(0,0) scale(.4) rotate(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x),var(--y)) scale(.8) rotate(90deg); }
}
.kh .kh-libro[data-apertura="abierto"]:not([data-habla]) .kh-personaje-con-gorro,
.kh .kh-libro[data-apertura="abierto"]:not([data-habla]) .kh-pieza--mateo .kh-actor {
  transform-origin: 50% 95%;
  animation: kh-pose-viva 7.2s ease-in-out infinite;
}
.kh .kh-libro[data-apertura="abierto"]:not([data-habla]) .kh-pieza--mateo .kh-actor {
  animation-delay: -3.4s;
}
.kh .kh-libro[data-habla="kiara"] .kh-pieza--mateo .kh-actor { transform: rotate(3.5deg); transform-origin: center bottom; }
.kh .kh-libro[data-habla="mateo"] .kh-personaje-con-gorro { transform: rotate(-4deg); transform-origin: center bottom; }
@keyframes kh-pose-viva {
  0%, 27%, 59%, 100% { transform: rotate(0); }
  12% { transform: rotate(-2.7deg); }
  42% { transform: rotate(2.5deg); }
}

.kh .kh-pieza--pared > img { border-radius: 3px 4px 0 0; box-shadow: 2px 1px #6339526e; }
.kh .kh-pieza--muebles img { filter: drop-shadow(2px 4px 3px #663e3848); }
.kh .kh-pieza--mateo { left: 3%; width: 33.5%; }
.kh.kh-navidad .kh-pieza--kiara { padding-top: 6.8%; }
.kh .kh-personaje-con-gorro { display: block; position: relative; }
.kh .kh-pieza .kh-gorro {
  width: 55%;
  z-index: 2;
  top: var(--kh-gorro-y,14%);
  left: var(--kh-gorro-x,49%);
  rotate: none;
  transform: translate(-50%,-91%) rotate(var(--kh-gorro-giro,-9deg));
  transform-origin: 50% 91%;
  filter: drop-shadow(0 1px 1px #563c2f55);
}
.kh .kh-globo-actor { padding: 9px 12px 11px; }
.kh .kh-globo-actor::after { left: var(--kh-globo-pico,50%); }
.kh .kh-globo-actor__nombre { display: block; color: #146e63; margin-bottom: 4px; }
.kh .kh-globo-actor[data-personaje="mateo"] .kh-globo-actor__nombre { color: #6d397d; }
.kh .kh-pieza--pared::after {
  content: "";
  display: none;
  position: absolute;
  inset: 8.2% 64.3% 59% 7.5%;
  background: linear-gradient(#243455ac, #725c9c35 76%);
  mask-image: linear-gradient(90deg,#000 0 46%,transparent 46% 55%,#000 55%);
  pointer-events: none;
}
.kh.kh-navidad .kh-pieza--pared::after { display: block; }
.kh.kh-navidad .kh-pieza--pared > img { filter: brightness(.89) saturate(.94); }

.kh .kh-polvo { position: absolute; inset: 18% 31% 30% 13%; pointer-events: none; }
.kh .kh-polvo i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 4px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff5b8;
  box-shadow: 0 0 5px #fff2af;
  opacity: 0;
  animation: kh-particula-luz 6s var(--delay) ease-in-out infinite;
}
.kh .kh-polvo i:nth-child(1) { --x: 26%; --y: 38%; --delay: 2.1s; }
.kh .kh-polvo i:nth-child(2) { --x: 38%; --y: 22%; --delay: 3.7s; --size: 3px; }
.kh .kh-polvo i:nth-child(3) { --x: 47%; --y: 58%; --delay: 4.4s; }
.kh .kh-polvo i:nth-child(4) { --x: 63%; --y: 65%; --delay: 6.2s; --size: 3px; }
.kh .kh-polvo i:nth-child(5) { --x: 73%; --y: 48%; --delay: 5.1s; }
@keyframes kh-particula-luz {
  0%, 100% { opacity: 0; transform: translate(0,9px); }
  35% { opacity: .75; }
  74% { opacity: .25; }
  98% { opacity: 0; transform: translate(19px,-14px); }
}
.kh .kh-portada.kh-portada-pausada :is(.kh-polvo i,.kh-confeti i,.kh-luces span,.kh-estrella,.kh-mariposa,.kh-mariposa i,.kh-toca,.kh-jardin span,.kh-jardin i,.kh-personaje-con-gorro,.kh-pieza--mateo .kh-actor) {
  animation-play-state: paused;
}

.kh .kh-pliego,
.kh .kh-reto__marco,
.kh .kh-camino,
.kh .kh-tarjeta {
  background-color: #fff8e9;
  background-image: linear-gradient(#fff9ef78,#faf1e77a), var(--kh-fibra);
  background-size: auto, 144px 144px;
}
.kh .kh-reto__marco { box-shadow: 0 3px #caa980,0 6px #b58b61,0 11px #805042,0 27px 36px -21px #693e29b3; }
.kh .kh-acordeon details[open] { box-shadow: inset 3px 0 #daac75,0 11px 20px -13px #181d32ad; }
.kh .kh-peligro:focus-visible,
.kh .kh-actor:focus-visible { outline: 3px solid #633367; outline-offset: 2px; }
.kh [hidden] { display: none !important; }

.kh .kh-indice-juego { background: #fff7e6; border-bottom: 1px solid #b48c5e; }
.kh .kh-indice-juego .kh-envoltura { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 8px; }
.kh .kh-indice-juego a { text-decoration: none; }
.kh .kh-indice-juego__marca { font: 700 clamp(1.13rem,2.5vw,1.52rem)/1 var(--kh-display); color: #57336e; }
.kh .kh-indice-juego__enlaces { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 5px clamp(10px,2.4vw,27px); font-weight: 800; font-size: .94rem; }
.kh .kh-indice-juego__enlaces a:hover { text-decoration: underline; text-underline-offset: .24em; }
.kh .kh-indice-juego__jugar { background: #f4cf75; border: 1px solid #9f7138; box-shadow: 0 2px #ab7949; padding: 5px 14px; border-radius: 999px; }
.kh .kh-minijuegos { background-color: #efdebf; background-image: linear-gradient(#f9ecd8ad,#ebd4b3c9),var(--kh-fibra); background-size: auto,160px 160px; }
.kh .kh-minijuegos .kh-cabeza :is(h2,p) { color: #382947; text-shadow: none; }
.kh .kh-juegos.kh-fichas { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,2.6vw,31px); }
.kh .kh-fichas .kh-juego { display: block; text-align: start; }
.kh .kh-ficha {
  --ficha-color: #f8ecd1;
  display: flex; flex-direction: column; height: 100%; min-width: 0;
  padding: 12px; color: #382947; text-decoration: none;
  border: 1px solid #ad895f; border-radius: 9px 11px 13px 8px;
  background: linear-gradient(#fffbeb76,transparent),var(--ficha-color);
  box-shadow: inset 1px 1px #fff5dd, 0 4px #ceac82, 0 7px #765372, 0 17px 20px -15px #674330b0;
  transition: transform .2s, box-shadow .2s;
}
.kh .kh-juego:nth-child(2n) .kh-ficha { --ficha-color: #eee0f0; }
.kh .kh-juego:nth-child(3n) .kh-ficha { --ficha-color: #e4ebd5; }
.kh .kh-ficha:is(:hover,:focus-visible) { transform: translateY(-4px); box-shadow: inset 1px 1px #fff5dd,0 4px #ceac82,0 7px #765372,0 22px 24px -14px #674330b0; }
.kh .kh-fichas .kh-juego__escena { aspect-ratio: 6 / 4.2; max-height: 210px; }
.kh .kh-fichas .kh-juego__figura { max-height: 89%; object-fit: contain; object-position: center bottom; }
.kh .kh-ficha:is(:hover,:focus-visible) .kh-juego__figura { animation: kh-saluda-ficha .62s ease-out both; }
.kh .kh-ficha:is(:hover,:focus-visible) .kh-ficha__accion span { display: inline-block; transform: translateX(3px); }
@keyframes kh-saluda-ficha {
  0% { transform: rotate(0); }
  34% { transform: rotate(-5deg); }
  66% { transform: rotate(2deg); }
  100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .kh .kh-jardin, .kh .kh-chispas { display: none !important; }
  .kh .kh-ficha:is(:hover,:focus-visible) .kh-juego__figura { animation: none; }
}
.kh .kh-ficha__texto { display: grid; grid-template-rows: auto auto 1fr; gap: 7px; padding: 10px 4px 2px; flex: 1; }
.kh .kh-fichas .kh-juego h3 { font-size: clamp(1.2rem,2.35vw,1.58rem); color: #382947; text-shadow: none; text-wrap: pretty; }
.kh .kh-ficha__texto p { color: #4e4258; font-size: .96rem; line-height: 1.38; }
.kh .kh-ficha__accion { margin-top: 4px; align-self: end; color: #6a326e; font-weight: 800; white-space: nowrap; }
.kh .kh-ficha__accion span { margin-inline-start: 4px; font-size: 1.2em; }
.kh .kh-camino__texto a { font-weight: 800; text-underline-offset: .2em; }
.kh .kh-firma { background: #19262f; color: #fff6e4; }
.kh .kh-firma img { width: min(210px,65%); padding: 8px 12px; border-radius: 9px; background: #fff5e3; }
.kh .kh-firma p { color: #fff6e4; }
.kh .kh-firma p.kh-copy { color: #eee3d2 !important; }
.kh .km-prevention-intro h2 { margin: 0 0 14px; }
.kh .km-prevention-questions details > p { margin: 0; }
.kh .km-prevention-questions > .km-prevention-sources { margin: 6px 0 0; }
.kh .kh-sprite[data-hoja] { background-size: 100% 100%; }
.kh .kh-actor[data-estado="habla"] .kh-sprite[data-hoja] { background-size: 800% 100%; background-position: var(--kh-fotograma,0%) 0; animation: none; }
@container kiara-maqueta (max-width: 720px) {
  .kh .kh-juegos.kh-fichas { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kh .km-prevention-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .kh .km-book { width: min(100%,420px); }
}
@container kiara-maqueta (max-width: 465px) {
  .kh .kh-indice-juego .kh-envoltura { flex-direction: column; justify-content: center; padding-block: 11px; }
  .kh .kh-ficha { padding: 8px; }
  .kh .kh-ficha__texto { padding-inline: 2px; }
}
@container kiara-maqueta (max-width: 350px) { .kh .kh-juegos.kh-fichas { grid-template-columns: minmax(0,1fr); } }
.kh img[data-carga-src]:not([src]) { visibility: hidden; }

@container kiara-maqueta (max-width: 900px) {
  .kh .kh-portada .kh-envoltura, .kh .kh-reto, .kh .kh-quiz, .kh .kh-cal, .kh .kh-prev { grid-template-columns: minmax(0,1fr); }
  .kh .kh-portada__texto { justify-items: center; text-align: center; }
  .kh .kh-portada__intro { margin-inline: auto; }
  .kh .kh-acciones { justify-content: center; }
  .kh .kh-libro-escena { order: -1; }
  .kh .kh-libro { max-width: 565px; }
  .kh .kh-juegos { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .kh .kh-caminos,.kh.kh-navidad .kh-caminos,.kh .kh-familias { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container kiara-maqueta (max-width: 560px) {
  .kh .kh-caminos,.kh.kh-navidad .kh-caminos,.kh .kh-familias { grid-template-columns: minmax(0,1fr); }
  .kh .kh-ventanas { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .kh .kh-polvo { display: none; }
}
