/* Estructura de las vidrieras de turnos (se carga después de base.css). Los colores y letras los
   pone el estilo.css de cada rubro con las mismas variables. */

/* ---------- Piezas chicas ---------- */
.vd-cara { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--superficie); }
.vd-avatar--todas { display: grid; place-items: center; background: var(--acento); color: var(--acento-texto); font-weight: 800; }

/* ---------- Inicio ---------- */
.vd-mio { display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 12px 14px; border-radius: var(--radio); background: var(--superficie); border: 1.5px solid var(--acento); animation: vd-entra .5s .2s cubic-bezier(.16, 1, .3, 1) both; }
.vd-mio-foto { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.vd-mio-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vd-mio-etiqueta { color: var(--acento-letra, var(--acento)); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.vd-mio-txt small { color: var(--suave); }
.vd-mio-ver { padding: .55rem 1rem; border-radius: 999px; background: var(--acento); color: var(--acento-texto); font-weight: 800; font-size: .85rem; }

.vd-equipo { margin-top: 26px; }
.vd-equipo-fila { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.vd-equipo-fila::-webkit-scrollbar { display: none; }
.vd-persona { flex: 1 0 104px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: var(--radio); background: var(--superficie); text-align: center; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.vd-persona:active { transform: scale(.96); }
.vd-persona-foto { width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--fondo), 0 0 0 5px var(--acento); }
.vd-persona small { color: var(--suave); font-size: .75rem; line-height: 1.2; }

.vd-turnos .vd-seccion { padding: 0 16px; margin-top: 22px; display: grid; gap: 12px; scroll-margin-top: 64px; }
.vd-servicio { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: 1fr auto; gap: 0 14px; padding: 10px; border-radius: var(--radio); background: var(--superficie); }
.vd-servicio-foto { grid-row: 1 / 3; width: 104px; height: 100%; min-height: 132px; object-fit: cover; border-radius: var(--radio-chico); cursor: pointer; }
.vd-servicio-cuerpo { min-width: 0; padding-top: 2px; }
.vd-servicio-nombre { margin: 0; font-size: 1.02rem; line-height: 1.2; }
.vd-servicio-etiqueta { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--acento) 16%, var(--superficie)); color: var(--acento-letra, var(--acento)); font-size: .68rem; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.vd-servicio-desc { margin: .25rem 0 .45rem; color: var(--suave); font-size: .85rem; line-height: 1.35; }
.vd-servicio-pie { display: flex; align-items: center; gap: 8px; }
.vd-servicio-dato { font-weight: 800; font-size: .88rem; font-variant-numeric: tabular-nums; }
.vd-servicio-caras { display: flex; margin-left: auto; }
.vd-servicio-caras .vd-cara + .vd-cara { margin-left: -7px; }
.vd-servicio-btn { grid-column: 2; justify-self: start; margin-top: 10px; padding: .55rem 1.1rem; border-radius: 999px; background: var(--acento); color: var(--acento-texto); font-weight: 800; font-size: .88rem; transition: transform .2s; }
.vd-servicio-btn:active { transform: scale(.95); }
.vd-sin-stock .vd-servicio-foto { filter: grayscale(1); opacity: .5; }
.vd-sin-stock .vd-servicio-btn { background: var(--superficie-2); color: var(--suave); }
.vd-pie-local { margin: 28px 16px 0; text-align: center; color: var(--suave); font-size: .82rem; }

/* ---------- Ficha de una profesional ---------- */
.vd-ficha { position: relative; padding-top: 70px; }
.vd-ficha-cab { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vd-ficha-foto { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--fondo), 0 0 0 7px var(--acento); animation: vd-aparece .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes vd-aparece { from { transform: scale(.7); opacity: 0; } }
.vd-ficha-nombre { margin: 14px 0 0; font-family: var(--titulos); font-size: 2rem; }
.vd-ficha-rol { margin: 0; color: var(--suave); }

/* ---------- Reservar ---------- */
.vd-reserva { position: relative; padding-bottom: 40px; }
.vd-reserva-cab { position: relative; overflow: clip; border-radius: 0 0 var(--radio) var(--radio); }
.vd-reserva-foto { width: 100%; height: 260px; object-fit: cover; border-radius: 0 0 var(--radio) var(--radio); animation: rt-foto-turnos 1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rt-foto-turnos { from { transform: scale(1.06); } }
.vd-reserva-txt { padding: 16px 16px 0; }
.vd-reserva-nombre { margin: 0; font-family: var(--titulos); font-size: 1.8rem; line-height: 1.05; }
.vd-reserva-dato { margin: .3rem 0 0; color: var(--suave); font-weight: 700; }
.vd-reserva-mover { margin: .6rem 0 0; padding: .6rem .8rem; border-radius: var(--radio-chico); background: color-mix(in srgb, var(--acento) 14%, var(--superficie)); font-size: .88rem; }
.vd-paso-reserva { padding: 20px 16px 0; }
.vd-paso-reserva h2 { margin: 0 0 10px; font-size: 1.05rem; }

.vd-quien { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; }
.vd-quien::-webkit-scrollbar { display: none; }
.vd-quien-btn { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; font-size: .82rem; font-weight: 700; text-align: center; line-height: 1.15; color: var(--suave); transition: color .2s; }
.vd-quien-foto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; font-size: 1.4rem; box-shadow: 0 0 0 3px var(--fondo), 0 0 0 4px var(--linea); transition: box-shadow .25s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.vd-quien-btn[aria-pressed="true"] { color: var(--texto); }
.vd-quien-btn[aria-pressed="true"] .vd-quien-foto { box-shadow: 0 0 0 3px var(--fondo), 0 0 0 6px var(--acento); transform: scale(1.06); }

.vd-dias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 6px; scroll-snap-type: x proximity; }
.vd-dias::-webkit-scrollbar { display: none; }
.vd-dia { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; width: 70px; padding: 10px 4px; border-radius: var(--radio-chico); background: var(--superficie); border: 1.5px solid var(--linea); transition: background .2s, border-color .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.vd-dia small { color: var(--suave); font-size: .75rem; text-transform: capitalize; }
.vd-dia strong { font-size: 1.4rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.vd-dia-libres { font-size: .66rem; font-weight: 800; color: var(--ok); white-space: nowrap; }
.vd-dia:disabled { opacity: .4; }
.vd-dia:disabled .vd-dia-libres { color: var(--suave); }
.vd-dia[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); transform: translateY(-3px); }
.vd-dia[aria-pressed="true"] small, .vd-dia[aria-pressed="true"] .vd-dia-libres { color: var(--acento-texto); }

.vd-horas-grupo h3 { margin: 6px 0 8px; color: var(--suave); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.vd-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.vd-hora { min-height: 46px; border-radius: var(--radio-chico); background: var(--superficie); border: 1.5px solid var(--linea); font-weight: 800; font-variant-numeric: tabular-nums; animation: vd-hora-entra .45s calc(var(--i) * 25ms) cubic-bezier(.16, 1, .3, 1) both; transition: background .2s, border-color .2s, color .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes vd-hora-entra { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.vd-hora[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); transform: scale(1.05); }

.vd-barra-reserva { position: fixed; z-index: 30; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(536px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: var(--radio); background: var(--superficie); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .55); border: 1px solid var(--linea); }
.vd-barra-reserva-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vd-barra-reserva-txt small { color: var(--suave); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-barra-reserva .vd-boton:disabled { background: var(--superficie-2); color: var(--suave); }
.vd-barra-reserva--lista { animation: vd-rebota .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes vd-rebota { 40% { transform: translateX(-50%) translateY(-6px); } }

/* ---------- Datos y confirmación ---------- */
.vd-datos-reserva { position: relative; padding: 70px 16px 0; }
.vd-datos-reserva .vd-checkout-titulo { margin-bottom: 14px; }
.vd-ticket { display: flex; gap: 12px; margin-bottom: 18px; padding: 10px; border-radius: var(--radio); background: var(--superficie); }
.vd-ticket-foto { width: 84px; height: 84px; border-radius: var(--radio-chico); object-fit: cover; flex: none; }
.vd-ticket-txt { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.vd-ticket-txt span { color: var(--suave); }
.vd-ticket-txt span:first-letter { text-transform: uppercase; }
.vd-ticket-hora { color: var(--texto) !important; font-weight: 700; }
.vd-ticket-precio { color: var(--texto) !important; font-weight: 800; }
.vd-pago { margin: 0; color: var(--suave); font-size: .85rem; text-align: center; }

.vd-listo { padding: 64px 18px 0; text-align: center; }
.vd-check { width: 96px; margin: 0 auto 14px; }
.vd-check svg { width: 100%; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.vd-check circle { stroke: var(--acento); stroke-dasharray: 152; stroke-dashoffset: 152; animation: vd-traza .7s cubic-bezier(.65, 0, .35, 1) forwards; }
.vd-check path { stroke: var(--acento); stroke-dasharray: 48; stroke-dashoffset: 48; animation: vd-traza .45s .55s cubic-bezier(.65, 0, .35, 1) forwards; }
.vd-check--no circle, .vd-check--no path { stroke: var(--suave); }
@keyframes vd-traza { to { stroke-dashoffset: 0; } }
.vd-listo-titulo { margin: 0; font-family: var(--titulos); font-size: 2rem; line-height: 1.05; animation: vd-entra .6s .5s cubic-bezier(.16, 1, .3, 1) both; }
.vd-listo-txt { margin: .4rem 0 18px; color: var(--suave); }
.vd-ticket--grande { text-align: left; align-items: center; animation: vd-entra .6s .7s cubic-bezier(.16, 1, .3, 1) both; }
.vd-ticket--grande .vd-ticket-foto { width: 96px; height: 112px; }
.vd-ticket-hora-grande { font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.vd-listo-acciones { display: grid; gap: 10px; }
.vd-listo-otras { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
.vd-link { padding: .4rem 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--suave); }
.vd-link--peligro { color: var(--alerta); }
.vd-listo-nota { margin: 14px auto 0; max-width: 34ch; color: var(--suave); font-size: .85rem; }
.vd-listo-volver { margin-top: 22px; }

/* ---------- Hoja que sube ---------- */
.vd-hoja-fondo { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / .45); animation: vd-funde .25s both; }
@keyframes vd-funde { from { opacity: 0; } }
.vd-hoja-fondo--sale { opacity: 0; transition: opacity .25s; }
.vd-hoja { width: min(560px, 100%); max-height: 88svh; overflow-y: auto; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--radio) var(--radio) 0 0; background: var(--fondo); color: var(--texto); animation: vd-hoja-sube .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vd-hoja-sube { from { transform: translateY(100%); } }
.vd-hoja--sale { transform: translateY(100%); transition: transform .25s ease-in; }
.vd-hoja-cab { position: sticky; top: -8px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px 10px; padding: 14px 16px 10px; background: var(--fondo); }
.vd-hoja-cab h2 { margin: 0; font-size: 1.1rem; }
.vd-hoja-cab h2:first-letter { text-transform: uppercase; }
.vd-hoja-cerrar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--superficie-2); font-weight: 800; }
.vd-form--hoja { gap: 12px; }
.vd-recordatorio { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.vd-recordatorio > div { flex: 1; display: flex; flex-direction: column; }
.vd-recordatorio small { color: var(--suave); font-size: .8rem; }
.vd-recordatorio--hecho .vd-accion { background: var(--ok); color: #fff; }

/* ---------- Agenda ---------- */
.vd-dia-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.vd-dia-flecha { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--superficie); font-size: 1.5rem; font-weight: 700; }
.vd-dia-titulo { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.vd-dia-titulo strong { font-size: 1.15rem; text-transform: capitalize; }
.vd-dia-titulo small { color: var(--suave); font-size: .8rem; }
.vd-filtro-prof { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.vd-filtro-prof::-webkit-scrollbar { display: none; }
.vd-filtro-prof .vd-periodo { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.vd-recordar { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radio-chico); background: color-mix(in srgb, var(--acento) 13%, var(--superficie)); text-align: left; font-weight: 700; }
.vd-recordar-icono { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--acento); color: var(--acento-texto); }
.vd-recordar > span:nth-child(2) { flex: 1; }
.vd-recordar-flecha { font-size: 1.4rem; color: var(--suave); }

.vd-linea-tiempo { display: grid; gap: 8px; }
.vd-turno { display: grid; grid-template-columns: 52px 1fr; gap: 10px; min-height: calc(var(--alto) * 30px + 40px); padding: 12px; border-radius: var(--radio-chico); background: var(--superficie); border-left: 4px solid var(--acento); }
.vd-turno--vino { border-left-color: var(--ok); }
.vd-turno--falto { border-left-color: var(--alerta); opacity: .75; }
.vd-turno--ahora { box-shadow: 0 0 0 2px var(--acento); }
.vd-turno--nuevo { animation: vd-nuevo 1.2s cubic-bezier(.16, 1, .3, 1); }
@keyframes vd-nuevo { 0% { transform: scale(.96); box-shadow: 0 0 0 0 var(--acento); } 40% { box-shadow: 0 0 0 8px transparent; } }
.vd-turno-hora { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.vd-turno-hora strong { font-size: 1.05rem; }
.vd-turno-hora small { color: var(--suave); font-size: .78rem; }
.vd-turno-cuerpo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vd-turno-arriba { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.vd-turno-cliente { font-size: 1rem; }
.vd-turno-chip { padding: .12rem .55rem; border-radius: 999px; background: var(--superficie-2); color: var(--suave); font-size: .72rem; font-weight: 800; }
.vd-turno-chip--nuevo, .vd-turno-chip--ahora { background: var(--acento); color: var(--acento-texto); }
.vd-turno-chip--vino { background: color-mix(in srgb, var(--ok) 18%, var(--superficie)); color: var(--ok); }
.vd-turno-chip--falto { background: color-mix(in srgb, var(--alerta) 16%, var(--superficie)); color: var(--alerta); }
.vd-turno-det { display: flex; align-items: center; gap: 8px; color: var(--suave); font-size: .86rem; }
.vd-turno-det span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-turno-precio { color: var(--texto); font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-turno-acciones, .vd-motivos { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-motivos .vd-pill { min-height: 38px; min-width: 0; font-size: .82rem; animation: vd-hora-entra .3s both; }
.vd-accion { display: inline-flex; align-items: center; min-height: 36px; }
.vd-accion--ok { background: var(--ok); color: #fff; }
.vd-accion--no { background: color-mix(in srgb, var(--alerta) 16%, var(--superficie)); color: var(--alerta); }
.vd-accion--suave { background: none; border: 1.5px solid var(--linea); }

.vd-hueco { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: var(--radio-chico); border: 1.5px dashed var(--linea); color: var(--suave); text-align: left; font-size: .88rem; transition: border-color .2s, background .2s; }
.vd-hueco:active { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 8%, transparent); }
.vd-hueco-hora { font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-hueco-mas { color: var(--acento-letra, var(--acento)); font-weight: 800; }
.vd-bloqueo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px; border-radius: var(--radio-chico); background: repeating-linear-gradient(135deg, var(--superficie) 0 10px, var(--superficie-2) 10px 20px); font-size: .88rem; }
.vd-bloqueo span { flex: 1; color: var(--suave); }
.vd-ahora { position: relative; display: flex; align-items: center; height: 18px; }
.vd-ahora::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--alerta); }
.vd-ahora span { position: relative; padding: .1rem .55rem; border-radius: 999px; background: var(--alerta); color: #fff; font-size: .72rem; font-weight: 800; }
.vd-fab { position: fixed; z-index: 30; right: max(16px, calc(50% - 560px)); bottom: calc(18px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--acento); color: var(--acento-texto); font-weight: 800; box-shadow: var(--sombra); animation: vd-aparece .5s .2s cubic-bezier(.34, 1.56, .64, 1) both; }
.vd-fab-mas { font-size: 1.6rem; line-height: 1; }

/* ---------- Semana ---------- */
.vd-semana { display: grid; gap: 10px; }
.vd-semana-dia { display: grid; gap: 8px; padding: 14px; border-radius: var(--radio-chico); background: var(--superficie); text-align: left; }
.vd-semana-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vd-semana-cab strong { text-transform: capitalize; }
.vd-semana-cab span { color: var(--suave); font-size: .82rem; }
.vd-ocupa { display: grid; grid-template-columns: 24px 3.6rem 1fr 2.6rem; align-items: center; gap: 8px; font-size: .85rem; }
.vd-ocupa-barra { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--acento) calc(var(--v) * 100%), var(--superficie-2) 0); }
.vd-ocupa-n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Clientas y local ---------- */
.vd-cliente--perdida .vd-cliente-pos { background: var(--acento); color: var(--acento-texto); }
.vd-cliente-alerta { color: var(--acento-letra, var(--acento)) !important; font-weight: 800; }
.vd-bloquear { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.vd-bloquear > * { min-width: 0; width: 100%; }
.vd-bloquear select, .vd-bloquear input { min-height: 46px; padding: 0 .6rem; border-radius: var(--radio-chico); border: 1.5px solid var(--linea); background: var(--fondo); font-size: 16px; }
.vd-bloquear input { grid-column: span 2; }
.vd-bloquear .vd-boton { grid-column: 1 / -1; }
.vd-dueno-local .vd-bloqueo { background: var(--fondo); }

@media (min-width: 900px) {
  .vd-dueno--turnos .vd-agenda { max-width: 720px; }
  .vd-semana { grid-template-columns: repeat(2, 1fr); }
}
