/* Genialmente — dibujos para colorear */
.dibujo { display: block; width: 100%; height: auto; }
.dibujo .zona { fill: #fff; stroke: #1d2640; stroke-width: 3; stroke-linejoin: round; cursor: pointer; transition: fill .12s ease; }
.dibujo .trazo { fill: none; stroke: #1d2640; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.dibujo .fijo { fill: #1d2640; pointer-events: none; }
@media (hover: hover) { .lienzo .dibujo .zona:hover { filter: brightness(.94); } }

/* Galería */
.galeria-dibujos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tarjeta-dibujo { background: var(--fondo); border-radius: var(--radio); padding: 12px 12px 14px; text-decoration: none; color: var(--tinta);
  box-shadow: var(--sombra); display: grid; gap: 10px; text-align: center; transition: transform .12s ease; }
.tarjeta-dibujo:hover { transform: translateY(-4px); }
.tarjeta-dibujo .miniatura { background: #fff; border-radius: 14px; overflow: hidden; }
.tarjeta-dibujo .miniatura .zona { cursor: inherit; pointer-events: none; }
.tarjeta-dibujo strong { font-family: var(--fuente-titulo); font-size: 1.25rem; }

/* Pantalla de pintar */
.mesa-colorear { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .mesa-colorear { grid-template-columns: 1fr 260px; } }
.lienzo { padding: 12px; touch-action: manipulation; }
.herramientas { display: grid; gap: 18px; }
.paleta { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
@media (min-width: 900px) { .paleta { grid-template-columns: repeat(4, 1fr); } }
.color { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--borde); background: var(--color); cursor: pointer; min-width: 36px; }
.color.activo { border-color: var(--tinta); box-shadow: 0 0 0 3px var(--sol); transform: scale(1.08); }
.color:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
.acciones-colorear { display: grid; gap: 8px; }
.acciones-colorear .btn { width: 100%; }
.acciones-colorear .btn:disabled { opacity: .45; cursor: default; }
