/* ==========================================================================
   AutoDetailing · Citas en línea · variante «V7» (tablero del Estudio AD).
   Se carga por omisión (filtro autodetailing_citas_v7, true); ?v7=0 la apaga y ?v7=1 la prende. Todo vive bajo .cita-v7 (body y raíz),
   encima de citas.css, y usa sus mismos tokens --c-*. Solo se anima transform y opacity.
   ========================================================================== */

.cita-v7 { --v7-side: 320px; --v7-h: clamp(520px, calc(100dvh - 104px), 800px); --v7-car: #C6CAD0; }

/* ---------- header: flecha y marca ---------- */
.cita-v7 .cita-top { padding: 12px 16px; }
.cita-v7 .cita-rc.v7-back { width: 44px; height: 44px; }
.cita-v7 .cita-rc.v7-back::after { inset: 0; }
.cita-v7 .cita-wm { font-size: 13px; font-weight: 800; font-stretch: 100%; letter-spacing: .14em; }

/* ---------- línea de 4 segmentos ---------- */
.v7-seg { display: flex; gap: 4px; }
.v7-seg i { flex: 1; height: 3px; border-radius: 3px; background: #D9DBDF; }
.v7-seg i.on { background: var(--c-ink); }
.v7-seg--m { margin: 4px 0 18px; }
.v7-seg--tk { padding: 0 22px; }
.v7-seg--tk i { background: #2A2E35; }
.v7-seg--tk i.on { background: var(--c-orl); }
.cita-v7 .is-pass .v7-seg--tk i { background: #2A2E35; }
.cita-v7 .is-pass .v7-seg--tk i.on { background: var(--c-orl); }

/* ---------- pregunta del paso ---------- */
.cita-v7 .cita-h1 { margin: 0; font-size: 26px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; font-stretch: 112%; }
.cita-v7 .cita-lede { margin: 8px 0 0; font-size: 15px; }
.cita-v7 .cita-view__in { margin-top: 18px; }
.cita-v7 .cita-shell { padding-top: 0; }

/* ---------- paso 1: buscador, populares, vehículo y silueta ---------- */
.cita-v7 .cita-srch { height: 56px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cita-v7 .cita-srch:focus-within { box-shadow: inset 0 0 0 2px var(--c-ink); outline: 2px solid var(--c-ink); outline-offset: 2px; }
.cita-v7 .cita-srch input { font-size: 17px; }
.cita-v7 .cita-res { border-radius: 18px; }
.v7-pop { margin-top: 20px; }
.v7-pop__k { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--c-mute); }
.v7-pop__l { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 124px; gap: 12px; }
.v7-bp { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 6px; border-radius: 16px; background: #fff; box-shadow: var(--c-ring); font-size: 14px; font-weight: 600; line-height: 1.15; text-align: center; }
.v7-bp > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v7-bp .cita-logo { width: 56px; height: 56px; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.v7-bp .cita-logo img { max-width: 100%; max-height: 100%; filter: grayscale(1) contrast(1.35) brightness(.55); }
.v7-bp .cita-logo > span { width: 56px; height: 56px; border-radius: 50%; font-size: 17px; }
@media (hover: hover) { .v7-bp:hover { box-shadow: inset 0 0 0 1px #B9BCC2; } }
.v7-bp:focus-visible, .v7-pop__az:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.v7-pop__az { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-weight: 600; }
.v7-marcas .cita-sheet__body { display: flex; flex-direction: column; overflow: hidden; }
.v7-azw { display: flex; flex: 1; min-height: 0; margin-right: -20px; }
.v7-az { position: relative; flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.v7-az__l { position: sticky; top: 0; z-index: 1; margin: 0; padding: 10px 2px 4px; background: #fff; font-size: 12px; font-weight: 700; color: var(--c-mute); }
.v7-az__r { min-height: 60px; }
.v7-az__r .cita-logo { width: 44px; height: 44px; }
.v7-az__r .cita-logo > span { font-size: 14px; }
.v7-azi { flex: none; display: flex; flex-direction: column; justify-content: center; width: 44px; padding: 4px 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.v7-azi__b { flex: 1 1 0; min-height: 18px; max-height: 44px; display: grid; place-items: center; width: 44px; padding: 0; border: 0; background: none; color: var(--c-mute); font: 700 11px/1 inherit; font-family: inherit; cursor: pointer; }
.v7-azi__b span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.v7-azi__b.is-on { color: #fff; }
.v7-azi__b.is-on span { background: var(--c-ink); }
.v7-azi__b:focus-visible { outline: 2px solid var(--c-ink); outline-offset: -4px; border-radius: 8px; }
@media (hover: hover) { .v7-azi__b:not(.is-on):hover { color: var(--c-ink); } }
.v7-az__r .cita-logo img { filter: grayscale(1) contrast(1.35) brightness(.55); }
.cita-v7 .cita-foot-links { margin: 8px 0 0; }
/* Distribuidor oficial (solo estado vacío del paso 1) */
.v7-vxn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 0; font-size: 13.5px; color: var(--c-mute); }
.v7-vxn img { display: block; height: 16px; width: auto; }

.v7-chosen { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 10px 0 12px; border-radius: 999px; background: #fff; box-shadow: var(--c-ring); }
.v7-chosen > b { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v7-chosen .cita-logo { width: 30px; height: 30px; }
.v7-chosen__x { position: relative; min-height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 600; color: var(--c-mute); }
.v7-chosen__x:hover { color: var(--c-ink); }
.v7-car { margin-top: 14px; padding: 12px 14px 16px; border-radius: 22px; background: #fff; box-shadow: var(--c-ring); }
/* Silueta: base gris (webp) + carrocería teñida con --v7-car (máscara PNG, multiply). Vidrios, llantas y sombra no se tiñen. */
.v7-sil { position: relative; isolation: isolate; width: min(100%, var(--v7-mw, 520px), calc(28dvh * var(--v7-ar, 3))); aspect-ratio: var(--v7-ar, 3); margin: 0 auto; }
.v7-sil > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Cambio de vehículo: la nueva entra (is-in, opacity 0→1) sobre la anterior, que sale (--sale, opacity 1→0); JS la retira al terminar. */
.v7-sil.is-in > img, .v7-sil.is-in > .v7-sil__t { animation: v7-sil-in .2s ease both; }
.v7-sil--sale { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0 auto; pointer-events: none; animation: v7-sil-out .2s ease both; }
@keyframes v7-sil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes v7-sil-out { from { opacity: 1; } to { opacity: 0; } }
.v7-sil__t { position: absolute; inset: 0; background-color: var(--v7-car); transition: background-color .25s ease; mix-blend-mode: multiply; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
/* Sin silueta (hatchback, moto, SUV chica…): logo grande y modelo en tipografía. */
.v7-sil.is-logo { display: flex; align-items: center; justify-content: center; gap: 16px; width: auto; aspect-ratio: auto; min-height: 112px; }
.v7-sil.is-logo .cita-logo { width: 72px; height: 72px; }
.v7-sil.is-logo .cita-logo img { filter: grayscale(1) contrast(1.35) brightness(.55); }
.v7-sil.is-logo .cita-logo > span { font-size: 22px; }
.v7-sil.is-logo > b { min-width: 0; font-size: 22px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.v7-car__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.v7-car__hd b { font-size: 15px; }
.v7-car__n { font-size: 14px; color: var(--c-mute); text-align: right; }
.v7-sws { display: flex; flex-wrap: wrap; gap: 0 2px; margin-top: 4px; margin-left: -7px; }
.v7-sw { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.v7-sw i { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11, 12, 14, .22), 0 0 0 2px transparent, 0 0 0 4px transparent; transition: box-shadow .2s ease; }
.v7-sw.is-on i { box-shadow: inset 0 0 0 1px rgba(11, 12, 14, .22), 0 0 0 2px #fff, 0 0 0 4px var(--c-ink); }
.v7-sw.is-otro { width: auto; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 12, 14, .22); transition: box-shadow .2s ease; font-size: 13px; font-weight: 700; }
.v7-sw.is-otro.is-on { box-shadow: inset 0 0 0 2px var(--c-ink); }
.v7-sw:focus-visible, .v7-chosen__x:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
/* Nombre del color al pasar el cursor o enfocar con teclado (en táctil lo dice el rótulo «Color · nombre» de arriba). */
.v7-sw[data-n]::after { content: attr(data-n); position: absolute; left: 50%; bottom: calc(100% - 2px); z-index: 3; padding: 4px 8px; border-radius: 8px; background: var(--c-ink); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; transform: translateX(-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility .15s ease; }
.v7-sw[data-n]:focus-visible::after { opacity: 1; visibility: visible; }
@media (hover: hover) { .v7-sw[data-n]:hover::after { opacity: 1; visibility: visible; } }
.v7-plate .cita-inp { min-height: 48px; }
.v7-plate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.v7-plate.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v7-plate.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .v7-plate.is-2, .v7-plate.is-3 { grid-template-columns: minmax(0, 1fr); } }
.v7-plate .is-placa, .v7-plate [data-campo="anio"] { font-variant-numeric: tabular-nums; }
.v7-plate .opt { font-weight: 400; }
/* Solo placa: etiqueta a la izquierda y campo a la derecha, con filete arriba (tablero V8). */
.v7-plate.is-1 { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.v7-plate.is-1 .cita-field { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
.v7-plate.is-1 .cita-field > label { margin: 0; font-size: 14px; font-weight: 700; color: var(--c-ink); }
.v7-plate.is-1 .cita-inp { width: min(210px, 56%); }


/* ---------- paso 2: servicio ---------- */
.cita-v7 .cita-svcs { gap: 10px; margin-top: 14px; }
.cita-v7 .v7-promo + .cita-seg, .cita-v7 .v7-promo + .cita-svcs { margin-top: 14px; }
.cita-v7 .cita-svc { border-radius: 18px; }
.cita-v7 .cita-svc.is-on { box-shadow: inset 0 0 0 2px var(--c-ink); }
.cita-v7 .cita-svc__main { gap: 14px; padding: 14px 16px; }
.cita-v7 .cita-svc__n strong { font-size: 17px; font-weight: 700; }
.cita-v7 .cita-svc__p { font-size: 22px; font-weight: 700; }
.cita-v7 .v7-prc { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cita-v7 .v7-prc small { font-size: 11.5px; font-weight: 400; color: var(--c-mute); line-height: 1.1; }
.cita-v7 .cita-dot { width: 24px; height: 24px; }
.cita-v7 .cita-svc__ft { padding-left: 16px; padding-right: 16px; }
.cita-v7 .cita-exbtn { background: none; box-shadow: none; padding-left: 0; text-decoration: underline; text-underline-offset: 3px; }
.cita-v7 .cita-quote { border-radius: 18px; }
/* Promoción (V8): banner oscuro, insignia, precio tachado */
.v7-promo { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--c-ink); color: #fff; font-size: 14px; line-height: 1.35; }
.v7-promo__b, .cita-v7 .cita-pill.is-promo { flex: none; height: auto; padding: 2px 8px; border-radius: 99px; background: var(--c-acc); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.v7-promo__t { flex: 1; min-width: 0; }
.v7-promo__t span { color: #BCC2C9; }
.cita-v7 .v7-prc .cita-svc__was { font-size: 13px; font-weight: 400; color: #8B929B; }

/* ---------- paso 3: día y hora ---------- */
.cita-v7 .cita-days { gap: 8px; }
.cita-v7 .cita-day { height: 64px; border-radius: 14px; }
.cita-v7 .cita-day.is-on { background: var(--c-ink); color: #fff; }
.cita-v7 .cita-day.is-on small { color: #fff; opacity: .75; }
.cita-v7 .cita-slots { gap: 8px; margin-top: 10px; }
.cita-v7 .cita-slot { height: 46px; border-radius: 12px; font-size: 14.5px; }
.cita-v7 .cita-slot.is-on { background: var(--c-ink); color: #fff; box-shadow: none; }
.cita-v7 .cita-slot.is-on .cita-slot__d { color: #FFB48A; }
.cita-v7 .cita-asap { border-radius: 12px; margin-top: 10px; }
.cita-v7 .cita-asap.is-on { box-shadow: inset 0 0 0 1.5px var(--c-ink); }

/* ---------- paso 4: confirmar ---------- */
.v7-sum { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: var(--c-ring); }
.v7-sum__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v7-sum__t b { font-size: 16px; }
.v7-sum__t small { margin-top: 2px; font-size: 13px; color: var(--c-mute); }
.v7-sum__p { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cita-v7 .cita-popts { grid-template-columns: 1fr; margin-top: 0; }
.cita-v7 .cita-popt { border-radius: 18px; min-height: 60px; padding: 14px 16px; }
.cita-v7 .cita-popt.is-on { box-shadow: inset 0 0 0 2px var(--c-ink); }
.cita-v7 .cita-pay { border-radius: 18px; }
.cita-v7 .cita-id { border-radius: 18px; }
.cita-v7 .cita-id.is-ok .cita-id__ed { min-height: 44px; }

/* ---------- ticket oscuro (sin muescas) ---------- */
.v7-tk { display: flex; flex-direction: column; height: 100%; min-height: 0; box-sizing: border-box; border-radius: 22px; background: var(--c-ink); color: #F2F3F5; overflow: hidden; }
.v7-tk :focus-visible { outline-color: #fff; }
.v7-tk__hd { flex: none; padding: 18px 22px 14px; }
.v7-who { display: flex; align-items: center; gap: 10px; }
.v7-who__b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; text-align: left; }
.v7-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--c-ink); font-weight: 800; }
.v7-who__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v7-who__t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v7-who__t small { font-size: 12.5px; color: #BCC2C9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Zonas: arriba fija (cliente, progreso, vehículo, servicio y promoción), scroll solo en la lista de extras, pie fijo (fecha, pago, total y botón). */
.v7-tk__top { flex: none; padding: 6px 22px 0; }
.v7-tk__top .v7-ln:last-child, .v7-tk__fl .v7-ln:last-child { border-bottom: 0; }
.v7-tk__xh { flex: none; margin: 0; padding: 10px 22px 4px; font-size: 12px; font-weight: 600; color: #BCC2C9; }
.v7-tk__xs { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 6px; scrollbar-width: thin; scrollbar-color: #3A3F47 transparent; }
.v7-tk__xs::-webkit-scrollbar { width: 6px; }
.v7-tk__xs::-webkit-scrollbar-thumb { border-radius: 6px; background: #3A3F47; }
.v7-tk__xs:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.v7-ln { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #1D2127; }
.v7-ln__l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v7-ln__k { font-size: 12px; color: #BCC2C9; }
.v7-ln__v { margin-top: 1px; font-size: 14.5px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.v7-ln__v.is-em { font-weight: 500; color: #8B929B; }
.v7-col { color: #D6DAE0; font-weight: 500; }
.v7-ln__s { margin-top: 1px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: #BCC2C9; }
/* Miniatura del auto en «Cita confirmada»: 96×40, sin borde ni recortes; se apoya en un fondo claro para que se lea sobre el panel oscuro. */
.v8-mini { flex: none; display: grid; place-items: center; align-self: center; width: 96px; height: 40px; border-radius: 10px; background: #fff; }
.v8-mini .v7-sil { width: min(92px, calc(36px * var(--v7-ar, 3))); margin: 0; }
.v8-mini.is-logo .cita-logo { width: 32px; height: 32px; }
.v7-ln__r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.v7-pr { font-size: 14.5px; font-variant-numeric: tabular-nums; color: #fff; }
.v7-ch { position: relative; flex: none; padding: 5px 10px; border-radius: 99px; background: #1F2329; color: #FFB48A; font-size: 12px; font-weight: 600; }
.v7-ch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.v7-xl { margin: 0; padding: 0; list-style: none; }
.v7-xl li { display: flex; align-items: center; gap: 8px; margin-left: 2px; padding: 6px 0 6px 10px; border-left: 2px solid #2A2E35; font-size: 13.5px; }
.v7-xl li > span { flex: 1; min-width: 0; color: #fff; font-weight: 600; }
.v7-xl li.is-inc > span { font-weight: 400; color: #BCC2C9; }
.v7-xl li b { font-variant-numeric: tabular-nums; }
.v7-x { position: relative; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #1F2329; color: #BCC2C9; }
.v7-x::after { content: ""; position: absolute; inset: -10px; }
.v7-hold { display: block; color: #FFB48A; }
.v7-hold.is-late { color: #FF8A8A; }
.v7-hold b { font-variant-numeric: tabular-nums; }
.v7-pr.is-ok { color: #7FD6A0; }
.v7-tk__ft { flex: none; padding: 0 22px 18px; border-top: 1px solid #1D2127; }
.v7-tk__tt { padding-top: 4px; }
.v7-tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.v7-tot span { font-size: 12px; color: #BCC2C9; }
.v7-tot b { font-size: 24px; font-variant-numeric: tabular-nums; }
.v7-need { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #1F2329; color: #FFB48A; font-size: 13px; font-weight: 600; line-height: 1.35; }
.v7-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border-radius: 999px; background: var(--c-acc); color: #fff; font-size: 14.5px; font-weight: 700; text-align: center; }
.v7-go:hover { opacity: .92; }
.v7-go.is-off { background: #2A2E35; color: #9AA1AA; }
.v7-go[aria-busy="true"] { opacity: .7; pointer-events: none; }
.v7-help { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: #BCC2C9; text-decoration: none; }
.v7-help:hover { color: #fff; }

/* hoja del ticket (celular y tableta): encabezado de la hoja fijo, extras con scroll y pie fijo */
.cita-v7 .cita-sheet.is-pass { height: min(720px, 92vh); height: min(720px, 92dvh); }
.cita-v7 .cita-sheet.is-pass .cita-sheet__body { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.cita-v7 .cita-sheet.is-pass .v7-tk { flex: 1 1 auto; min-height: 0; height: auto; border-radius: 0; background: transparent; }
.cita-v7 .is-pass .v7-tk__hd { padding-top: 6px; }
.cita-v7 .is-pass .v7-tk__ft { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ---------- barra inferior (celular y tableta): flotante y oscura ---------- */
.cita-v7 .cita-bar { padding: 0 8px calc(8px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.cita-v7 .cita-bar__in { max-width: 640px; padding: 12px 14px; border-radius: 20px; gap: 10px; }
.cita-v7 .cita-bar__txt b { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cita-v7 .cita-bar .cita-cta { height: 44px; padding: 0 20px; }
.v7-bar__av { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--c-ink); font-weight: 800; }
.cita-v7 .cita-toast-wrap { bottom: calc(96px + env(safe-area-inset-bottom)); }
.cita-v7 .cita:not(.has-bar) .cita-toast-wrap { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- tableta (768–1099): una columna centrada ---------- */
@media (min-width: 768px) and (max-width: 1099.98px) {
	.cita-v7 .cita-top { padding: 14px 24px; }
	.cita-v7 .cita-shell { max-width: 680px; padding-left: 24px; padding-right: 24px; }
	.cita-v7 .cita-h1 { font-size: 32px; }
	.cita-v7 .cita-view__in { margin-top: 24px; }
	.v7-seg--m { margin-bottom: 24px; }
}

/* ---------- escritorio (1100+): pregunta a la izquierda, ticket a la derecha ---------- */
.cita-v7 .cita-id.is-ok { display: flex; }
@media (min-width: 1100px) {
	.cita-v7 .cita-top { padding: 16px 40px; }
	.cita-v7 .cita-shell, .cita-v7.cita .cita-shell { max-width: 1280px; padding: 8px 40px 16px; grid-template-columns: minmax(0, 720px) var(--v7-side); gap: 48px; justify-content: center; align-items: start; }
	.cita-v7 .cita.is-done .cita-shell, .cita-v7.cita.is-done .cita-shell { grid-template-columns: minmax(0, 640px); }
	.cita.cita-v7[data-paso] .cita-main, .cita-v7 .cita-main { display: flex; flex-direction: column; justify-content: center; min-height: var(--v7-h); }
	.cita-v7 .cita-side, .admin-bar.cita-v7 .cita-side { width: var(--v7-side); height: var(--v7-h); filter: none; top: 16px; }
	.cita-v7 .cita-side .v7-tk { flex: 1 1 auto; }
	.v7-seg--m { display: none; }
	.cita-v7 .cita-h1 { font-size: 38px; }
	.cita-v7 .cita-lede { margin-top: 8px; }
	.cita-v7 .cita-view__in { margin-top: 24px; }
	.cita-v7 .cita-view { max-height: calc(var(--v7-h) - 130px); overflow-y: auto; overscroll-behavior: contain; margin: -4px -8px; padding: 4px 8px; scrollbar-width: thin; }
	.cita-v7 .cita-srch { height: 60px; }
	.cita-v7 .cita-id.is-ok { display: none; }
	.cita-v7 .cita-popts { grid-template-columns: 1fr 1fr; }
	.cita-v7 .cita-svc__main { padding: 16px 18px; }
	.cita-v7 .cita-bar { display: none; }
}
@media (min-width: 1280px) {
	.cita-v7 { --v7-side: 360px; }
}
/* pantallas bajas (1280×720): el ticket y el contenido se aprietan sin crear scroll */
@media (min-width: 1100px) and (max-height: 760px) {
	.cita-v7 .cita-top { padding-top: 10px; padding-bottom: 10px; }
	.cita-v7 .cita-h1 { font-size: 34px; }
	.cita-v7 .cita-view__in { margin-top: 18px; }
	.cita-v7 .cita-svc__main { padding: 12px 16px; }
	.cita-v7 .cita-svcs { gap: 8px; }
	.cita-v7 .cita-day { height: 58px; }
	.cita-v7 .cita-slot { height: 42px; }
	.v7-ln { padding: 9px 0; }
	.v7-tk__hd { padding-top: 14px; padding-bottom: 10px; }
	.v7-tk__ft { padding-top: 10px; padding-bottom: 14px; }
	.v7-car { padding-top: 8px; padding-bottom: 10px; }
}

@media (max-width: 520px) {
	.cita-v7 .cita-srch input { font-size: 16px; }
	.v7-bp { padding-left: 4px; padding-right: 4px; }
	.v7-pop__l { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.v7-car { padding: 10px 12px 14px; }
	.cita-v7 .cita-svc__n strong { font-size: 16px; }
	.cita-v7 .cita-svc__p { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.cita-v7 *, .cita-v7 *::before, .cita-v7 *::after { transition: none !important; animation: none !important; }
}

/* ---------- Confirmar (visitante): Nombre y Correo en una fila ---------- */
.cita-v7 .cita-form.is-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 10px; }
@media (max-width: 520px) { .cita-v7 .cita-form.is-tight { grid-template-columns: 1fr; } }
@media (min-width: 1100px) {
	/* El ticket de la derecha ya muestra servicio, vehículo, fecha y total: la tarjeta resumen sobra en escritorio. */
	.cita-v7 .v7-sum { display: none; }
	/* WhatsApp y «Recibir el código por» comparten fila; el resto de bloques ocupa el ancho completo. */
	.cita-v7 .cita-otp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 10px; }
	.cita-v7 .cita-otp > * { grid-column: 1 / -1; margin-top: 0; }
	.cita-v7 .cita-otp > .cita-field:has(#cita-tel) { grid-column: 1; }
	.cita-v7 .cita-otp > .cita-field:has(.is-canal) { grid-column: 2; }
	.cita-v7 .cita-otp .cita-inp.is-big { min-height: 48px; }
	.cita-v7 .cita-otp .cita-ghost.is-block { height: 44px; }
	.cita-v7 .cita-otp .cita-hint { margin: 0; }
	.cita-v7 .cita-promo { margin-top: 8px; }
	.cita-v7 .cita-agree { margin-top: 8px; }
	.cita-v7 .cita-agree__links { margin-top: 0; }
	.cita-v7 .cita-pay { margin-top: 10px; padding: 10px 14px; }
}

/* ---------- formulario de vehículo (Mi cuenta y «Crea tu primer vehículo»): el selector del paso 1 en un modal ---------- */
.cita-v7 .cita-crear.is-v7 { margin-top: 0; padding: 0; background: none; box-shadow: none; gap: 12px; }
.cita-v7 .v7-vvf { gap: 0; }
.cita-v7 .cita-crear.is-v7 .cita-vvf .cita-srch, .cita-v7 .v7-vv .cita-vvf .cita-srch { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cita-v7 .cita-crear.is-v7 .cita-vvf .cita-srch:focus-within, .cita-v7 .v7-vv .cita-vvf .cita-srch:focus-within { box-shadow: inset 0 0 0 2px var(--c-ink); outline: 2px solid var(--c-ink); outline-offset: 2px; }
.cita-v7 .cita-crear.is-v7 .cita-vvf .cita-srch { height: 60px; padding: 0 22px; border-radius: 999px; }
.cita-v7 .v7-vv .cita-sheet__head h2 { font-size: 20px; }
.cita-v7 .v7-vv .cita-sheet__body { padding: 4px 16px 16px; }
.cita-v7 .v7-vv .cita-sheet__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.cita-v7 .v7-vv .cita-cta:not(.is-danger) { background: var(--c-acc); }
.cita-v7 .v7-vv .cita-srch { height: 56px; margin-top: 8px; }
.cita-v7 .v7-vv .cita-srch input { font-size: 16px; }
.cita-v7 .v7-vv .v7-pop { margin-top: 18px; }
.cita-v7 .v7-vv .v7-chosen { margin-top: 8px; min-height: 52px; box-shadow: var(--c-ring); }
.cita-v7 .v7-vv .v7-car { margin-top: 10px; }
@media (min-width: 768px) {
	.cita-v7 .cita-sheet.v7-vv { width: min(720px, calc(100vw - 48px)); border-radius: 24px; }
	.cita-v7 .v7-vv .cita-sheet__body { padding: 4px 28px 16px; }
	.cita-v7 .v7-vv .cita-sheet__head { padding: 12px 20px 8px 28px; }
	.cita-v7 .v7-vv .cita-sheet__foot { padding: 12px 28px 20px; }
}

/* ---------- V8 · cita confirmada ---------- */
.cita-v7 .v8-done { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; width: 100%; padding-top: 4px; }
.v8-done__main { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cita-v7 .v8-done .cita-h1 { margin-top: 16px; font-size: 32px; line-height: 1.05; }
.cita-v7 .v8-done__lede { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--c-ink2); }
.cita-v7 .v8-done__lede b { color: var(--c-ink); }
.v8-done__mail { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--c-mute); overflow-wrap: anywhere; }
.v8-done__cal { width: 100%; margin-top: 22px; }
.v8-done__k { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--c-mute); }
.v8-cal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v8-calo { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--c-ring); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--c-ink); text-align: left; text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.v8-calo img { flex: none; box-sizing: content-box; width: 24px; height: 24px; padding: 4px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #E3E5E8; }
.v8-calo:focus-visible, .v8-ics:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.v8-ics { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; padding: 0 4px; font-size: 13px; font-weight: 500; color: var(--c-mute, #5E646C); text-decoration: underline; text-underline-offset: 3px; }
.v8-calo:active, .v8-btn:active, .v8-go:active { transform: scale(.98); }
@media (hover: hover) { .v8-calo:hover { box-shadow: inset 0 0 0 1px #B9BCC2; } }
.v8-done__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.v8-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-line2); font: inherit; font-size: 14px; font-weight: 600; color: var(--c-ink); text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.v8-club { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; box-sizing: border-box; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--c-ring); }
.v8-club__t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.v8-club__t b { font-size: 14.5px; }
.v8-club__t small { font-size: 12.5px; line-height: 1.4; color: var(--c-mute); }
.v8-club .cita-club2__dots { flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.v8-club.is-listo { background: #FFF1EA; box-shadow: inset 0 0 0 1px rgba(207, 66, 8, .3); }
.v8-card .v8-club { margin-top: 12px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.v8-acct__main > .v8-club { margin-top: 12px; }
.v8-done__side { min-width: 0; }
.v8-pass { box-sizing: border-box; padding: 22px; border-radius: 22px; background: var(--c-ink); color: #fff; }
.v8-pass :focus-visible { outline-color: #fff; }
.v8-pass__code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1.5px dashed #3A3F47; }
.v8-pass__code span { font-size: 12px; color: #BCC2C9; }
.v8-pass__code b { font-size: 24px; font-weight: 800; font-stretch: 125%; letter-spacing: .14em; }
.v8-pass__ln { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1D2127; font-size: 14.5px; }
.v8-pass__ln .k { display: block; font-size: 12px; font-weight: 500; color: #BCC2C9; }
.v8-pass__ln b { font-weight: 700; overflow-wrap: anywhere; }
.v8-pass__ln.is-disc { color: #8FD6AE; }
.v8-pass__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #FFB48A; cursor: pointer; }
.v8-pass__ex { margin: 0 0 4px; padding: 0; list-style: none; }
.v8-pass__ex li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 7px 10px; border-left: 2px solid #2A2E35; font-size: 13.5px; }
.v8-pass__ex li span { flex: 1; min-width: 0; }
.v8-pass__acts { display: flex; gap: 8px; margin-top: 16px; }
.v8-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #1F2329; font: inherit; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.v8-go.is-light { background: #fff; color: var(--c-ink); }
.v8-done__nota { margin: 12px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--c-mute); }
@media (min-width: 1100px) {
	.cita-v7.cita.is-done .cita-shell { max-width: 1160px; grid-template-columns: minmax(0, 1fr); }
	.cita-v7.cita.is-done .cita-main { min-height: 0; justify-content: flex-start; }
	.cita-v7.cita.is-done .cita-view { max-height: none; overflow: visible; margin: 0; padding: 0; }
	.cita-v7 .v8-done { grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; }
	.cita-v7 .v8-done .cita-h1 { font-size: 44px; }
}
@media (max-width: 359px) {
	.v8-cal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
	.v8-pass__acts { flex-direction: column; }
}

/* ---------- V8 · Mi cuenta ---------- */
.v8-acct { display: block; }
.v8-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 12px; padding: 2px 20px; scrollbar-width: none; }
.v8-nav::-webkit-scrollbar { display: none; }
.v8-nav .cita-pill-b { flex: none; }
.v8-acct__t { margin: 4px 0 14px; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-stretch: 112%; }
.v8-next { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 22px; background: var(--c-ink); color: #fff; }
.v8-next :focus-visible { outline-color: #fff; }
.v8-next__k { font-size: 12px; color: #BCC2C9; }
.v8-next__t { font-size: 21px; line-height: 1.2; }
.v8-next__s { font-size: 14px; line-height: 1.4; color: #D6DAE0; }
.v8-next__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.v8-next__acts .v8-go { flex: 0 1 auto; }
.v8-next .v8-cal { margin-top: 8px; }
.v8-next .v8-calo { background: #1F2329; box-shadow: none; color: #fff; }
.v8-next .v8-calo img { box-shadow: none; }
.v8-next .v8-ics { color: #BCC2C9; }
.v8-next .v8-calo:focus-visible, .v8-next .v8-ics:focus-visible { outline-color: #fff; }
.v8-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.v8-card { box-sizing: border-box; min-width: 0; margin-top: 12px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--c-ring); }
.v8-grid .v8-card { margin-top: 0; }
.v8-card__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v8-card h4 { margin: 0; font-size: 16px; font-weight: 700; }
.v8-card__hd .cita-link { min-height: 44px; margin: -10px 0; }
.v8-card__p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--c-ink2); overflow-wrap: anywhere; }
.v8-card__b { display: block; margin-top: 8px; font-size: 15px; }
.v8-card__s { display: block; font-size: 12.5px; color: var(--c-mute); }
.v8-vsil { width: 100%; max-width: 240px; margin: 8px auto 0; }
.v8-vsil .v7-sil { width: 100%; }
.v8-vlogo { display: flex; margin-top: 8px; }
.v8-vacio { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; }
.v8-vacio__i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #F4F4F5; box-shadow: var(--c-ring); color: var(--c-mute); }
.v8-vacio p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--c-ink2); }
.v8-vacio .cita-link { margin-bottom: -10px; }
.v8-promos { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.v8-promos li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.v8-promos small { display: block; color: var(--c-mute); }
.v8-badge { flex: none; padding: 3px 9px; border-radius: 999px; background: #FFF1EA; color: #8A2D06; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cita-v7 .v8-acct .cita-vv .v8-vsil { margin-top: 0; }
@media (min-width: 768px) {
	.cita-v7 .cita-sheet.is-cuenta8 { width: min(980px, calc(100vw - 32px)); }
	.cita-v7 .is-cuenta8 .cita-sheet__body { padding: 4px 28px 24px; }
	.cita-v7 .is-cuenta8 .cita-sheet__head { padding: 12px 20px 8px 28px; }
	.v8-nav { margin: 0 0 14px; padding: 2px 0; }
	.v8-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.v8-acct__t { font-size: 32px; }
}
@media (min-width: 900px) {
	.v8-acct { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
	.v8-nav { flex-direction: column; overflow: visible; margin: 0; position: sticky; top: 0; }
	.v8-nav .cita-pill-b { justify-content: flex-start; width: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
	.v8-calo, .v8-btn, .v8-go { transition: none; }
	.v8-calo:active, .v8-btn:active, .v8-go:active { transform: none; }
}
