/* Turnero dentro de la landing: hoja de reservas con la misma estética (negro cálido, hueso, grafito, Bodoni + Archivo, esquinas rectas).
   Todo cuelga de .tn para no pisar los estilos de la landing. */
.tn, .tn-fab {
  --tn-bg: #0A0908; --tn-card: #131110; --tn-card2: #1B1817; --tn-ink: #F4F1ED; --tn-muted: #A29B93; --tn-faint: #6F6862;
  --tn-line: rgba(120,120,120,.45); --tn-line-soft: rgba(244,241,237,.1); --tn-btn: #4E4E4E; --tn-btn-hover: #6A6A6A; --tn-ok: #7BC08A; --tn-no: #E08A7E;
  --tn-display: 'Bodoni Moda', Georgia, serif; --tn-font: Archivo, system-ui, sans-serif; --tn-ease: cubic-bezier(.2,.7,.2,1);
  font-family: var(--tn-font); color: var(--tn-ink); -webkit-font-smoothing: antialiased;
}
.tn *, .tn *::before, .tn *::after { box-sizing: border-box; }
/* Reset de botones con :where() (sin peso), así las clases de cada botón mandan sobre él. */
:where(.tn) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.tn[hidden] { display: none; }
html.tn-lock, html.tn-lock body { overflow: hidden; }

.tn { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; }
.tn-bd { position: absolute; inset: 0; background: rgba(0,0,0,.72); animation: tn-fade .25s ease both; }
.tn-box { position: relative; width: 100%; max-height: 94vh; display: flex; flex-direction: column; background: var(--tn-bg); border-top: 1px solid var(--tn-line); animation: tn-up .35s var(--tn-ease) both; }
@keyframes tn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tn-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.tn-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--tn-line-soft); }
.tn-head .tt { flex: 1; min-width: 0; }
.tn-kick { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--tn-muted); margin-bottom: 4px; }
.tn-head h2 { margin: 0; font-family: var(--tn-display); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.tn-ib { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--tn-line); border-radius: 2px; transition: border-color .2s, background .2s; }
.tn-ib:hover { border-color: #9C9C9C; background: var(--tn-card2); }

.tn-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 22px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--tn-line) transparent; }
.tn-foot { padding: 14px 18px 18px; border-top: 1px solid var(--tn-line-soft); background: var(--tn-bg); display: flex; flex-direction: column; gap: 10px; }

.tn-step { display: flex; flex-direction: column; gap: 10px; }
.tn-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tn-muted); }
.tn-lbl b { color: var(--tn-ink); font-weight: 600; }
.tn-link { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--tn-ink); border-bottom: 1px solid #9C9C9C; }

