/* =====================================================================
   TuTurno — estilos
   Los colores están todos en :root. Para cambiar la marca, tocá solo esas variables.
   ===================================================================== */
:root {
  --fondo: #F4F3EF;
  --superficie: #FFFFFF;
  --suave: #F0EFEB;
  --texto: #161616;
  --apagado: #5F5F5A;
  --borde: #E2E1DC;
  --acento: #161616;
  --sobre-acento: #FFFFFF;
  --ok: #1E7B4F;   --ok-fondo: #E3F3EA;
  --mal: #A3262A;  --mal-fondo: #F9E1E1;
  --off: #5F5F5A;  --off-fondo: #ECECEA;
  --estrella: #B97A00;
  --foco: #2F6FEB;
  --radio: 16px;
  --titulos: 'Bricolage Grotesque', system-ui, sans-serif;
  --cuerpo: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.45 var(--cuerpo); }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 clamp(26px, 6vw, 32px)/1.1 var(--titulos); text-wrap: balance; }
h2 { font: 700 19px/1.2 var(--titulos); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px max(16px, calc((100% - 760px) / 2));
  background: color-mix(in srgb, var(--fondo) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}
.marca { display: flex; align-items: center; gap: 8px; font: 700 22px var(--titulos); text-decoration: none; }
#menu { display: flex; gap: 4px; flex-wrap: wrap; }
#menu a, #menu .link { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--apagado); }
#menu a[aria-current="page"] { background: var(--acento); color: var(--sobre-acento); }

main { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }
.angosto { max-width: 440px; margin: 0 auto; }

/* ---------- Bloques ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.chico-gap { gap: 6px; }
.fila { display: flex; align-items: flex-end; gap: 10px; }
.fila-entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crece { flex: 1; min-width: 0; }
.botones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.centro { text-align: center; }
.card { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; }
.nota { background: var(--suave); }
.muted { color: var(--apagado); }
.chico { font-size: 14px; }
.grande { font-size: 18px; }
.vacio { color: var(--apagado); padding: 20px; text-align: center; border: 1.5px dashed var(--borde); border-radius: var(--radio); }
.cargando { color: var(--apagado); text-align: center; padding: 40px 0; }
.error { color: var(--mal); font-weight: 600; min-height: 1em; }
.error:empty { display: none; }
.volver { text-decoration: none; font-weight: 600; color: var(--apagado); }
.apagado { opacity: .55; }
.lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
code { background: var(--suave); padding: 2px 6px; border-radius: 6px; }

.grilla-2, .grilla-3 { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .grilla-2 { grid-template-columns: 1fr 1fr; }
  .grilla-3 { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
}

/* ---------- Formularios ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
label .muted { font-weight: 500; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--borde); border-radius: 12px; background: var(--superficie); font-weight: 500; font-size: 16px;
}
input:focus, select:focus { border-color: var(--acento); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--foco) 25%, transparent); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
label.check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--acento); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px;
  background: var(--acento); color: var(--sobre-acento); font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: wait; }
.btn.chico { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.secundario { background: var(--superficie); color: var(--texto); border: 1.5px solid var(--borde); }
.link { background: none; border: 0; padding: 4px 0; font-weight: 600; text-decoration: underline; color: var(--apagado); }
.peligro { color: var(--mal); }

/* ---------- Chips y etiquetas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex-shrink: 0; min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 999px; border: 1.5px solid var(--borde); background: var(--superficie);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 700; background: var(--suave); white-space: nowrap; }
.pill.ok { background: var(--ok-fondo); color: var(--ok); }
.pill.mal { background: var(--mal-fondo); color: var(--mal); }
.pill.off { background: var(--off-fondo); color: var(--off); }
.estrellas { color: var(--estrella); font-weight: 700; }

/* ---------- Cliente ---------- */
.buscador input { min-height: 50px; }
.local { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.local:hover { border-color: var(--acento); }
.hero { background: var(--acento); color: var(--sobre-acento); border-radius: 20px; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.hero p { opacity: .9; }
.contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.contacto a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--borde); background: var(--superficie); font-weight: 700; text-decoration: none; }
.pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pro { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: var(--radio); border: 2px solid var(--borde); background: var(--superficie); }
.pro[aria-pressed="true"] { border-color: var(--acento); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--suave); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.servicio { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--borde); background: var(--superficie); text-align: left; font-weight: 600; }
.servicio[aria-pressed="true"] { border-color: var(--acento); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--borde); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
[aria-pressed="true"] > .radio { border-color: var(--acento); }
[aria-pressed="true"] > .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acento); }
.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.dia-btn { flex-shrink: 0; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--borde); background: var(--superficie); font-weight: 700; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hora { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--superficie); font-weight: 700; font-variant-numeric: tabular-nums; }
.dia-btn[aria-pressed="true"], .hora[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }

