/* Estilo "Rótulo": letrero pintado de barbería. */
:root { --crema: #f4f1e8; --tinta: #14233f; --rojo: #c4311f; --azul: #1d3f8f; --blanco: #fff8ea; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 16px/1.45 Archivo, system-ui, sans-serif; }
h1, h2, h3, .principal, nav button { font-family: 'Alfa Slab One', Georgia, serif; font-weight: 400; }
h1, h2, h3, h4, p { margin: 0 0 .6rem; }
h2 { font-size: 1.45rem; line-height: 1.15; margin-top: .2rem; }
h2:focus { outline: none; }
h3 { font-size: 1.05rem; margin-top: 1.2rem; }
h3::first-letter { text-transform: uppercase; }
.poste { height: 16px; background: repeating-linear-gradient(115deg, var(--rojo) 0 14px, var(--crema) 14px 22px, var(--azul) 22px 36px, var(--crema) 36px 44px); }
header { background: var(--rojo); color: var(--blanco); padding: 1.1rem max(1rem, calc((100% - 30rem) / 2)) 1rem; border-bottom: 4px solid var(--tinta); }
.barbero header { background: var(--tinta); border-color: var(--rojo); }
header h1 { font-size: 2.3rem; line-height: 1.05; margin: 0; text-shadow: 3px 3px 0 var(--tinta); }
.barbero header h1 { text-shadow: 3px 3px 0 var(--rojo); }
header p { margin: .3rem 0 0; }
main, footer { max-width: 32rem; margin: 0 auto; padding: 1.2rem 1rem; }
footer { text-align: center; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
a { color: var(--azul); display: inline-block; padding: .5rem 0; font-weight: 600; }
.paso { color: var(--rojo); font-weight: 600; font-size: .85rem; margin: 0; }

button, input, select { font: inherit; color: inherit; min-height: 3rem; border-radius: 4px; border: 2px solid var(--tinta); }
button { background: transparent; cursor: pointer; font-weight: 600; padding: .5rem .8rem; touch-action: manipulation; }
button:disabled { opacity: .4; cursor: default; }
input, select { width: 100%; min-width: 0; background: #fff; padding: .4rem .7rem; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.principal { width: 100%; background: var(--azul); border-color: var(--tinta); color: var(--blanco); font-size: 1.1rem; box-shadow: 4px 4px 0 var(--tinta); margin: .4rem 0; }
.principal:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.peligro { border-color: var(--rojo); color: var(--rojo); }
.volver { border: 0; padding: 0; min-height: 2.75rem; color: var(--azul); }
form { display: grid; gap: .8rem; }
label { display: grid; gap: .25rem; font-weight: 600; min-width: 0; }
.casilla { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; }
.casilla input { width: 1.4rem; min-height: 1.4rem; accent-color: var(--azul); }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
#aviso:not(:empty) { background: #fff; border: 2px solid var(--rojo); border-left-width: 10px; padding: .7rem; font-weight: 600; position: sticky; top: .5rem; z-index: 1; }
.ok:not(:empty) { border: 2px solid var(--azul); padding: .6rem; font-weight: 600; }

.lista { display: grid; gap: .7rem; }
.servicio { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 1rem; padding: .9rem 1rem; background: var(--blanco); box-shadow: 4px 4px 0 var(--tinta); }
.servicio strong { display: block; font: 400 1.2rem 'Alfa Slab One', Georgia, serif; }
.servicio small { font-weight: 400; }
.servicio b { font-size: 1.15rem; color: var(--rojo); }
.dias { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem .1rem .6rem; }
.dias button { flex: 0 0 4rem; display: grid; justify-items: center; line-height: 1.15; padding: .45rem 0; text-transform: capitalize; background: var(--blanco); }
.dias b { font: 400 1.5rem 'Alfa Slab One', Georgia, serif; }
.dias button[aria-pressed='true'] { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.franjas { display: flex; gap: .45rem; margin-bottom: .7rem; }
.franjas button { flex: 1; }
.franjas button[aria-pressed='true'] { background: var(--tinta); color: var(--blanco); }
.horas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.horas button { background: var(--blanco); padding: .4rem 0; font-size: .95rem; white-space: nowrap; }
.resumen { background: var(--tinta); color: var(--blanco); padding: .9rem 1rem; font-weight: 600; }

.tiquete { display: grid; gap: .3rem; background: var(--blanco); border: 2px dashed var(--tinta); padding: 1rem; margin-bottom: .8rem; }
.tiquete strong { font: 400 1.15rem 'Alfa Slab One', Georgia, serif; }
.tiquete strong::first-letter, .resumen::first-letter { text-transform: uppercase; }
#mis { margin-bottom: 1.6rem; }

nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--tinta); margin-bottom: 1rem; }
nav button { border: 0; border-radius: 0; font-size: .82rem; padding: .4rem 0; }
nav button[aria-current='true'] { background: var(--tinta); color: var(--blanco); }
nav b:not(:empty) { background: var(--rojo); color: #fff; padding: 0 .35rem; border-radius: 9px; }
.fecha { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: .5rem; margin-bottom: .8rem; }
#agenda-titulo::first-letter { text-transform: uppercase; }
.cita { display: grid; gap: .2rem; justify-items: start; background: var(--blanco); border: 2px solid var(--tinta); border-left-width: 10px; padding: .7rem .8rem; margin-bottom: .6rem; overflow-wrap: anywhere; }
.cita > b { color: var(--rojo); }
.cita strong { font-size: 1.1rem; }
.cita button { justify-self: stretch; margin-top: .3rem; }
.bloqueada { border-style: dashed; background: transparent; }
.cancelada { opacity: .75; }
.cancelada strong { text-decoration: line-through; }
details { border-bottom: 2px solid var(--tinta); margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 600; padding: .8rem 0; }
details form { padding-bottom: 1rem; }
#ajustes h2 { margin-top: 1.2rem; }
#salir { width: 100%; margin-top: 1rem; }
/* En la pantalla de éxito el turno no se repite. */
main:has(#listo:not([hidden])) #mis { display: none; }
