/* =========================================================
   Lavarse los dientes con Nina (casa/dientes/, js/dientes.js)
   ========================================================= */
.dientes { justify-content: space-between; gap: 12px; }
.dientes [hidden] { display: none !important; }
.dientes-cabeza { width: 100%; display: flex; align-items: center; gap: 14px; justify-content: center; }
.dientes-nina { width: clamp(70px, 10vw, 110px); flex: none; }
.dientes-frase { margin: 0; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.2; max-width: 30ch; }
.escenario:fullscreen .dientes-frase { font-size: 5vh; }
.escenario:fullscreen .dientes-nina { width: 16vh; }

.dientes-boca { width: min(100%, 520px); }
.dientes-boca svg { display: block; width: 100%; height: auto; overflow: visible; }
.escenario:fullscreen .dientes-boca { width: auto; height: 52vh; }
.escenario:fullscreen .dientes-boca svg { height: 100%; width: auto; margin: 0 auto; }
.boca-labios { fill: #FF9FB2; }
.boca-dentro { fill: #8E3448; }
.boca-lengua { fill: #F37C93; }
.boca-borde { fill: none; stroke: #38251F; stroke-width: 4; stroke-linejoin: round; }
.diente__forma { fill: #FFFFFF; stroke: #38251F; stroke-width: 3; stroke-linejoin: round; transition: fill .4s; }
.diente--toca .diente__forma { fill: #FFF6C9; stroke-width: 4; }
.diente__espuma { fill: #E6F4FF; stroke: #9DCBEA; stroke-width: 1.5; opacity: 0; transition: opacity .5s; }
.diente--espuma .diente__espuma { opacity: 1; }
.diente__brillo { fill: #FFD86B; stroke: #38251F; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.diente--brilla .diente__brillo { opacity: 1; animation: dientes-brilla 1.4s ease-in-out infinite alternate; }
.diente--brilla:nth-child(odd) .diente__brillo { animation-delay: -.7s; }
@keyframes dientes-brilla { from { transform: scale(.6) rotate(0); } to { transform: scale(1.2) rotate(45deg); } }

.cepillo { opacity: 0; transition: opacity .3s; pointer-events: none; }
.cepillo--visible { opacity: 1; }
.cepillo__mueve { animation: cepillo-frota .35s ease-in-out infinite alternate; }
@keyframes cepillo-frota { from { transform: translateX(-12px); } to { transform: translateX(12px); } }

.dientes-pasos { --avance: 0; list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.dientes-pasos li { display: block; }
.dientes-paso__bola { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 3px var(--borde); }
.dientes-paso--ahora .dientes-paso__bola { background: conic-gradient(var(--acento) calc(var(--avance) * 360deg), var(--papel) 0); box-shadow: inset 0 0 0 3px var(--acento); transform: scale(1.2); }
.dientes-paso--hecho .dientes-paso__bola { background: var(--acento); box-shadow: inset 0 0 0 3px var(--acento); }
.escenario:fullscreen .dientes-paso__bola { width: 4vh; height: 4vh; }

.dientes-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.dientes-dia { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-radius: 14px; background: var(--cielo); }
.dientes-dia--hoy { box-shadow: inset 0 0 0 3px var(--acento); }
.dientes-dia__nombre { font-weight: 800; font-size: .9rem; }
.dientes-dia__marca { width: 28px; height: 28px; opacity: .22; filter: grayscale(1); }
.dientes-dia__marca svg { width: 100%; height: 100%; display: block; }
.dientes-dia__marca--si { opacity: 1; filter: none; }
.dientes-pildoras { display: flex; flex-wrap: wrap; gap: 6px; }
.dientes-pildoras button {
  min-height: 44px; padding: 6px 14px; border: 2px solid var(--borde); border-radius: 999px;
  background: var(--papel); color: var(--tinta); font: inherit; font-weight: 700; cursor: pointer;
}
.dientes-pildoras button[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: #38251F; }
.dientes-pildoras button:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
@media (max-width: 520px) { .dientes-cabeza { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .cepillo__mueve, .diente--brilla .diente__brillo { animation: none; } }