/* ---------- Panel ---------- */
.fila-servicio { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .fila-servicio { grid-template-columns: 2fr 90px 130px auto auto; align-items: end; } }
.semana { display: flex; flex-direction: column; }
.dia { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.dia:last-child { border-bottom: 0; }
.dia-nombre { width: 130px; }
.dia.apagado .franjas { visibility: hidden; }
.dia.apagado { opacity: 1; }
.dia.apagado .dia-nombre { color: var(--apagado); }
.franjas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.franja { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.franja input { width: 116px; min-height: 42px; padding: 6px 8px; }
.cuenta { border-top: 1px solid var(--borde); padding-top: 12px; }

/* ---------- Agenda ---------- */
.navega-fecha { align-items: center; }
.navega-fecha input { min-height: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 13px; font-weight: 600; color: var(--apagado); }
.stat.ok { background: var(--ok-fondo); color: var(--ok); border-color: transparent; }
.stat.mal { background: var(--mal-fondo); color: var(--mal); border-color: transparent; }
.stat.ok span, .stat.mal span { color: inherit; }
.turno { display: flex; gap: 12px; }
.turno > .hora { width: 52px; flex-shrink: 0; padding-top: 14px; border: 0; background: none; color: var(--apagado); font-weight: 700; font-variant-numeric: tabular-nums; }
.turno .cuerpo { flex: 1; min-width: 0; background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 14px; }
.turno.cancelado .cuerpo { opacity: .55; }
.turno .cobro { border-top: 1px solid var(--borde); padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.en-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ok); }
.punto { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .3; } }
details summary { cursor: pointer; }