/* Servicios */
.tn-svcs { display: flex; flex-direction: column; gap: 8px; }
.tn-svc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; background: var(--tn-card2); border: 1px solid var(--tn-line); border-radius: 2px; transition: border-color .2s, background .2s; }
.tn-svc:hover { border-color: #9C9C9C; }
.tn-svc.on { border-color: var(--tn-ink); background: #242019; box-shadow: inset 0 0 0 1px var(--tn-ink); }
.tn-svc .n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tn-svc .n strong { font-family: var(--tn-display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.tn-svc .n span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tn-muted); }
.tn-svc .p { font-family: var(--tn-display); font-weight: 900; font-size: 18px; white-space: nowrap; }
.tn-svc .dot { width: 18px; height: 18px; flex-shrink: 0; border: 1px solid var(--tn-line); border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tn-svc.on .dot { background: var(--tn-ink); border-color: var(--tn-ink); color: var(--tn-bg); }
.tn-svc .dot svg { width: 11px; height: 11px; }

/* Días */
.tn-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .tn-days::-webkit-scrollbar { display: none; }
.tn-day { flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 2px; background: var(--tn-card2); border: 1px solid var(--tn-line); border-radius: 2px; transition: border-color .2s, background .2s, color .2s; }
.tn-day .dw { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tn-muted); }
.tn-day .nm { font-family: var(--tn-display); font-weight: 900; font-size: 22px; line-height: 1.1; }
.tn-day .ms { font-size: 10px; color: var(--tn-muted); }
.tn-day:hover:not([disabled]) { border-color: #9C9C9C; }
.tn-day.on { background: var(--tn-ink); color: var(--tn-bg); border-color: var(--tn-ink); } .tn-day.on .dw, .tn-day.on .ms { color: rgba(10,9,8,.6); }
.tn-day[disabled] { cursor: not-allowed; background: transparent; border-color: var(--tn-line-soft); color: var(--tn-faint); } .tn-day[disabled] .dw, .tn-day[disabled] .ms { color: var(--tn-faint); }

/* Horarios */
.tn-grp { display: flex; flex-direction: column; gap: 8px; }
.tn-grp + .tn-grp { margin-top: 6px; }
.tn-grp small { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--tn-faint); }
.tn-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.tn-slot { height: 40px; background: var(--tn-card2); border: 1px solid var(--tn-line); border-radius: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s; }
.tn-slot:hover { border-color: #9C9C9C; } .tn-slot.on { background: var(--tn-ink); color: var(--tn-bg); border-color: var(--tn-ink); }
.tn-empty { padding: 16px; border: 1px dashed var(--tn-line); color: var(--tn-muted); font-size: 13px; line-height: 1.5; }
.tn-empty a { color: var(--tn-ink); border-bottom: 1px solid #9C9C9C; }
.tn-sk { height: 64px; background: linear-gradient(90deg, var(--tn-card) 25%, var(--tn-card2) 50%, var(--tn-card) 75%); background-size: 200% 100%; animation: tn-sk 1.2s linear infinite; }
@keyframes tn-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Ticket (resumen) */
.tn-ticket { background: var(--tn-card); border: 1px solid var(--tn-line); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.tn-ticket .r { display: flex; justify-content: space-between; gap: 14px; } .tn-ticket .r span { color: var(--tn-muted); } .tn-ticket .r strong { text-align: right; font-weight: 600; }
.tn-ticket .cut { border-top: 1px dashed var(--tn-line); margin: 2px 0; }
.tn-ticket .tot strong { font-family: var(--tn-display); font-weight: 900; font-size: 22px; }
.tn-ticket .tot span { color: var(--tn-ink); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; align-self: center; }
.tn-badge { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; border: 1px solid currentColor; }
.tn-badge.ok { color: var(--tn-ok); } .tn-badge.no { color: var(--tn-no); } .tn-badge.pend { color: var(--tn-muted); }

/* Línea resumen del pie */
.tn-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--tn-muted); }
.tn-sum strong { color: var(--tn-ink); font-family: var(--tn-display); font-weight: 900; font-size: 20px; white-space: nowrap; }
.tn-sum span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Botones */
.tn-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 16px; background: var(--tn-btn); color: var(--tn-ink); font-weight: 700; font-size: 15px; border-radius: 2px; text-decoration: none; transition: background .2s, transform .18s; }
.tn-btn:hover:not([disabled]) { background: var(--tn-btn-hover); } .tn-btn:active:not([disabled]) { transform: scale(.985); }
.tn-btn[disabled] { opacity: .4; cursor: not-allowed; }
.tn-btn.light { background: var(--tn-ink); color: var(--tn-bg); } .tn-btn.light:hover:not([disabled]) { background: #fff; }
.tn-btn.ghost { background: transparent; border: 1px solid var(--tn-line); } .tn-btn.ghost:hover:not([disabled]) { border-color: #9C9C9C; background: var(--tn-card2); }
.tn-btn.danger { background: transparent; border: 1px solid rgba(224,138,126,.5); color: var(--tn-no); } .tn-btn.danger:hover:not([disabled]) { background: rgba(224,138,126,.08); }
.tn-btn svg { width: 18px; height: 18px; }
.tn-row { display: flex; gap: 8px; } .tn-row > * { flex: 1; }
.tn-fine { font-size: 12px; color: var(--tn-muted); text-align: center; line-height: 1.5; }
.tn-err { color: var(--tn-no); font-size: 13px; font-weight: 600; }

/* Formulario */
.tn-form { display: flex; flex-direction: column; gap: 10px; }
.tn-in { width: 100%; min-height: 50px; padding: 0 14px; background: var(--tn-card2); border: 1px solid var(--tn-line); border-radius: 2px; color: var(--tn-ink); font: inherit; font-size: 16px; outline: 0; transition: border-color .2s; }
.tn-in::placeholder { color: var(--tn-faint); } .tn-in:focus { border-color: var(--tn-ink); }
.tn-chk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tn-muted); line-height: 1.4; cursor: pointer; }
.tn-chk input { width: 18px; height: 18px; margin: 0; accent-color: #9C9C9C; flex-shrink: 0; }

/* Confirmado */
.tn-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 0 2px; }
.tn-ok .mk { width: 64px; height: 64px; border-radius: 999px; border: 1px solid var(--tn-ink); display: flex; align-items: center; justify-content: center; animation: tn-pop .5s var(--tn-ease) both; }
.tn-ok .mk svg { width: 28px; height: 28px; }
.tn-ok h3 { margin: 0; font-family: var(--tn-display); font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: 1; }
.tn-ok p { margin: 0; font-size: 14px; color: var(--tn-muted); line-height: 1.5; max-width: 34ch; }
@keyframes tn-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Mis turnos */
.tn-list { display: flex; flex-direction: column; gap: 8px; }
.tn-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; background: var(--tn-card2); border: 1px solid var(--tn-line); border-radius: 2px; transition: border-color .2s; }
.tn-item:hover { border-color: #9C9C9C; }
.tn-item .n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .tn-item .n strong { font-family: var(--tn-display); font-weight: 700; font-size: 15px; text-transform: uppercase; } .tn-item .n span { font-size: 12px; color: var(--tn-muted); }

/* Botón flotante "Mis turnos" (solo si reservaste desde este celular) */
.tn-fab { position: fixed; left: 16px; bottom: 16px; z-index: 2147482000; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: rgba(19,17,16,.92); border: 1px solid var(--tn-line); border-radius: 2px; color: var(--tn-ink); font: 600 13px/1 var(--tn-font); cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: border-color .2s; }
.tn-fab:hover { border-color: #9C9C9C; } .tn-fab[hidden] { display: none; }
.tn-fab svg { width: 16px; height: 16px; }
.tn-fab .c { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--tn-ink); color: var(--tn-bg); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }

.tn-toast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 2; padding: 9px 14px; background: var(--tn-ink); color: var(--tn-bg); font-size: 13px; font-weight: 600; animation: tn-fade .2s both; white-space: nowrap; }

@media (min-width: 720px) {
  .tn { align-items: center; padding: 24px; }
  .tn-box { max-width: 500px; max-height: min(820px, 92vh); border: 1px solid var(--tn-line); }
  .tn-head { padding: 22px 24px 16px; } .tn-body { padding: 22px 24px; } .tn-foot { padding: 16px 24px 22px; }
  .tn-head h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .tn *, .tn-bd, .tn-box { animation: none !important; transition: none !important; } }
