/* DeTown. · buzon de historias (/ideas/). Se carga despues de style.css y personajes.css. */
.box { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.bstep { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bstep legend, .blabel { font: 600 1.15rem/1.2 var(--display); letter-spacing: -0.02em; padding: 0; display: block; }
.bhint { margin: 0; color: var(--mute); font-size: 0.92rem; line-height: 1.45; }
.pick { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 520px; }   /* movil: 6 filas de 5 */
.pick-c { display: block; cursor: pointer; }
.pick-img { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--raise); border: 2px solid transparent; position: relative; transition: border-color .15s, transform .15s var(--ease); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pick-c:hover .pick-img { transform: translateY(-2px); }
.pick-c input:checked + .pick-img { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pick-c input:checked + .pick-img::after { content: "✓"; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 0.7rem/1 var(--body); }
.pick-c input:focus-visible + .pick-img { outline: 3px solid var(--accent); outline-offset: 2px; }
.bsel { margin: 0; font: 500 0.85rem/1.2 var(--mono); color: var(--accent); }
.box textarea, .box select, .box input[type="text"] { width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.box textarea { resize: none; line-height: 1.5; overflow: hidden; min-height: 160px; }
.box textarea:focus, .box select:focus, .box input[type="text"]:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.bcount { margin: 0; text-align: right; font: 500 0.8rem/1 var(--mono); color: var(--mute); }
.brow { display: grid; grid-template-columns: 1fr; gap: 12px; }
.brow label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; }
.bimg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bimg label.cta { cursor: pointer; min-height: 48px; }
#imgprev { max-width: 220px; max-height: 220px; border-radius: 12px; border: 1px solid var(--line); }
.chip { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 600 0.85rem/1 var(--body); }
.bchecks { gap: 12px; }
.bcheck { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; cursor: pointer; }
.bcheck input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.hpwrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.berr { margin: 0; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #c0392b; color: #c0392b; font-weight: 600; font-size: 0.92rem; }
.box .cta { align-self: flex-start; border: 0; }
.box .cta[disabled] { opacity: .6; cursor: wait; }
.thanks { max-width: 640px; padding: 22px; border: 1.5px solid var(--accent); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.thanks h2 { font-size: 1.6rem; }
.thanks p { margin: 0; }
@media (min-width: 560px) { .brow { grid-template-columns: 1fr 1fr; } }

/* redes sociales: una fila por red, el lector llena las que quiera */
.nets { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 520px; }
.netrow { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; }
/* foto: el cuadro cuadrado es el propio espacio para la imagen */
.bimg { align-items: flex-end; }
.photo { position: relative; width: 168px; aspect-ratio: 1 / 1; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface); display: grid; place-content: center; justify-items: center; gap: 4px; cursor: pointer; overflow: hidden; color: var(--mute); text-align: center; padding: 8px; }
.photo:hover, .photo:focus-within { border-color: var(--accent); color: var(--accent); }
.photo-plus { font: 300 2.6rem/1 var(--body); }
.photo-t { font-weight: 600; font-size: 0.85rem; }
.photo #imgprev { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border: 0; border-radius: 0; }
.photo.has { border-style: solid; }
.photo.has .photo-plus, .photo.has .photo-t { display: none; }
.photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.input:focus-visible ~ .photo { outline: 3px solid var(--accent); }
@media (min-width: 900px) { .pick { grid-template-columns: repeat(10, 1fr); max-width: 800px; } }   /* en PC: filas de 10 */