/* ---------- Mensajes ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #161616; color: #fff; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--mal); }

@media (prefers-reduced-motion: reduce) { .punto { animation: none; } .toast { transition: none; } }

/* ---------- Tiempos: servicios con pose, variantes y combinaciones ---------- */
.grilla-servicio { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grilla-servicio label:nth-child(-n+2) { grid-column: span 2; }
.grilla-servicio .check { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .grilla-servicio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grilla-servicio label:nth-child(-n+2) { grid-column: auto; }
}
.tilde { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--borde); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
[aria-pressed="true"] > .tilde { background: var(--acento); border-color: var(--acento); }
[aria-pressed="true"] > .tilde::after { content: ""; width: 10px; height: 6px; border: solid var(--sobre-acento); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.grupo { background: var(--suave); border-radius: var(--radio); padding: 12px; }
.pose { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 10px; background: #FBEFD5; color: #7A5000; font-weight: 600; }
.tiempos { display: flex; flex-direction: column; }
.tiempo-fila { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px 70px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.tiempo-fila:last-child { border-bottom: 0; }
.tiempo-fila input[type="number"] { min-height: 40px; padding: 6px 8px; text-align: center; }
.tiempo-fila.encabezado { font-size: 12px; font-weight: 700; color: var(--apagado); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 4px; }
.tiempo-fila.encabezado span:not(:first-child) { text-align: center; }
@media (max-width: 420px) { .tiempo-fila { grid-template-columns: minmax(0, 1fr) 56px 56px 56px; gap: 6px; } }

/* ---------- Versión 1.1 ---------- */
/* Cartel de qué base se está usando (solo en la compu) */
.entorno { padding: 6px 16px; text-align: center; font-size: 13px; font-weight: 700; }
.entorno.desarrollo { background: #E3F3EA; color: #1E7B4F; }
.entorno.produccion { background: #A3262A; color: #fff; }
/* Términos */
.legal h2 { font-size: 17px; margin-top: 8px; }
.legal p, .legal li { color: var(--texto); line-height: 1.55; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
label.check a { text-decoration: underline; }
label.check span { font-weight: 500; }
/* Menú en celular: marca arriba y los botones en una sola fila debajo (sin quedar pegado arriba) */
@media (max-width: 560px) {
  .barra { position: static; padding: 8px 12px; gap: 6px; }
  #menu { width: 100%; justify-content: space-between; gap: 0; flex-wrap: nowrap; }
  #menu a, #menu .link { padding: 7px 8px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 380px) {
  #menu a, #menu .link { padding: 7px 5px; font-size: 13px; }
}

/* ---------- Versión 2 ---------- */
textarea { resize: vertical; line-height: 1.4; }
.pill.aviso { background: #FBEFD5; color: #7A5000; }
.aviso-confirmar { background: #FBEFD5; color: #5C3D00; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.exito { background: var(--ok-fondo); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.btn.peligro-btn { background: var(--mal); color: #fff; }

/* Página del local personalizada */
.hero { position: relative; overflow: hidden; }
.hero.con-portada {
  min-height: 190px; justify-content: flex-end; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.15) 70%), var(--portada) center / cover, var(--acento);
}
.hero .logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,.85); margin-bottom: 6px; }
.descripcion { color: var(--texto); line-height: 1.5; }
.fila-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.logo-chico { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.galeria figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--suave); }
.galeria figcaption { font-size: 13px; color: var(--apagado); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.galeria figcaption .link { font-size: 13px; padding: 0; }

/* Diseño (panel) */
.colores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.color { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--superficie); box-shadow: 0 0 0 1.5px var(--borde); padding: 0; }
.color[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--texto); }
.color.otro { overflow: hidden; position: relative; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); cursor: pointer; }
.color.otro input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.hero.previa { padding: 16px; }
.previa-logo { width: 96px; height: 96px; object-fit: cover; border-radius: 18px; border: 1px solid var(--borde); }
.previa-portada { width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; }
label.archivo { flex-direction: row; cursor: pointer; }

/* Reseñas */
.estrellas-input legend { font-weight: 700; font-size: 14px; }
.fila-estrellas { display: flex; gap: 4px; }
.fila-estrellas label { cursor: pointer; }
.fila-estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fila-estrellas label > span[aria-hidden] { font-size: 34px; line-height: 1; color: var(--borde); transition: color .1s; }
.fila-estrellas input:focus-visible + span { outline: 3px solid var(--foco); border-radius: 6px; }
.fila-estrellas:has(input[value="1"]:checked) label:nth-child(-n+1) > span[aria-hidden],
.fila-estrellas:has(input[value="2"]:checked) label:nth-child(-n+2) > span[aria-hidden],
.fila-estrellas:has(input[value="3"]:checked) label:nth-child(-n+3) > span[aria-hidden],
.fila-estrellas:has(input[value="4"]:checked) label:nth-child(-n+4) > span[aria-hidden],
.fila-estrellas:has(input[value="5"]:checked) label:nth-child(-n+5) > span[aria-hidden] { color: var(--estrella); }
.calificar { border-top: 1px solid var(--borde); padding-top: 12px; }

/* Agenda semanal y mover */
.dia-semana { padding-top: 6px; }
.dia-semana h2 a { text-decoration: none; }
.dia-semana.hoy h2 a { text-decoration: underline; text-underline-offset: 4px; }
.mover { border-top: 1px solid var(--borde); padding-top: 10px; }
.mover .horas { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }

/* Sucursales */
.cifras { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.cifras .ok { color: var(--ok); }
.cifras .mal { color: var(--mal); }
.stack > .pill { align-self: flex-start; }
/* Recordatorios manuales por WhatsApp */
.recordatorios summary { list-style-position: inside; }
.recordatorios .lista { margin-top: 10px; }
.recordatorio { padding: 8px 0; border-top: 1px solid var(--borde); }
.recordatorio .pill { margin-left: 4px; }
.ok-texto { color: var(--ok); font-weight: 700; }

/* ---------- Caja, altas y administración ---------- */
.medidor { display: block; height: 10px; background: var(--suave); border-radius: 5px; overflow: hidden; min-width: 40px; }
.medidor > span { display: block; height: 100%; background: var(--acento); border-radius: 5px; }
.fila-barra { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.fila-barra b { font-variant-numeric: tabular-nums; text-align: right; }
.movimiento { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--borde); font-variant-numeric: tabular-nums; }
.mal-texto { color: var(--mal); font-weight: 700; }
.stat.span-todo { grid-column: 1 / -1; }
.admin-link { text-decoration: none; border-color: var(--acento); }
.admin-link:hover { background: var(--suave); }
form.pago label { flex: 1; }
/* Foto de perfil de los profesionales */
img.avatar { object-fit: cover; padding: 0; }
.grande-avatar { width: 72px; height: 72px; font-size: 26px; }
.foto-pro { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* Ingresar con Google / Facebook / Apple */
.sociales { gap: 10px; }
.btn.social { gap: 10px; }
.separador { display: flex; align-items: center; gap: 12px; color: var(--apagado); font-size: 14px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--borde); }

/* ---------- Versión 2.1 ---------- */
/* Menú de abajo en el celular (Reservar · Mis turnos · Panel · Perfil) */
#menu a { display: inline-flex; align-items: center; gap: 6px; }
#menu svg { display: none; }
#menu-abajo { display: none; }
@media (max-width: 720px) {
  #menu { display: none; }
  .barra { position: sticky; padding: 10px 16px; }
  #menu-abajo {
    display: grid; grid-template-columns: repeat(var(--n, 4), 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--superficie); border-top: 1px solid var(--borde);
    padding: 4px 4px max(4px, env(safe-area-inset-bottom));
  }
  #menu-abajo a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; min-height: 54px;
    text-decoration: none; font-size: 12px; font-weight: 700; color: var(--apagado); border-radius: 12px;
  }
  #menu-abajo a[aria-current="page"] { color: var(--texto); background: var(--suave); }
  main { padding-bottom: 96px; }
  .toast { bottom: 84px; }
  body.con-barra .toast { bottom: 150px; }
}

/* Lista de locales */
.local { flex-direction: row; align-items: center; gap: 14px; }
.local-img {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--c, var(--acento)); color: #fff; font: 700 26px var(--titulos);
}
.local-img img { width: 100%; height: 100%; object-fit: cover; background: var(--superficie); }
.local-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.local-txt .fila-entre { flex-wrap: nowrap; align-items: baseline; }
.local-txt .fila-entre b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-extra { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; color: var(--ok); font-weight: 600; }
.local-extra b { font-weight: 800; }
.chips.desliza { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips.desliza::-webkit-scrollbar { display: none; }
.chip.cerca[aria-pressed="true"] { background: var(--foco); border-color: var(--foco); }
.segmento { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--suave); border: 1px solid var(--borde); }
.segmento button { border: 0; background: none; min-height: 36px; padding: 0 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--apagado); }
.segmento button[aria-pressed="true"] { background: var(--superficie); color: var(--texto); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mapa { height: min(62vh, 520px); border-radius: var(--radio); border: 1px solid var(--borde); overflow: hidden; background: var(--suave); z-index: 0; }
.pin span { display: block; width: 24px; height: 24px; margin: 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.popup { font: 14px/1.4 var(--cuerpo); display: flex; flex-direction: column; }
.popup .btn { margin-top: 8px; color: var(--sobre-acento); min-height: 36px; }
.leaflet-container a.btn { color: var(--sobre-acento); }

/* Página del local */
.hero .direccion { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.como-llegar { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.sin-subrayar { text-decoration: none; }

/* Barra fija para confirmar el turno */
.barra-confirmar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc((100% - 760px) / 2)) max(10px, env(safe-area-inset-bottom));
  background: var(--superficie); border-top: 1px solid var(--borde); box-shadow: 0 -6px 18px rgba(0,0,0,.08);
  font-variant-numeric: tabular-nums;
}
.barra-confirmar .btn { flex-shrink: 0; }
body.con-barra main { padding-bottom: 150px; }
@media (max-width: 720px) {
  .barra-confirmar { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
}
.invitado { border-top: 1px solid var(--borde); padding-top: 14px; gap: 12px; }
.sugerencia { align-self: flex-start; font-size: 13px; padding: 2px 0; color: var(--foco); }
.toast.accion { display: flex; align-items: center; gap: 14px; pointer-events: auto; padding: 8px 8px 8px 18px; width: min(440px, calc(100% - 32px)); }
.toast.accion span { flex: 1; min-width: 0; }
.toast.accion button { background: #fff; color: #161616; border: 0; border-radius: 10px; min-height: 38px; padding: 0 14px; font-weight: 800; }
/* Panel: secciones agrupadas, desglose de servicio, mapa del local */
.secciones { display: flex; flex-direction: column; gap: 12px; }
.grupo-titulo { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--apagado); }
.desglose { background: var(--suave); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.chico-mapa { height: 280px; }
.grilla-servicio .desglose { grid-column: 1 / -1; }
/* Pago mixto */
.medios { display: flex; flex-wrap: wrap; gap: 6px; }
.medios .chip { min-height: 38px; padding: 0 12px; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 8px; align-items: center; }
.linea select, .linea input { min-height: 42px; padding: 6px 10px; }
.linea .link { font-size: 18px; text-decoration: none; padding: 4px 6px; }
.efectivo-dia { text-align: left; display: flex; align-items: baseline; gap: 10px; } .efectivo-dia b { display: inline; }
/* Caja de TuTurno */
.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.derecha { text-align: right; }
.grilla-gasto { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; align-items: end; }
.grilla-gasto label:nth-child(2) { grid-column: 1 / -1; }
.grilla-gasto .btn { grid-column: 1 / -1; }
.linea-tt span:empty { width: 22px; }
.aviso-pago.vencido { background: var(--mal-fondo); color: var(--mal); border-color: transparent; }
.contador { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--mal); color: #fff; font-size: 13px; font-weight: 800; margin-left: 6px; vertical-align: 2px; }
/* Stock y productos en el cobro */
.item-producto { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 6px; align-items: center; }
.item-producto .btn { min-height: 34px; padding: 0 10px; }
.item-producto .cantidad { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.opcion-producto { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--superficie); text-align: left; }
.opciones { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.total-cobro:empty { display: none; }
.cobro-wrap { border-top: 1px solid var(--borde); padding-top: 10px; }
.linea-stock { grid-template-columns: minmax(0, 1fr) 80px auto; }
/* Administración 2.2 */
.modulo-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 0; border-top: 1px solid var(--borde); }
.modulo-fila:first-of-type { border-top: 0; }
.modulo-fila form input { max-width: 120px; min-height: 40px; }
.posponer { flex-direction: row; align-items: center; gap: 6px; font-weight: 600; }
.posponer select { min-height: 36px; padding: 4px 8px; width: auto; }
.recordatorio { padding: 10px 0; border-top: 1px solid var(--borde); }
.recordatorio:first-of-type { border-top: 0; }
/* Catálogo de productos para clientes */
.boton-productos { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.boton-productos:hover { border-color: var(--acento); }
.icono-productos { width: 46px; height: 46px; border-radius: 14px; background: var(--suave); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.barra-catalogo {
  position: sticky; top: var(--alto-barra, 0px); z-index: 9;
  display: flex; align-items: center; gap: 10px;
  margin: -20px -16px 0; padding: 10px 16px;
  background: color-mix(in srgb, var(--fondo) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde);
}
.barra-catalogo input { min-height: 46px; }
.hamburguesa {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--superficie);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburguesa span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--texto); transition: transform .2s, opacity .2s; }
.hamburguesa.abierto span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburguesa.abierto span:nth-child(2) { opacity: 0; }
.hamburguesa.abierto span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-categorias {
  position: absolute; left: 16px; top: calc(100% + 6px); width: min(300px, calc(100% - 32px)); max-height: 60vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: var(--superficie);
  border: 1px solid var(--borde); box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.menu-categorias button { text-align: left; border: 0; background: none; padding: 12px; border-radius: 10px; font-weight: 600; }
.menu-categorias button:hover { background: var(--suave); }
.menu-categorias button[aria-pressed="true"] { background: var(--acento); color: var(--sobre-acento); }
.menu-categorias button[aria-pressed="true"] .muted { color: inherit; opacity: .8; }
.grilla-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.producto { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.foto-producto { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--suave); display: flex; align-items: center; justify-content: center; font: 700 34px var(--titulos); color: var(--apagado); }
.foto-producto img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hamburguesa span { transition: none; } }
/* Fila de zonas: en la compu se ven todas (en varias líneas); en el celular se desliza, con un difuminado que avisa que hay más */
@media (min-width: 721px) {
  .chips.desliza { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
@media (max-width: 720px) {
  .chips.desliza {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    scroll-snap-type: x proximity; padding-right: 40px;
  }
  .chips.desliza .chip { scroll-snap-align: start; }
}

/* ---------- Planes (#/planes) ---------- */
.hero-planes { gap: 12px; padding: 28px 20px; }
.hero-planes h1 { font-size: clamp(28px, 7vw, 38px); }
.btn.claro { background: var(--sobre-acento); color: var(--acento); }
.btn.borde-claro { background: transparent; color: var(--sobre-acento); border: 1.5px solid color-mix(in srgb, var(--sobre-acento) 45%, transparent); }
.fundador { border: 2px solid var(--ok); }
.fundador .medidor > span { background: var(--ok); }
.grilla-valor, .grilla-planes { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .grilla-valor { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grilla-planes { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}
.plan { gap: 10px; }
.plan h3 { font: 700 21px/1.1 var(--titulos); margin: 0; }
.plan .btn { margin-top: auto; }
.plan.recomendado { border: 2px solid var(--acento); }
.pill.destacado { align-self: flex-start; background: var(--acento); color: var(--sobre-acento); }
.precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.precio b { font: 700 28px/1 var(--titulos); font-variant-numeric: tabular-nums; }
.tachado { text-decoration: line-through; font-size: 15px; width: 100%; }
.incluye { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.incluye li { display: flex; gap: 8px; }
.incluye li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.contador-prof { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.contador-prof .btn { width: 40px; padding: 0; font-size: 20px; }
.pasos { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: flex; flex-direction: column; gap: 10px; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.pasos li::before { content: counter(paso); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--acento); color: var(--sobre-acento); display: flex; align-items: center; justify-content: center; font-weight: 800; }
details.card summary { font-weight: 700; cursor: pointer; }
details.card p { margin-top: 8px; }
.cierre { align-items: center; }
.opciones-plan { display: grid; gap: 8px; }
.opcion-plan { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--superficie); cursor: pointer; font-weight: 600; }
.opcion-plan:has(input:checked) { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento); }
.opcion-plan input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--acento); }
.opcion-plan .crece { display: flex; flex-direction: column; }
.opcion-plan .derecha { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.opcion-plan .tachado { width: auto; }
