/* AGENDALY — Estilos de las páginas públicas (clientes)
   Ubicación: agendaly/assets/css/publico.css
   El color --c es el del negocio. */

:root { --c: #0E8C8C; --texto: #16323A; --gris: #6B7F84; --borde: #E3EAEC; --fondo: #F5F8F9; }
* { -webkit-tap-highlight-color: transparent; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; background: var(--fondo); color: var(--texto); }
.texto-gris { color: var(--gris); }
.min-w-0 { min-width: 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pub-contenedor { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.pub-main { padding-top: 18px; padding-bottom: 28px; }
.pub-main.angosto { max-width: 560px; }

/* ---------- Encabezado ---------- */
body { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #F5F8F9) 0, #F5F8F9 420px); background-color: var(--fondo); }
.pub-cabeza { position: relative; padding-bottom: 6px; }
.pub-portada {
  position: relative; height: 210px; overflow: hidden; background-size: cover; background-position: center;
  background-image: radial-gradient(120% 140% at 10% 0%, color-mix(in srgb, var(--c) 60%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000) 100%);
}
.pub-portada::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.35) 100%); }
.pub-portada:not(.con-foto)::before {
  content: ''; position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(circle at 20px 20px, #fff 2px, transparent 2.5px); background-size: 34px 34px;
}
.pub-portada-ic { position: absolute; right: -10px; bottom: -34px; font-size: 190px; color: rgba(255,255,255,.13); transform: rotate(-12deg); }
.pub-cabeza.compacto .pub-portada { height: 110px; }
.pub-cabeza.compacto .pub-portada-ic { font-size: 110px; bottom: -20px; }
@media (min-width: 768px) { .pub-portada { height: 270px; } }

.pub-identidad { position: relative; z-index: 2; display: flex; gap: 16px; align-items: flex-end; margin-top: -54px; }
@media (max-width: 575.98px) { .pub-cabeza:not(.compacto) .pub-identidad { flex-direction: column; align-items: flex-start; gap: 10px; } }
@media (min-width: 576px) { .pub-cabeza:not(.compacto) .pub-identidad { margin-top: -66px; } .pub-cabeza:not(.compacto) .pub-logo { width: 128px; height: 128px; flex-basis: 128px; border-radius: 32px; } }
.pub-logo {
  width: 104px; height: 104px; flex: 0 0 104px; border-radius: 28px; overflow: hidden; background: #fff;
  border: 5px solid #fff; box-shadow: 0 10px 30px rgba(20,48,58,.22); display: grid; place-items: center; text-decoration: none;
}
.pub-logo img { width: 100%; height: 100%; object-fit: cover; }
.pub-logo span { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 65%, #000)); color: #fff; font-size: 44px; font-weight: 800; }
.pub-cabeza.compacto .pub-logo { width: 70px; height: 70px; flex-basis: 70px; border-radius: 20px; border-width: 4px; }
.pub-cabeza.compacto .pub-logo span { font-size: 30px; }
.pub-cabeza.compacto .pub-identidad { margin-top: -36px; align-items: flex-start; }
.pub-cabeza.compacto .pub-nombre { margin-top: 42px; padding-bottom: 0; }
.pub-nombre { padding-bottom: 4px; }
.pub-identidad h1 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 3px; line-height: 1.12; }
.pub-cabeza.compacto h1 { font-size: 20px; }
@media (min-width: 576px) { .pub-identidad h1 { font-size: 30px; } }
.pub-sub { color: var(--gris); font-size: 14px; font-weight: 600; }
.pub-sub i { color: var(--c); }

.pub-estado { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 13px; border-radius: 30px; font-size: 14px; font-weight: 700; }
.pub-estado span { width: 9px; height: 9px; border-radius: 50%; }
.pub-estado.abierto { background: #E3F6EC; color: #1D7A4C; }
.pub-estado.abierto span { background: #2BB673; box-shadow: 0 0 0 0 rgba(43,182,115,.6); animation: pulso 1.8s infinite; }
.pub-estado.cerrado { background: #FDECEC; color: #B42318; }
.pub-estado.cerrado span { background: #E5574F; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgba(43,182,115,0); } 100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); } }

.pub-acciones { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pub-acciones::-webkit-scrollbar { display: none; }
.acc {
  flex: 1 1 0; min-width: 62px; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 11px 6px;
  background: #fff; border: 1px solid var(--borde); border-radius: 16px; text-decoration: none; color: var(--texto);
  font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px rgba(20,48,58,.04); transition: transform .15s, border-color .15s;
}
.acc i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.acc.wa i { color: #fff; background: #25D366; }
.acc.ig i { color: #fff; background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.acc:hover { transform: translateY(-2px); border-color: var(--c); }
button.acc { font-family: inherit; }

/* Franja de confianza */
.confianza { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 14px; scrollbar-width: none; }
.confianza::-webkit-scrollbar { display: none; }
.confianza span { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--texto); background: #fff; border: 1px solid var(--borde); border-radius: 30px; padding: 7px 12px; }
.confianza i { color: var(--c); }

/* Nuestro equipo */
.equipo-lista { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.miembro { flex: 0 0 104px; scroll-snap-align: start; text-align: center; }
.miembro-foto {
  width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--ce, var(--c)); color: #fff; font-weight: 800; font-size: 30px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px color-mix(in srgb, var(--ce, var(--c)) 45%, #fff), 0 8px 18px rgba(20,48,58,.14);
}
.miembro-foto img { width: 100%; height: 100%; object-fit: cover; }
.miembro b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miembro small { display: block; font-size: 12px; color: var(--gris); line-height: 1.3; }

/* Aparición suave */
.pub-main > * { animation: subir .45s ease-out both; }
.pub-main > *:nth-child(2) { animation-delay: .05s; }
.pub-main > *:nth-child(3) { animation-delay: .1s; }
.pub-main > *:nth-child(4) { animation-delay: .15s; }
@keyframes subir { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .pub-main > *, .pub-estado span { animation: none !important; } }

/* ---------- Bloques ---------- */
.pub-desc { color: var(--gris); margin-bottom: 14px; }
.pub-tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: 22px; padding: 18px; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(20,48,58,.05); }
@media (min-width: 576px) { .pub-tarjeta { padding: 22px; } }
.pub-h2 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 6px; }
.pub-h2 i { color: var(--c); }
.pub-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gris); margin: 16px 0 6px; }
.pub-aviso { display: flex; gap: 10px; align-items: center; background: #FFF6E8; color: #8A5A12; border: 1px solid #F6E2BF; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; text-decoration: none; }
.pub-aviso-c { background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--texto); border-color: color-mix(in srgb, var(--c) 30%, #fff); }
.pub-aviso-c i { color: var(--c); font-size: 20px; }
.pub-vacio { text-align: center; padding: 40px 16px; }
.pub-vacio.chico { padding: 24px 16px; background: #fff; border: 1px solid var(--borde); border-radius: 18px; margin-bottom: 16px; }
.pub-vacio i { font-size: 44px; color: color-mix(in srgb, var(--c) 55%, #fff); }
.pub-vacio h1, .pub-vacio h2 { font-size: 21px; font-weight: 800; margin: 8px 0 6px; }
.pub-vacio p { color: var(--gris); }
.alert { border-radius: 14px; }

/* ---------- Botones y campos ---------- */
.btn-c { background: var(--c); color: #fff; border: 0; border-radius: 14px; font-weight: 800; padding: 11px 20px; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 30%, transparent); }
.btn-c:hover, .btn-c:focus, .btn-c:active { background: var(--c) !important; color: #fff !important; filter: brightness(.92); }
.btn-c:disabled { background: #B7C4C7; opacity: 1; }
.btn-borde { border: 1.5px solid var(--borde); border-radius: 12px; font-weight: 600; background: #fff; color: var(--texto); padding: 9px 16px; }
.btn-borde:hover { border-color: var(--c); color: var(--c); }
.form-label { font-weight: 600; font-size: 14px; }
.form-control, .form-select { border-radius: 12px; border-color: var(--borde); padding: 11px 14px; font-size: 16px; }
.form-control:focus, .form-select:focus { border-color: var(--c); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--c) 18%, transparent); }

/* ---------- Pasos ---------- */
.pasos { display: flex; list-style: none; padding: 0; margin: 0 0 18px; gap: 6px; }
.pasos li { flex: 1; font-size: 12px; font-weight: 600; color: var(--gris); display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; position: relative; }
.pasos li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fondo); border: 1.5px solid var(--borde); font-weight: 800; }
.pasos li.activo { color: var(--c); }
.pasos li.activo span { background: var(--c); border-color: var(--c); color: #fff; }
.pasos li.hecho span { background: color-mix(in srgb, var(--c) 15%, #fff); border-color: transparent; color: var(--c); }
@media (max-width: 400px) { .pasos li { font-size: 11px; } }

/* ---------- Servicios ---------- */
.serv-op { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--borde); border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.serv-op input { position: absolute; opacity: 0; pointer-events: none; }
.serv-check { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; border: 2px solid var(--borde); display: grid; place-items: center; color: transparent; font-size: 15px; }
.serv-info { flex: 1; min-width: 0; }
.serv-info b { display: block; }
.serv-info small { color: var(--gris); font-size: 13px; }
.serv-precio { font-weight: 800; white-space: nowrap; text-align: right; }
.serv-precio small { display: block; font-weight: 500; color: var(--gris); font-size: 11px; }
.serv-op:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, #fff); }
.serv-op:has(input:checked) .serv-check { background: var(--c); border-color: var(--c); color: #fff; }
.serv-op:has(input:focus-visible) { outline: 2px solid var(--c); outline-offset: 2px; }

/* ---------- Personal ---------- */
.emp-lista { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .emp-lista { grid-template-columns: 1fr 1fr; } }
.emp-op { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--borde); border-radius: 14px; cursor: pointer; background: #fff; }
.emp-op input { position: absolute; opacity: 0; pointer-events: none; }
.emp-op b { display: block; }
.emp-op small { color: var(--gris); font-size: 13px; }
.emp-av { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; overflow: hidden; background: var(--ce, var(--c)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.emp-av img { width: 100%; height: 100%; object-fit: cover; }
.emp-av.cualquiera { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.emp-op:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent); }

/* ---------- Días y horas ---------- */
.dias { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.dia { flex: 0 0 64px; scroll-snap-align: start; border: 1.5px solid var(--borde); background: #fff; border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; color: var(--texto); }
.dia small { font-size: 11px; color: var(--gris); font-weight: 600; }
.dia b { font-size: 20px; font-weight: 800; }
.dia.sel { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.dia.sel small { color: rgba(255,255,255,.85); }
.dia.cerrado { opacity: .4; text-decoration: line-through; }
.horas { margin-top: 10px; }
.horas-grupo { margin-bottom: 12px; }
.horas-grupo > small { font-weight: 700; color: var(--gris); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.horas-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.hora { border: 1.5px solid var(--borde); background: #fff; border-radius: 12px; padding: 10px 4px; font-weight: 700; color: var(--texto); }
.hora:hover { border-color: var(--c); }
.hora.sel { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }

.resumen { background: var(--fondo); border-radius: 14px; padding: 14px; margin-bottom: 16px; display: grid; gap: 6px; }
.resumen i { color: var(--c); width: 20px; display: inline-block; }

/* ---------- Barra inferior (total + botón) ---------- */
.pub-barra {
  position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  margin: 18px -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--borde); border-radius: 0 0 18px 18px; backdrop-filter: blur(6px);
}
@media (min-width: 576px) { .pub-barra { margin: 22px -22px -22px; padding-left: 22px; padding-right: 22px; } }
.pub-total { flex: 1; min-width: 0; line-height: 1.2; }
.pub-total b { display: block; font-size: 17px; white-space: nowrap; }
.pub-total small { display: block; color: var(--gris); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-barra .btn { white-space: nowrap; }
.en-paso4 .pub-total { display: none; }
.en-paso4 #btnConfirmar { flex: 1; }

/* ---------- Fila de turnos ---------- */
.en-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #1D7A4C; background: #E3F6EC; padding: 3px 10px; border-radius: 20px; }
.en-vivo span { width: 8px; height: 8px; border-radius: 50%; background: #2BB673; animation: latido 1.6s infinite; }
@keyframes latido { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.cola-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.cola-dato { background: var(--fondo); border-radius: 14px; padding: 12px 14px; }
.cola-dato small { display: block; color: var(--gris); font-size: 12px; font-weight: 600; }
.cola-dato b { font-size: 24px; font-weight: 800; }
.atend-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.atend-chips span { font-size: 15px; font-weight: 800; background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: 3px 8px; color: var(--c); }
.cola-dato.destacado { grid-column: 1 / -1; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); color: #fff; }
.cola-dato.destacado b { color: #fff; font-size: 30px; }
.cola-dato.destacado small { color: rgba(255,255,255,.85); }
@media (min-width: 576px) { .cola-grid { grid-template-columns: 1fr 1fr 1.3fr; } .cola-dato.destacado { grid-column: auto; } }

/* ---------- Mi turno ---------- */
.ticket { background: #fff; border-radius: 22px; padding: 22px 18px; text-align: center; margin-bottom: 16px; border: 1px solid var(--borde); box-shadow: 0 6px 24px rgba(22,50,58,.06); }
.ticket > small { color: var(--gris); font-weight: 600; }
.ticket-num { font-size: 64px; font-weight: 800; letter-spacing: -2px; color: var(--c); line-height: 1.05; margin: 4px 0 8px; }
.ticket-estado { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: var(--fondo); border-radius: 14px; padding: 10px 16px; margin-bottom: 14px; }
.ticket-estado i { font-size: 20px; color: var(--c); }
.ticket-estado small { color: var(--gris); }
.ticket[data-estado="llamado"] { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); animation: llamar 1.2s ease-in-out infinite; }
.ticket[data-estado="llamado"] .ticket-estado { background: var(--c); color: #fff; }
.ticket[data-estado="llamado"] .ticket-estado i, .ticket[data-estado="llamado"] .ticket-estado small { color: #fff; }
@keyframes llamar { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 12%, transparent); } }
.ticket[data-estado="cancelado"] .ticket-num, .ticket[data-estado="no_se_presento"] .ticket-num { color: #B7C4C7; text-decoration: line-through; }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.ticket-grid > div { background: var(--fondo); border-radius: 14px; padding: 10px 12px; }
.ticket-grid small { display: block; color: var(--gris); font-size: 12px; }
.ticket-grid b { font-size: 22px; font-weight: 800; }
.ticket-grid .destacado { grid-column: 1 / -1; background: color-mix(in srgb, var(--c) 10%, #fff); text-align: center; }
.ticket-grid .destacado b { font-size: 30px; color: var(--c); }
.ticket-act { font-size: 12px; color: var(--gris); margin-top: 10px; }
.llegue { border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.llegue > div > i { font-size: 28px; color: var(--c); }

.detalle { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.detalle i { color: var(--c); width: 22px; display: inline-block; }

/* ---------- Mi cita ---------- */
.confirmada { text-align: center; padding: 10px 10px 18px; }
.ok-ic { width: 68px; height: 68px; border-radius: 50%; background: #2BB673; color: #fff; display: inline-grid; place-items: center; font-size: 36px; box-shadow: 0 0 0 8px #E3F6EC; }
.confirmada h2 { font-size: 23px; font-weight: 800; margin: 16px 0 4px; }
.confirmada p { color: var(--gris); margin: 0; }
.cita-fecha { font-size: 18px; font-weight: 700; }
.cita-hora { font-size: 34px; font-weight: 800; color: var(--c); letter-spacing: -1px; line-height: 1.1; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.chip-verde { background: #E3F6EC; color: #1D7A4C; }
.chip-gris { background: var(--fondo); color: var(--gris); }
.chip-rojo { background: #FDECEC; color: #B42318; }

/* ---------- Horario ---------- */
.horario { list-style: none; padding: 0; margin: 8px 0 0; }
.horario li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--borde); font-size: 15px; }
.horario li:last-child { border-bottom: 0; }
.horario li.hoy { font-weight: 800; color: var(--c); }

.pub-pie { text-align: center; color: var(--gris); font-size: 13px; padding: 10px 16px 28px; }
.pub-pie a { color: var(--texto); font-weight: 700; text-decoration: none; }
.pub-pie i { color: var(--c); }

/* =================================================================
   LA FILA EN VIVO (publico/vivo.php) — la pantalla TV en el celular
   ================================================================= */
.vivo { max-width: 720px; padding-bottom: 110px; }
.vivo-barra { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vivo-tit { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gris); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.vivo-tit::after { content: ''; flex: 1; height: 2px; background: var(--borde); border-radius: 2px; }

/* Mi turno */
.vivo-mio { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-decoration: none; color: var(--texto);
            background: #fff; border: 2px solid var(--c); border-radius: 20px; padding: 12px 16px; margin-bottom: 14px; box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 18%, transparent); }
.vivo-mio .lbl { grid-column: 1; grid-row: 1; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--c); }
.vivo-mio b { grid-column: 1; grid-row: 2; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.vivo-mio .det { grid-column: 2; grid-row: 1 / 3; font-weight: 600; font-size: 14px; color: var(--gris); }
.vivo-mio i { grid-column: 3; grid-row: 1 / 3; color: var(--gris); }
.vivo-mio.llamado { background: var(--c); color: #fff; animation: latir-v 1.4s ease-in-out infinite; }
.vivo-mio.llamado .lbl, .vivo-mio.llamado .det, .vivo-mio.llamado i { color: #fff; }

/* Llamando */
.vivo-llamado { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; color: #fff; border-radius: 24px; padding: 18px; margin-bottom: 14px;
                background: linear-gradient(120deg, var(--lc, var(--c)), color-mix(in srgb, var(--lc, var(--c)) 72%, #000));
                box-shadow: 0 12px 30px color-mix(in srgb, var(--lc, var(--c)) 35%, transparent); animation: entrar-v .5s ease-out; }
.vivo-llamado::before { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.1); }
.vivo-llamado .f { width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); overflow: hidden; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.vivo-llamado .f img, .vb .f img, .vivo-prox .mini img { width: 100%; height: 100%; object-fit: cover; }
.vivo-llamado .t { position: relative; min-width: 0; }
.vivo-llamado small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; opacity: .9; }
.vivo-llamado b { display: block; font-size: 52px; font-weight: 800; line-height: .95; letter-spacing: -2px; animation: latir-v 1.5s ease-in-out infinite; }
.vivo-llamado .t span { font-size: 16px; font-weight: 700; }
.vivo-llamado em { position: absolute; right: 12px; bottom: 10px; font-style: normal; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.18); border-radius: 12px; padding: 3px 9px; }
.vivo-llamado.es-mio { outline: 4px solid #FFD24D; outline-offset: -4px; }
@keyframes latir-v { 50% { transform: scale(1.03); } }
@keyframes entrar-v { from { transform: translateY(-10px) scale(.97); opacity: 0; } }

/* Datos */
.vivo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vivo-stats > div { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 12px; text-align: center; min-width: 0; }
.vivo-stats small { display: block; font-size: 11px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .5px; line-height: 1.25; min-height: 28px; }
.vivo-stats b { font-size: 26px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.vivo-stats b span { font-size: 12px; color: var(--gris); margin-left: 2px; }
.vivo-stats .dest { background: color-mix(in srgb, var(--c) 9%, #fff); border-color: color-mix(in srgb, var(--c) 35%, #fff); }
.vivo-stats .dest b { color: var(--c); }

/* Barberos */
.vivo-barberos { display: grid; gap: 10px; }
@media (min-width: 640px) { .vivo-barberos { grid-template-columns: 1fr 1fr; } }
.vb { --anillo: var(--borde); background: #fff; border: 1px solid var(--borde); border-radius: 20px; padding: 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 4px 16px rgba(20,48,58,.05); }
.vb.libre { --anillo: #2BB673; }
.vb.atendiendo { --anillo: var(--ce, var(--c)); }
.vb.llamando { --anillo: #E0A21B; }
.vb .av { position: relative; flex: 0 0 auto; }
.vb .f { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ce, var(--c)); color: #fff; font-weight: 800; font-size: 24px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--anillo); }
.vb.llamando .f { animation: anillo-v 1.2s ease-in-out infinite; }
@keyframes anillo-v { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 10px #E0A21B; } }
.vb .av i { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--anillo); border: 3px solid #fff; }
.vb .inf { flex: 1; min-width: 0; }
.vb .cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vb .cab b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb .cab small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--anillo); white-space: nowrap; }
.vb .act { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; min-width: 0; }
.vb .act b { font-size: 22px; font-weight: 800; color: var(--ce, var(--c)); white-space: nowrap; }
.vb .act span { font-size: 13px; color: var(--gris); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb .act.libre b { color: #2BB673; font-size: 18px; }
.vb .barra { height: 6px; background: #EEF3F4; border-radius: 6px; overflow: hidden; margin-top: 7px; }
.vb .barra i { display: block; height: 100%; background: var(--ce, var(--c)); border-radius: 6px; transition: width 1s; }
.vb .meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--gris); margin-top: 4px; }
.vb .sig { font-size: 12.5px; color: var(--gris); font-weight: 600; margin-top: 5px; }
.vb .sig b { color: var(--texto); }
.vb .sig b.mio, .vivo-prox .mio .cod { color: var(--c); }
.vivo-vacio { background: #fff; border: 1px dashed var(--borde); border-radius: 20px; padding: 22px; text-align: center; color: var(--gris); }
.vivo-vacio i { font-size: 30px; display: block; color: var(--c); margin-bottom: 4px; }

/* Próximos */
.vivo-prox { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vivo-prox li { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 11px 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.vivo-prox li.primero { border: 2px solid color-mix(in srgb, var(--c) 55%, #fff); }
.vivo-prox li.mio { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.vivo-prox li.vacio { display: block; text-align: center; color: var(--gris); font-weight: 600; }
.vivo-prox .cod { font-size: 22px; font-weight: 800; letter-spacing: -.3px; min-width: 64px; line-height: 1; }
.vivo-prox .cod small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-top: 3px; }
.vivo-prox .med { min-width: 0; }
.vivo-prox .serv { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vivo-prox .con { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; }
.vivo-prox .con em { font-style: normal; color: var(--gris); font-weight: 600; flex: 0 0 auto; }
.vivo-prox .con .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vivo-prox .mini { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; overflow: hidden; background: var(--ce, var(--c)); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.vivo-prox .cuando { text-align: right; }
.vivo-prox .cuando b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; }
.vivo-prox .cuando small { font-size: 11px; font-weight: 700; color: var(--gris); white-space: nowrap; }
.vivo-prox .cuando small.local { color: #1D7A4C; }

/* Botón fijo abajo */
.vivo-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); z-index: 20; }
.vivo-cta .btn { max-width: 688px; margin: 0 auto; display: block; font-weight: 800; border-radius: 16px; box-shadow: 0 8px 24px color-mix(in srgb, var(--c) 35%, transparent); }
.vivo-cta[hidden] { display: none; }
.boton-vivo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; padding: 10px; border-radius: 14px; font-weight: 700; text-decoration: none;
              background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.boton-vivo:hover { background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); }
@media (prefers-reduced-motion: reduce) { .vivo-llamado, .vivo-llamado b, .vivo-mio.llamado, .vb.llamando .f { animation: none !important; } }

/* =================================================================
   CUENTA DEL CLIENTE (cuenta/*)
   ================================================================= */
.cta-barra { background: #fff; border-bottom: 1px solid var(--borde); padding: 10px 0; position: sticky; top: 0; z-index: 10; }
.cta-barra b { font-size: 16px; }
.cta-atras { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--texto); text-decoration: none; font-size: 20px; }
.cta-atras:hover { background: var(--fondo); color: var(--texto); }
.cta-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; overflow: hidden; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; }
.cta-logo img { width: 100%; height: 100%; object-fit: cover; }
.cta-marca { font-weight: 800; font-size: 18px; color: var(--c); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.cta-caja { padding: 26px 22px !important; margin-top: 8px; }
.cta-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 30px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.cta-tit { font-size: 24px; font-weight: 800; text-align: center; letter-spacing: -.4px; margin-bottom: 6px; }
.cta-o { display: flex; align-items: center; gap: 12px; color: var(--gris); font-size: 13px; font-weight: 600; margin: 22px 0 14px; }
.cta-o::before, .cta-o::after { content: ''; flex: 1; height: 1px; background: var(--borde); }
.ver-clave { border-color: #dee2e6 !important; }
.trampa { position: absolute !important; left: -9999px !important; }

/* Botón de cuenta sobre la portada del negocio */
.pub-cuenta { position: absolute; top: 12px; right: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 30px;
              background: rgba(255,255,255,.92); color: var(--texto); text-decoration: none; font-weight: 700; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.12); backdrop-filter: blur(6px); }
.pub-cuenta:hover { background: #fff; color: var(--texto); }
.pub-cuenta .av { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.pub-cuenta.sin { padding: 7px 14px; }
.pub-cabeza { position: relative; }

/* «Reservas como…» en los formularios */
.reservo-como { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 25%, #fff); border-radius: 16px; padding: 12px 14px; }
.reservo-como .av { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.reservo-como small { display: block; color: var(--gris); font-weight: 600; }
.reservo-como a { margin-left: auto; font-size: 13px; color: var(--gris); white-space: nowrap; }
.invita-cuenta { display: flex; gap: 12px; align-items: center; }
.invita-cuenta i.ic { font-size: 28px; color: var(--c); }

/* Mis reservas */
.mr-cabeza { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 65%, #000)); color: #fff; padding: 14px 0 0; }
.mr-salir { color: #fff; opacity: .9; text-decoration: none; font-weight: 600; font-size: 14px; }
.mr-salir:hover { color: #fff; opacity: 1; }
.mr-hola { display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; }
.mr-hola .mr-av { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.2); border: 3px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.mr-hola small { opacity: .85; font-weight: 600; }
.mr-hola h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.1; }
.mr-hola span { font-size: 13px; opacity: .85; }
.mr-tabs { display: flex; gap: 4px; overflow-x: auto; }
.mr-tabs a { color: #fff; opacity: .8; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 14px 14px 0 0; white-space: nowrap; }
.mr-tabs a.activa { opacity: 1; background: var(--fondo); color: var(--texto); }
.mr { max-width: 760px; }
.mr-logo { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--c); }
.mr-logo img { width: 100%; height: 100%; object-fit: cover; }
.mr-turno { background: #fff; border: 2px solid var(--c); border-radius: 22px; padding: 16px; margin-bottom: 12px; box-shadow: 0 8px 24px color-mix(in srgb, var(--c) 14%, transparent); }
.mr-turno.est-llamado { animation: latir-v 1.4s ease-in-out infinite; border-color: #E0A21B; }
.mr-turno-cuerpo { display: flex; align-items: center; gap: 16px; }
.mr-cod small, .mr-datos small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--gris); }
.mr-cod { flex: 0 0 auto; }
.mr-cod b { white-space: nowrap; font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--c); }
.mr-datos { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mr-datos > div { background: var(--fondo); border-radius: 14px; padding: 8px 10px; }
.mr-datos b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.mr-estado { margin-top: 12px; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.mr-acc { display: flex; gap: 8px; margin-top: 12px; }
.mr-acc .btn { flex: 1; font-weight: 700; }
.chip-gris { background: #EEF2F3; color: #4A5D62; }
.chip-verde { background: #E3F6EC; color: #1D7A4C; }
.chip-amar { background: #FFF4D6; color: #8A5B00; }
.chip-azul { background: #E5F0FF; color: #1F5FBF; }
.chip-rojo { background: #FDE8E7; color: #B42318; }
.chip-mr { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-top: 4px; white-space: nowrap; }
.mr-cita { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: var(--texto); }
.mr-cita:hover { border-color: var(--c); color: var(--texto); }
.mr-fecha { width: 52px; flex: 0 0 52px; text-align: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 10%, #fff); padding: 5px 0; line-height: 1.05; }
.mr-fecha small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--c); }
.mr-fecha b { font-size: 22px; font-weight: 800; }
.mr-negocios { display: grid; gap: 10px; }
@media (min-width: 640px) { .mr-negocios { grid-template-columns: 1fr 1fr; } }
.mr-neg { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: 14px; }
.mr-neg-acc { display: flex; gap: 6px; margin-top: 12px; }
.mr-neg-acc .btn-c { flex: 1; font-weight: 700; }
.mr-hist { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--borde); text-decoration: none; color: var(--texto); }
.mr-hist:first-child { border-top: 0; }
.mr-hist:hover { background: var(--fondo); color: var(--texto); }
.vivo-vacio small { color: var(--gris); }
.mr-acc .btn { white-space: nowrap; }
.mr-datos > div { min-width: 0; }
@media (max-width: 399.98px) {
  .mr-turno-cuerpo { gap: 10px; }
  .mr-cod b { font-size: 30px; }
  .mr-datos b { font-size: 15px; }
  .mr-datos small { font-size: 10px; letter-spacing: .4px; }
  .mr-acc .btn { font-size: 14px; padding-left: 8px; padding-right: 8px; }
}

/* Casilla «Crear mi cuenta» al reservar */
.crear-cuenta { border: 1.5px dashed color-mix(in srgb, var(--c) 40%, #fff); background: color-mix(in srgb, var(--c) 5%, #fff); border-radius: 16px; padding: 12px 14px; }
.crear-cuenta .cc-clave { display: none; }
.crear-cuenta.abierta { border-style: solid; }
.crear-cuenta.abierta .cc-clave { display: block; }
.crear-cuenta .form-check-input:checked { background-color: var(--c); border-color: var(--c); }
.crear-cuenta .form-check-input:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--c) 25%, transparent); border-color: var(--c); }

/* =================================================================
   RESEÑAS
   ================================================================= */
.estrellas { color: #F5A524; white-space: nowrap; letter-spacing: 1px; }
.estrellas.chicas { font-size: 12px; letter-spacing: 0; }
.estrellas.grandes { font-size: 18px; color: #F5A524; }
.verificada { color: #2BB673; }
.pub-calif { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 14px; color: var(--texto); text-decoration: none; }
.pub-calif i { color: #F5A524; }
.pub-calif span { color: var(--gris); }
.pub-calif:hover { color: var(--texto); text-decoration: underline; }
.miembro-calif { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; margin-top: 3px; }
.miembro-calif i { color: #F5A524; }
.miembro-calif em { font-style: normal; color: var(--gris); font-weight: 600; }

.calif-resumen { display: flex; gap: 22px; align-items: center; margin-bottom: 8px; }
.calif-num { text-align: center; flex: 0 0 auto; }
.calif-num b { display: block; font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; }
.calif-num small { display: block; color: var(--gris); font-weight: 600; font-size: 13px; margin-top: 3px; }
.calif-barras { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.calif-barras > * { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--texto); text-decoration: none; border-radius: 8px; padding: 1px 4px; }
.calif-barras > a:hover, .calif-barras > a.activa { background: color-mix(in srgb, var(--c) 9%, #fff); }
.calif-barras i.bi { color: #F5A524; font-size: 11px; }
.calif-barras small { width: 26px; text-align: right; color: var(--gris); }
.barra-c { flex: 1; height: 8px; background: #EEF3F4; border-radius: 6px; overflow: hidden; }
.barra-c i { display: block; height: 100%; background: #F5A524; border-radius: 6px; }

.resena { padding: 14px 0; border-top: 1px solid var(--borde); }
.calif-resumen + .resena, .lista-resenas .resena:first-child { border-top: 0; }
.lista-resenas { padding-top: 6px !important; padding-bottom: 6px !important; }
.resena-cab { display: flex; align-items: center; gap: 10px; }
.resena-cab .estrellas { font-size: 13px; }
.resena-foto { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; overflow: hidden; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; }
.resena-foto img { width: 100%; height: 100%; object-fit: cover; }
.resena-txt { margin: 8px 0 0; line-height: 1.5; }
.resena-barbero { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; background: var(--fondo); padding: 4px 10px 4px 4px; border-radius: 20px; }
.resena-barbero .mini { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.resena-barbero .mini img { width: 100%; height: 100%; object-fit: cover; }
.resena-resp { margin-top: 10px; margin-left: 14px; border-left: 3px solid var(--c); padding: 6px 12px; background: color-mix(in srgb, var(--c) 5%, #fff); border-radius: 0 12px 12px 0; font-size: 14px; }
.resena-resp small { font-weight: 800; color: var(--c); }

.filtro-barberos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.fb { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 92px; padding: 10px 6px; background: #fff; border: 1.5px solid var(--borde); border-radius: 16px; text-decoration: none; color: var(--texto); }
.fb.activa { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.fb-foto { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--ce, var(--c)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.fb-foto img { width: 100%; height: 100%; object-fit: cover; }
.fb b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb small { font-size: 11.5px; color: var(--gris); font-weight: 700; white-space: nowrap; }
.fb small i { color: #F5A524; }

/* Calificar */
.calif-bloque { text-align: center; background: var(--fondo); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.calif-bloque .resena-foto { width: 34px; height: 34px; flex-basis: 34px; }
.calif-txt { display: block; color: var(--gris); font-weight: 700; min-height: 20px; }
.elegir-est { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 6px 0 2px; }
.elegir-est input { position: absolute; opacity: 0; pointer-events: none; }
.elegir-est label { font-size: 38px; color: #D7DEE0; cursor: pointer; transition: transform .12s, color .12s; line-height: 1; }
.elegir-est label:hover, .elegir-est label:hover ~ label, .elegir-est input:checked ~ label { color: #F5A524; }
.elegir-est label:active { transform: scale(.88); }
.elegir-est input:focus-visible + label { outline: 2px solid var(--c); border-radius: 6px; }

/* Cuenta: foto y calificar */
.mr-hola .mr-av { overflow: hidden; color: #fff; text-decoration: none; }
.mr-hola .mr-av img { width: 100%; height: 100%; object-fit: cover; }
.mr-foto-caja { display: flex; align-items: center; gap: 18px; }
.mr-foto-grande { position: relative; width: 92px; height: 92px; flex: 0 0 92px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 800; cursor: pointer; margin: 0; }
.mr-foto-grande img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mr-foto-grande > i { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mr-foto-grande.subiendo { opacity: .5; }
.mr-calificar { display: flex; align-items: center; gap: 12px; background: #FFFBEF; border: 1.5px solid #F7DC9A; border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; text-decoration: none; color: var(--texto); }
.mr-calificar:hover { color: var(--texto); border-color: #F5A524; }
.mr-mi-resena { text-decoration: none; }
.calificar-ya { border: 1.5px solid #F7DC9A !important; background: #FFFBEF !important; }
.calificar-ya i.ic { color: #F5A524 !important; }
@media (max-width: 399.98px) { .calif-resumen { gap: 14px; } .calif-num b { font-size: 40px; } .mr-calificar .estrellas.grandes { display: none; } }
.resena-cab small { font-size: 12.5px; white-space: nowrap; }

/* =================================================================
   CATÁLOGO DE ESTILOS
   ================================================================= */
.estilos-tira { margin-bottom: 16px; }
.ver-todos { border: 0; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); font-weight: 700; font-size: 13px; border-radius: 20px; padding: 6px 12px; white-space: nowrap; }
.tira { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.tira::-webkit-scrollbar { display: none; }
.tira-item { position: relative; flex: 0 0 132px; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--borde); scroll-snap-align: start; box-shadow: 0 4px 14px rgba(20,48,58,.1); }
.tira-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tira-item:hover img { transform: scale(1.04); }
.tira-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 9px 8px; color: #fff; font-size: 12.5px; font-weight: 700; text-align: left; line-height: 1.2;
                  background: linear-gradient(to top, rgba(0,0,0,.75), transparent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tira-item.mas { display: flex; flex-direction: column; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); box-shadow: none; }
.tira-item.mas b { font-size: 26px; }
.tira-item.mas span { position: static; background: none; color: var(--c); padding: 0; text-align: center; }
@media (min-width: 768px) { .tira-item { flex-basis: 150px; } }

.estilo-elegido { display: flex; align-items: center; gap: 10px; background: #FFF8E6; border: 1.5px solid #F7DC9A; border-radius: 16px; padding: 8px 10px; margin-bottom: 14px; }
.estilo-elegido img { width: 44px; height: 55px; object-fit: cover; border-radius: 10px; flex: 0 0 44px; }
.estilo-elegido small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #8A5B00; }
.ee-x { border: 0; background: rgba(0,0,0,.06); width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px; }

/* Galería a pantalla completa */
.galeria { position: fixed; inset: 0; z-index: 1060; background: #0E1A1E; color: #fff; display: flex; flex-direction: column; }
.galeria[hidden] { display: none; }
.gal-cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
.gal-cab b { font-size: 16px; }
.gal-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; }
.gal-x[hidden] { visibility: hidden; display: block; }
.gal-cats { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.gal-cats[hidden] { display: none; }
.gal-cats button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 20px; padding: 5px 14px; font-weight: 600; font-size: 13px; }
.gal-cats button.activa { background: #fff; color: #0E1A1E; border-color: #fff; }
.gal-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 0 6px 20px; align-content: start; }
.gal-grid[hidden] { display: none; }
@media (max-width: 575.98px) { .gal-grid { grid-template-columns: 1fr 1fr; } }
.gal-item { position: relative; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #1D2B30; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 7px; font-size: 12.5px; font-weight: 700; color: #fff; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); }
.gal-visor { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.gal-visor[hidden] { display: none; }
.gal-foto { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.gal-foto img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gal-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; }
.gal-flecha.izq { left: 10px; } .gal-flecha.der { right: 10px; }
@media (hover: none) { .gal-flecha { width: 38px; height: 38px; font-size: 16px; background: rgba(0,0,0,.3); } }
.gal-pos { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; background: rgba(0,0,0,.45); padding: 3px 10px; border-radius: 12px; }
.gal-info { background: #fff; color: var(--texto); border-radius: 24px 24px 0 0; padding: 16px 18px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .gal-info { max-width: 560px; width: 100%; margin: 0 auto; } }
.gal-nombre { font-size: 19px; font-weight: 800; display: block; }
.gal-cat { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); padding: 3px 10px; border-radius: 20px; }
.gal-cat[hidden], .gal-desc[hidden] { display: none; }
.gal-desc { margin: 8px 0 0; font-size: 14px; color: var(--gris); }
.gal-emp { display: flex; align-items: center; gap: 7px; font-size: 14px; margin: 10px 0 2px; }
.gal-emp:empty { display: none; }
.gal-emp .mini { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.gal-emp .mini img { width: 100%; height: 100%; object-fit: cover; }
.gal-info .btn { margin-top: 12px; border-radius: 16px; }
/* Estilo pedido (páginas del turno y la cita) */
.estilo-reserva { display: flex; align-items: center; gap: 12px; }
.estilo-reserva img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; flex: 0 0 64px; }
html:not(.pwa-puede) [data-instalar] { display: none !important; }

/* Etiqueta «Popular» en los estilos más vistos y pedidos */
.et-popular { position: absolute; top: 8px; left: 8px; z-index: 2; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .2px; color: #fff;
  background: linear-gradient(135deg, #FF7A45, #E5484D); border-radius: 20px; padding: 3px 9px 3px 7px; box-shadow: 0 4px 12px rgba(229,72,77,.4); white-space: nowrap; animation: etLatir 2.6s ease-in-out infinite; }
.et-popular.en-linea { position: static; display: inline-block; margin-bottom: 6px; font-size: 12px; animation: none; }
.et-popular.en-linea[hidden] { display: none; }
@keyframes etLatir { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .et-popular { animation: none; } }

/* ===================== OFERTAS ===================== */
.ofertas-pub { margin-bottom: 18px; }
.ofertas-pub .pub-h2 i { color: #E5484D; }
.of-lista { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.of-lista::-webkit-scrollbar { display: none; }
.of-pub { flex: 0 0 86%; max-width: 420px; scroll-snap-align: start; background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  border: 2px solid #FFD3C2; box-shadow: 0 10px 28px rgba(229,72,77,.13); }
.of-lista.una .of-pub { flex-basis: 100%; max-width: none; }
@media (min-width: 640px) { .of-lista.una .of-pub { flex-direction: row; } .of-lista.una .of-foto { flex: 0 0 42%; height: auto; min-height: 220px; } }
.of-foto { height: 150px; position: relative; background: linear-gradient(135deg, #FF7A45, #E5484D) center/cover no-repeat; display: grid; place-items: center; }
.of-ico { font-size: 54px; color: rgba(255,255,255,.35); }
.of-pct { position: absolute; top: 12px; right: 12px; background: #fff; color: #E5484D; font-weight: 800; font-size: 18px; border-radius: 12px; padding: 3px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); transform: rotate(4deg); }
.of-sello { position: absolute; inset: auto 0 0; background: rgba(22,50,58,.82); color: #fff; text-align: center; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 6px; }
.of-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.of-nom { font-size: 19px; line-height: 1.2; }
.of-incluye { color: var(--gris); font-size: 13px; }
.of-desc { margin: 0; font-size: 14px; color: #3E555B; }
.of-precio { display: flex; align-items: baseline; gap: 10px; margin: 2px 0; }
.of-precio del { color: var(--gris); font-size: 14px; }
.of-precio b { font-size: 26px; font-weight: 800; color: #E5484D; }
.of-urg { display: flex; flex-wrap: wrap; gap: 6px; }
.of-urg > span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; background: #FFF1EB; color: #B4361F; border-radius: 20px; padding: 3px 10px; }
.of-reloj.urgente { background: #E5484D; color: #fff; animation: etLatir 1.6s ease-in-out infinite; }
.of-barra { height: 7px; background: #FFE6DC; border-radius: 6px; overflow: hidden; }
.of-barra i { display: block; height: 100%; background: linear-gradient(90deg, #FF7A45, #E5484D); border-radius: 6px; }
.btn-of { background: linear-gradient(135deg, #FF7A45, #E5484D); color: #fff; border: 0; border-radius: 14px; font-weight: 800; padding: 11px; margin-top: 4px;
  box-shadow: 0 8px 18px rgba(229,72,77,.3); }
.btn-of:hover, .btn-of:focus { color: #fff; filter: brightness(.95); }
.of-nota { color: var(--gris); font-size: 12px; text-align: center; }
.of-pub.agotada { border-color: var(--borde); box-shadow: none; }
.of-pub.agotada .of-foto { filter: grayscale(.85); }
.of-pub.agotada .of-precio b { color: var(--gris); }
.oferta-elegida { display: flex; align-items: center; gap: 10px; background: #FFF1EB; border: 1.5px solid #FFC4AE; border-radius: 16px; padding: 8px 10px; margin-bottom: 14px; }
.oferta-elegida small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #B4361F; }
.oe-ico { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; font-size: 19px; background: linear-gradient(135deg, #FF7A45, #E5484D); }
.pub-total del.tachado { font-size: 12px; font-weight: 600; color: var(--gris); margin-left: 4px; }
.res-oferta { color: #B4361F; font-weight: 700; }
.res-oferta i { color: #E5484D !important; }
.dia.fuera-oferta { opacity: .35; }
.oferta-reserva { background: #FFF1EB; color: #B4361F; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .of-reloj.urgente { animation: none; } }
.pub-total b { overflow: hidden; text-overflow: ellipsis; }
/* El nombre del negocio siempre debajo de la portada (que no quede encima de la foto) */
@media (min-width: 576px) {
  .pub-cabeza:not(.compacto) .pub-identidad { align-items: flex-start; }
  .pub-cabeza:not(.compacto) .pub-nombre { padding-top: 76px; }
}
/* Galería: que cada foto tenga su alto propio (en celulares las filas se encimaban) */
.gal-grid { grid-auto-rows: max-content; }
.gal-item { aspect-ratio: auto; height: auto; flex-shrink: 0; }
.gal-item img { height: auto; aspect-ratio: 4 / 5; }
/* Mapa en la página del negocio */
.pub-mapa { position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--borde); height: 220px; background: var(--fondo); }
.pub-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.pub-mapa-ir { position: absolute; right: 10px; bottom: 10px; border-radius: 12px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.pub-mas-cerca { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--c); text-decoration: none; }
