/* jale! — app del taller y expediente público */
:root {
  --rojo: #EF4444; --rojo-o: #DC2626; --rojo-f: #FEE2E2;
  --negro: #0C0C0E; --tinta: #18181B; --gris: #52525B; --gris2: #A1A1AA;
  --borde: #E4E4E7; --fondo: #F4F4F5; --blanco: #FFFFFF;
  --verde: #16A34A; --verde-f: #DCFCE7; --verde-t: #14532D;
  --ambar-f: #FEF3C7; --ambar-t: #78350F;
  --azul: #2563EB; --azul-f: #DBEAFE;
  --radio: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--fondo); color: var(--tinta); font-size: 16px; line-height: 1.45; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.publico, body.login, body.pagina-qr { padding-bottom: 32px; }
h1, h2, h3, .h1, .h2, .h3, .logo, .placa { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.i { flex-shrink: 0; }
code { font-family: ui-monospace, 'Cascadia Mono', monospace; font-size: 0.92em; }

/* Barra superior */
.top { background: var(--negro); color: #fff; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1000px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; min-height: 56px; }
.logo { display: inline-flex; align-items: flex-end; gap: 4px; text-decoration: none; color: #fff; font-weight: 700; font-size: 24px; line-height: 1; }
.logo i { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 2px; }
.logo i::before { content: ''; width: 5px; height: 15px; background: var(--rojo); border-radius: 3px; }
.logo i::after { content: ''; width: 6px; height: 6px; background: var(--rojo); border-radius: 50%; }
.volver { color: #fff; display: inline-flex; padding: 6px; margin-left: -6px; border-radius: 8px; }
.taller-top { margin-left: auto; text-align: right; font-size: 14px; font-weight: 600; line-height: 1.2; }
.taller-top span { display: block; font-size: 12px; font-weight: 400; color: var(--gris2); }
.top-tag { margin-left: auto; font-size: 12px; color: var(--gris2); border: 1px solid #3F3F46; border-radius: 999px; padding: 4px 10px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 16px; }
.h1 { font-size: 26px; margin: 4px 0 6px; }
.h2 { font-size: 20px; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.h3 { font-size: 15px; margin: 14px 0 0; color: var(--gris); }
.muted { color: var(--gris); }
.chico { font-size: 13px; }
.mt { margin-top: 12px; }

/* Tarjetas */
.card { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; margin-bottom: 14px; display: block; text-decoration: none; }
.card h2 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card h2 .i { color: var(--rojo); }
.fila-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fila-cab h2 { margin-bottom: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; font: 600 15px 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; background: var(--rojo); color: #fff; min-height: 48px; transition: background .15s, transform .05s; }
.btn:hover { background: var(--rojo-o); }
.btn:active { transform: scale(0.98); }
.btn.sec { background: var(--blanco); color: var(--tinta); border: 1px solid #D4D4D8; }
.btn.sec:hover { background: var(--fondo); }
.btn.wa { background: #25D366; color: #052E16; }
.btn.wa:hover { background: #1EBE5A; }
.btn.ok { background: var(--verde); color: #fff; }
.btn.ok:hover { background: #15803D; }
.btn.no { background: var(--blanco); color: #B91C1C; border: 1px solid #FCA5A5; }
.btn.no:hover { background: var(--rojo-f); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; min-height: 40px; font-size: 14px; }
.icono { background: none; border: 0; color: var(--gris2); padding: 8px; border-radius: 8px; cursor: pointer; }
.icono:hover { color: var(--rojo); background: var(--rojo-f); }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

/* Formularios */
label { display: block; font-size: 13px; font-weight: 600; color: var(--gris); margin: 12px 0 4px; }
input, select, textarea { width: 100%; font: 16px 'DM Sans', sans-serif; padding: 11px 12px; border: 1px solid #D4D4D8; border-radius: 10px; background: #fff; color: var(--tinta); }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rojo); outline-offset: -1px; border-color: transparent; }
.campo:first-child label { margin-top: 0; }
.con-error input, .con-error select, .con-error textarea { border-color: var(--rojo); }
.error-txt { color: #B91C1C; font-size: 13px; }
details.editar { margin-top: 12px; border-top: 1px dashed var(--borde); padding-top: 10px; }
details.editar summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--rojo-o); list-style: none; }
details.editar summary::before { content: '+ '; }
details.editar[open] summary::before { content: '− '; }
details.editar form { margin-top: 6px; }
.copiar { display: flex; gap: 8px; }
.copiar input { font-size: 13px; color: var(--gris); }

/* Avisos */
.aviso { padding: 12px 14px; border-radius: 12px; background: var(--ambar-f); color: var(--ambar-t); margin-bottom: 14px; font-size: 15px; }
.aviso.success, .aviso.ok { background: var(--verde-f); color: var(--verde-t); }
.aviso.error { background: var(--rojo-f); color: #7F1D1D; }
.aviso.info { background: var(--azul-f); color: #1E3A8A; }

/* Insignias */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--fondo); color: var(--gris); white-space: nowrap; }
.b-recibido { background: #E0E7FF; color: #3730A3; }
.b-diagnostico { background: var(--azul-f); color: #1D4ED8; }
.b-autorizacion, .b-pendiente { background: var(--ambar-f); color: #92400E; }
.b-reparacion { background: #FFEDD5; color: #9A3412; }
.b-listo, .b-aprobado { background: var(--verde-f); color: #166534; }
.b-entregado { background: #E4E4E7; color: #3F3F46; }
.b-rechazado { background: var(--rojo-f); color: #991B1B; }

/* Placas */
.placa { display: inline-block; font-weight: 700; background: #fff; border: 2px solid var(--tinta); border-radius: 6px; padding: 2px 8px; font-size: 14px; letter-spacing: 0.04em; white-space: nowrap; }
.placa.grande { font-size: 18px; padding: 4px 12px; }
.placa.clara { background: #fff; color: var(--tinta); border-color: #fff; }

/* Inicio */
.buscar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 4px 4px 4px 12px; margin-bottom: 14px; color: var(--gris2); }
.buscar input { border: 0; padding: 10px 4px; }
.buscar input:focus { outline: none; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 10px 4px; text-align: center; }
.stat b { display: block; font: 700 22px 'Space Grotesk', sans-serif; color: var(--gris2); }
.stat.con b { color: var(--tinta); }
.stat span { font-size: 11px; color: var(--gris); line-height: 1.2; display: block; }
.lista .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--borde); text-decoration: none; }
.lista .item:first-child { border-top: 0; padding-top: 2px; }
.item-d { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-d strong { font-size: 15px; }
.item-d .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-e { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.vacio { text-align: center; padding: 12px 0; }
.vacio p { margin-bottom: 12px; color: var(--gris); }

/* Orden */
.vehiculo-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vehiculo-cab > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vehiculo-cab .muted { font-size: 14px; }
.estado-actual { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.estado-actual .pasos { flex: 1; margin: 0; }
.pasos { display: flex; gap: 4px; margin: 12px 0 8px; }
.pasos > div { flex: 1; height: 6px; border-radius: 3px; background: var(--borde); }
.pasos > div.on { background: var(--rojo); }
.pasos.con-etiquetas > div { height: auto; background: none; border-top: 5px solid var(--borde); padding-top: 6px; }
.pasos.con-etiquetas > div.on { border-color: var(--rojo); background: none; }
.pasos.con-etiquetas span { font-size: 10px; color: var(--gris2); line-height: 1.15; display: block; }
.pasos.con-etiquetas .on span { color: var(--tinta); font-weight: 600; }
.datos { display: grid; gap: 8px; margin-bottom: 4px; }
.datos div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; font-size: 15px; }
.datos dt { color: var(--gris); font-size: 13px; padding-top: 2px; }
.concepto { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--borde); }
.concepto:first-of-type { border-top: 0; }
.concepto .d { flex: 1; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.concepto .p { font-weight: 700; white-space: nowrap; }
.decidir { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding-bottom: 10px; }
.total, .subtotal { display: flex; justify-content: space-between; font-weight: 700; padding-top: 10px; }
.total { margin-top: 6px; border-top: 2px solid var(--tinta); }
.subtotal { font-weight: 500; color: var(--gris); padding-top: 4px; }
.enviar { border-color: #86EFAC; background: #F0FDF4; }
.enviar p { margin-bottom: 12px; }
.siguiente { border: 2px solid var(--tinta); }
.siguiente p { margin-bottom: 12px; }
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 12px 20px; font-size: 14px; display: flex; flex-direction: column; }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--rojo); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--borde); }
.timeline li:last-child::after { display: none; }
.timeline li.c::before { background: var(--azul); }

/* Fotos */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.fotos > a, .foto-nueva { aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; display: block; background: var(--fondo); }
.fotos img { width: 100%; height: 100%; object-fit: cover; }
.fotos small { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: 11px; padding: 16px 6px 5px; line-height: 1.2; }
.foto-nueva { border: 2px dashed #D4D4D8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--gris); cursor: pointer; text-align: center; font-size: 12px; font-weight: 600; margin: 0; padding: 6px; }
.foto-nueva:hover { border-color: var(--rojo); color: var(--rojo); }
.foto-nueva input { display: none; }
.foto-nueva.subiendo { pointer-events: none; opacity: .6; }

/* Sello */
.sello { display: flex; gap: 12px; align-items: center; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 12px; padding: 12px; font-size: 13px; color: var(--verde-t); margin: 12px 0 14px; }
.sello > div { display: flex; flex-direction: column; }
.sello strong { font-size: 14px; }
.sello.roto { background: var(--rojo-f); border-color: #FCA5A5; color: #7F1D1D; }
.sello-mini { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--verde); font-weight: 600; }

/* Vehículo */
.activa { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--rojo); }
.activa .badge { align-self: flex-start; }
.historia { padding: 12px 0; border-top: 1px solid var(--borde); }
.historia:first-of-type { border-top: 0; padding-top: 0; }
.historia-cab { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.piezas { list-style: none; margin: 8px 0; font-size: 14px; }
.piezas li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--borde); }
.piezas li::before { content: '✓'; color: var(--verde); font-weight: 700; margin-right: 6px; }
.piezas li > span:first-child { flex: 1; }

/* Estrellas */
.estrellas { color: #F59E0B; letter-spacing: 1px; white-space: nowrap; }
.estrellas .vacias { color: #D4D4D8; }
.estrellas-input { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 10px 0; }
.estrellas-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estrellas-input label { font-size: 40px; color: #D4D4D8; cursor: pointer; margin: 0; line-height: 1; }
.estrellas-input label:hover, .estrellas-input label:hover ~ label, .estrellas-input input:checked ~ label { color: #F59E0B; }
.estrellas-input input:focus-visible + label { outline: 2px solid var(--rojo); border-radius: 4px; }

/* Expediente público */
.publico .wrap { max-width: 720px; }
.hero-coche { background: var(--negro); color: #fff; border-radius: 18px; padding: 22px 18px; margin-bottom: 14px; text-align: center; background-image: radial-gradient(circle at 80% 0%, rgba(239,68,68,.35), transparent 55%); }
.hero-coche h1 { font-size: 26px; margin: 12px 0 2px; }
.hero-coche p { color: var(--gris2); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.hero-stats div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 4px; }
.hero-stats b { display: block; font: 700 18px 'Space Grotesk', sans-serif; }
.hero-stats span { font-size: 11px; color: var(--gris2); }
.destacado { border: 2px solid #F59E0B; }
.activa-pub { border: 2px solid var(--rojo); }
.servicio .taller-linea { font-size: 14px; color: var(--gris); margin: 2px 0 8px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.servicio p { margin-bottom: 6px; }
.verif { display: inline-flex; background: var(--azul); color: #fff; border-radius: 50%; padding: 2px; }
blockquote { margin-top: 10px; padding: 8px 12px; border-left: 3px solid #F59E0B; background: #FFFBEB; border-radius: 0 8px 8px 0; font-size: 14px; }
.que-es { text-align: center; padding: 24px 12px; color: var(--gris); }
.que-es h2 { color: var(--tinta); font-size: 18px; margin-bottom: 6px; }
.que-es p { margin-bottom: 14px; font-size: 14px; }

/* Login */
.login-caja { max-width: 420px; margin: 24px auto; }
.login-caja h1 { font-size: 28px; line-height: 1.15; margin-bottom: 8px; }
.login-caja > p { margin-bottom: 18px; }
.demo-cred { text-align: center; font-size: 14px; color: var(--gris); background: #fff; border: 1px dashed #D4D4D8; border-radius: 12px; padding: 10px; }

/* QR */
.calcomania { width: 300px; margin: 16px auto 0; background: #fff; border: 3px solid var(--tinta); border-radius: 18px; padding: 18px; text-align: center; }
.cal-logo { font: 700 28px 'Space Grotesk', sans-serif; display: inline-flex; align-items: flex-end; gap: 4px; margin-bottom: 10px; }
.cal-logo i { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 3px; }
.cal-logo i::before { content: ''; width: 6px; height: 18px; background: var(--rojo); border-radius: 3px; }
.cal-logo i::after { content: ''; width: 7px; height: 7px; background: var(--rojo); border-radius: 50%; }
#qr { display: flex; justify-content: center; }
#qr img, #qr canvas { width: 220px; height: 220px; }
.cal-placa { font: 700 22px 'Space Grotesk', sans-serif; letter-spacing: .05em; margin-top: 10px; }
.cal-txt { font-size: 13px; color: var(--gris); }

/* Reporte y panel */
.periodo { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.chip { flex-shrink: 0; border: 1px solid #D4D4D8; background: #fff; color: var(--gris); border-radius: 999px; padding: 7px 14px; font: 600 13px 'DM Sans', sans-serif; cursor: pointer; }
.chip.on { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; }
.kpi span { display: block; font-size: 12px; color: var(--gris); }
.kpi b { display: block; font: 700 22px 'Space Grotesk', sans-serif; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 12px; color: var(--gris); }
.barras { display: flex; align-items: stretch; gap: 8px; height: 170px; padding-top: 8px; border-bottom: 1px solid var(--borde); }
.barra { flex: 1; display: flex; flex-direction: column; position: relative; outline: none; }
.barra-zona { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.barra-fill { width: min(36px, 70%); min-height: 2px; background: #3F3F46; border-radius: 4px 4px 0 0; transition: background .15s; }
.barra:hover .barra-fill, .barra:focus .barra-fill { background: var(--rojo); }
.barra-mes { font-size: 11px; color: var(--gris); text-align: center; padding: 6px 0 4px; }
.tip { position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); background: var(--tinta); color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5; }
.barra:hover .tip, .barra:focus .tip { opacity: 1; }
.tabla-datos { margin-top: 10px; font-size: 13px; }
.tabla-datos summary { cursor: pointer; color: var(--gris); }
.tabla-datos table, .tabla { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.tabla th, .tabla-datos th { text-align: left; font-size: 12px; color: var(--gris); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla th a { text-decoration: none; }
.tabla td, .tabla-datos td { padding: 10px 8px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla-scroll { overflow-x: auto; margin: -8px -16px 0; padding: 0 16px; }
.indicadores { display: grid; gap: 12px; margin-top: 10px; }
.indicadores div { display: flex; gap: 12px; align-items: baseline; }
.indicadores b { font: 700 22px 'Space Grotesk', sans-serif; min-width: 76px; }
.indicadores span { font-size: 14px; color: var(--gris); }
.indicadores em { color: var(--ambar-t); font-style: normal; }
.opinion { padding: 10px 0; border-top: 1px solid var(--borde); }
.opinion:first-of-type { border-top: 0; padding-top: 0; }
.opinion p { font-size: 14px; margin-top: 4px; }
.fila-orden { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--borde); }
.fila-orden:first-of-type { border-top: 0; padding-top: 0; }
.dos { display: grid; grid-template-columns: 1fr; gap: 0 10px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tinta); margin-top: 14px; }
label.check input { width: 20px; height: 20px; }
.ayuda { display: block; font-size: 12px; color: var(--gris2); margin-top: 3px; }
.bloque { display: block; }
.enlace-fuerte { font-weight: 700; }
.accesos { border: 2px solid #25D366; }
.saldo-sms { display: flex; gap: 14px; align-items: center; background: var(--fondo); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.saldo-sms b { display: block; font: 700 28px 'Space Grotesk', sans-serif; line-height: 1; }
.saldo-sms span { font-size: 12px; color: var(--gris); }
.saldo-sms p { flex: 1; }
code.grande { font-size: 18px; font-weight: 700; letter-spacing: 0.05em; }

/* Agenda y citas */
.con-globo { position: relative; display: inline-flex; }
.globo { position: absolute; top: -6px; right: -10px; background: var(--rojo); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
.cita-card { border-top: 1px solid var(--borde); padding: 12px 0; }
.cita-card:first-of-type { border-top: 0; padding-top: 0; }
.cita-cab { display: flex; align-items: center; gap: 10px; }
.cita-cuando { text-align: right; display: flex; flex-direction: column; font-size: 13px; }
.cita-cuando b { font-size: 14px; }
.cita-cuando span { color: var(--gris); }
.cita-motivo { margin: 8px 0; font-size: 15px; }
.acciones-cita { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 6px; }
.h3.dia { color: var(--tinta); margin: 16px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--tinta); }
.h3.dia.hoy { color: var(--rojo-o); border-color: var(--rojo); }
.h3.dia:first-of-type { margin-top: 0; }
.libres { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.libres div { background: var(--fondo); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.libres b { display: block; }
.libres span { color: var(--gris); font-size: 12px; }
.dias-opciones { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.turnos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dia-op { margin: 0; flex-shrink: 0; cursor: pointer; position: relative; }
.dia-op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dia-op span { display: flex; flex-direction: column; border: 2px solid var(--borde); border-radius: 12px; padding: 10px 14px; min-width: 92px; background: #fff; color: var(--tinta); }
.dia-op b { font-size: 15px; }
.dia-op small { font-size: 11px; color: var(--gris); font-weight: 500; }
.dia-op input:checked + span { border-color: var(--rojo); background: #FEF2F2; }
.dia-op input:focus-visible + span { outline: 2px solid var(--rojo); outline-offset: 2px; }
.dias-semana { display: flex; gap: 6px; flex-wrap: wrap; }
.dias-semana label { margin: 0; display: flex; align-items: center; gap: 4px; border: 1px solid var(--borde); border-radius: 999px; padding: 6px 10px; color: var(--tinta); cursor: pointer; font-size: 14px; }
.dias-semana input { width: 16px; height: 16px; }
.hero-coche.compacto { padding: 18px; }
.hero-coche.compacto h1 { font-size: 22px; }
.agendar-cta { margin-bottom: 14px; }
.aviso-citas { display: flex; align-items: center; gap: 10px; border: 2px solid #F59E0B; background: #FFFBEB; font-size: 15px; }
.aviso-citas > span:nth-child(2) { flex: 1; }
.aviso-citas .i { color: #B45309; }
.cita-turno { font-size: 17px; font-weight: 600; }
.b-cita-solicitada, .b-cita-propuesta { background: var(--ambar-f); color: #92400E; }
.b-cita-confirmada, .b-cita-atendida { background: var(--verde-f); color: #166534; }
.b-cita-cancelada, .b-cita-no_asistio { background: var(--rojo-f); color: #991B1B; }

/* Navegación inferior */
.nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--borde); display: flex; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; text-align: center; padding: 8px 4px 10px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--gris); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav a.on { color: var(--rojo); }
.nav .bola { background: var(--rojo); color: #fff; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-top: -22px; box-shadow: 0 6px 16px rgba(239,68,68,.45); border: 4px solid #fff; }
.nav .mas { color: var(--tinta); }

@media (min-width: 560px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .dos { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
  .h1 { font-size: 30px; }
}
@media print {
  .top, .nav, .no-print, .aviso { display: none !important; }
  body { background: #fff; padding: 0; }
  .calcomania { margin-top: 0; }
}
