/* Web pública de Moksy: portada comercial, página de reservas de cada negocio y zona del cliente. */

:root {
    --w-primary: #6D3BE8;
    --w-primary-rgb: 109, 59, 232;
    --w-primary-dark: #5A2BD0;
    --w-link: #5328C7;
    --w-ink: #1F1B2D;
    --w-ink-2: #625D73;
    --w-bg: #FFFFFF;
    --w-bg-2: #F6F4FB;
    --w-tinte: #F3EFFE;
    --w-border: #E3E1E8;
    --w-success: #17803D;
    --w-success-bg: #E6F6EC;
    --w-warning: #8A5A00;
    --w-warning-bg: #FFF4D6;
    --w-danger: #C7302B;
    --w-danger-bg: #FDE6E5;
    --w-on-primary: #FFFFFF;
    --w-estrella: #E8A100;
    --w-shadow: 0 1px 2px rgba(31, 27, 45, 0.06), 0 8px 24px rgba(31, 27, 45, 0.08);
    --w-radius: 14px;
    --w-radius-sm: 10px;
    --w-radius-xs: 8px;
    --w-radius-md: 16px;
    --w-radius-lg: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--w-ink); background: var(--w-bg); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.9em; }
a { color: var(--w-link); }
img { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
main { min-height: 60vh; }

.w-ancho { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.w-estrecho { max-width: 620px; }
.w-centro { text-align: center; }
.w-pista { color: var(--w-ink-2); font-size: 0.9rem; }
.w-enlace { background: none; border: 0; padding: 0; color: var(--w-link); text-decoration: underline; cursor: pointer; }
.w-error { color: var(--w-danger); font-size: 0.9rem; }
.w-aviso { padding: 0.75rem 0.9rem; background: var(--w-warning-bg); color: var(--w-warning); border-radius: var(--w-radius-sm); }

/* ---- Botones ------------------------------------------------------------- */
.w-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.25rem; border: 1px solid var(--w-primary); border-radius: var(--w-radius-sm); background: var(--w-primary); color: var(--w-on-primary); font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s ease-out, transform 0.1s ease-out; }
.w-btn:hover { background: var(--w-primary-dark); border-color: var(--w-primary-dark); }
.w-btn:active { transform: scale(0.97); }
.w-btn:disabled { opacity: 0.6; cursor: default; }
.w-btn-sec { background: var(--w-bg); color: var(--w-link); }
.w-btn-sec:hover { background: var(--w-tinte); border-color: var(--w-primary); }
.w-btn-peligro { background: var(--w-bg); border-color: var(--w-danger); color: var(--w-danger); }
.w-btn-peligro:hover { background: var(--w-danger-bg); border-color: var(--w-danger); }
.w-btn-sm { min-height: 38px; padding: 0 0.9rem; font-size: 0.9rem; }
.w-btn-lg { min-height: 54px; padding: 0 1.6rem; font-size: 1.05rem; }
.w-btn-block { width: 100%; }

/* ---- Cabecera y pie ------------------------------------------------------- */
.w-cab { position: sticky; top: 0; z-index: 20; background: var(--w-bg); border-bottom: 1px solid var(--w-border); }
.w-cab-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; }
.w-logo { display: inline-flex; }
.w-nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; }
.w-nav a:not(.w-btn) { color: var(--w-ink); text-decoration: none; }
.w-nav a:not(.w-btn):hover { color: var(--w-link); }
@media (max-width: 560px) { .w-nav a[href^="/#"] { display: none; } }
.w-pie { margin-top: 3rem; padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--w-border); color: var(--w-ink-2); font-size: 0.875rem; }
.w-pie-in { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.w-pie nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.w-pie a { color: var(--w-ink-2); }

/* ---- Portada --------------------------------------------------------------- */
.w-hero { background: linear-gradient(180deg, var(--w-tinte), var(--w-bg)); padding: 3rem 0 2.5rem; }
.w-hero-in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .w-hero-in { grid-template-columns: 1.1fr 0.9fr; } .w-hero { padding: 4.5rem 0 3.5rem; } }
.w-hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); letter-spacing: -0.03em; }
.w-hero-txt { font-size: 1.1rem; color: var(--w-ink-2); max-width: 34em; }
.w-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.w-hero-maqueta { background: var(--w-bg); border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); box-shadow: var(--w-shadow); padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; max-width: 380px; width: 100%; justify-self: center; }
.w-maqueta-cab { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0.25rem 0.25rem; }
.w-maqueta-cab span { color: var(--w-ink-2); font-size: 0.85rem; }
.w-maqueta-cita { display: flex; flex-direction: column; padding: 0.5rem 0.7rem; border-left: 3px solid var(--c); border-radius: var(--w-radius-xs); background: color-mix(in srgb, var(--c) 12%, var(--w-bg)); line-height: 1.3; }
.w-maqueta-cita small, .w-maqueta-cita span { color: var(--w-ink-2); font-size: 0.8rem; }
.w-maqueta-cita.is-nueva { outline: 2px solid var(--w-primary); outline-offset: 2px; }
.w-maqueta-hueco { padding: 0.5rem 0.7rem; border: 1px dashed var(--w-border); border-radius: var(--w-radius-xs); color: var(--w-ink-2); font-size: 0.85rem; }

.w-sectores { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.w-sectores span { padding: 0.35rem 0.8rem; background: var(--w-bg-2); border-radius: 999px; font-size: 0.875rem; color: var(--w-ink-2); }

.w-bloque { padding-top: 3rem; padding-bottom: 3rem; }
.w-bloque > h2, .w-bloque > .w-ancho > h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.w-fondo { background: var(--w-bg-2); }
.w-rejilla { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.w-tarjeta { background: var(--w-bg); border: 1px solid var(--w-border); border-radius: var(--w-radius); padding: 1.25rem; }
.w-tarjeta p:last-child { margin-bottom: 0; }
.w-rejilla .w-tarjeta p { color: var(--w-ink-2); }
.w-pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.w-pasos li { counter-increment: paso; }
.w-pasos li::before { content: counter(paso); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 0.6rem; border-radius: 50%; background: var(--w-primary); color: var(--w-on-primary); font-weight: 700; }
.w-pasos p { color: var(--w-ink-2); }
.w-planes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; }
.w-plan h3 { font-size: 1.15rem; }
.w-plan h3 small { font-weight: 400; color: var(--w-ink-2); font-size: 0.8rem; }
.w-precio { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.w-plan ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--w-ink-2); }
.w-plan li { margin-bottom: 0.3rem; }
.w-duda { border-bottom: 1px solid var(--w-border); }
.w-duda summary { padding: 0.9rem 0; font-weight: 600; cursor: pointer; }
.w-duda p { color: var(--w-ink-2); }
.w-final { text-align: center; }
.w-vacio { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }

/* ---- Página del negocio ----------------------------------------------------- */
.w-neg { padding-top: 1.5rem; }
.w-neg-cab { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.25rem; }
.w-neg-cab h1 { margin: 0; }
.w-neg-cab .w-pista { margin: 0.15rem 0 0; }
.w-neg-inicial { flex: 0 0 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--w-radius-md); background: var(--w-primary); color: var(--w-on-primary); font-size: 1.5rem; font-weight: 700; }
.w-neg-cols { display: grid; gap: 2rem; }
@media (min-width: 860px) { .w-neg-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.w-neg-info { color: var(--w-ink-2); font-size: 0.95rem; }
.w-neg-info h3 { margin-top: 1.25rem; color: var(--w-ink); }
.w-horario { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0; }
.w-horario dd { margin: 0; }

.w-reserva { scroll-margin-top: 76px; }
.w-reserva h3 { margin: 1.25rem 0 0.5rem; color: var(--w-ink-2); font-size: 0.9rem; font-weight: 600; }
.w-servicios-plano { list-style: none; margin: 0; padding: 0; }
.w-servicios-plano li { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--w-border); }
.w-servicio { display: flex; align-items: center; gap: 0.8rem; min-height: 60px; padding: 0.7rem 0.85rem; margin-bottom: 0.5rem; border: 1px solid var(--w-border); border-radius: var(--w-radius-sm); cursor: pointer; transition: background 0.15s ease-out, border-color 0.15s ease-out; }
.w-servicio.is-fijo { cursor: default; }
.w-servicio:has(input:checked) { background: var(--w-tinte); border-color: var(--w-primary); }
.w-servicio input { width: 22px; height: 22px; accent-color: var(--w-primary); flex: none; }
.w-servicio div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w-servicio small { color: var(--w-ink-2); font-size: 0.85rem; }
.w-servicio > span { font-weight: 600; white-space: nowrap; }
.w-barra { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem -16px 0; padding: 0.75rem 16px calc(0.75rem + env(safe-area-inset-bottom)); background: var(--w-bg); border-top: 1px solid var(--w-border); font-weight: 600; }
.w-barra[hidden] { display: none; }
.w-volver { display: inline-block; min-height: 44px; margin-bottom: 0.25rem; text-decoration: none; }
.w-opcion { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 56px; padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; background: var(--w-bg); border: 1px solid var(--w-border); border-radius: var(--w-radius-sm); text-align: left; cursor: pointer; }
.w-opcion:hover { background: var(--w-tinte); border-color: var(--w-primary); }
.w-opcion small { color: var(--w-ink-2); }

.w-dias { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.75rem; scrollbar-width: thin; }
.w-dia { flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; padding: 0.5rem 0; background: var(--w-bg); border: 1px solid var(--w-border); border-radius: var(--w-radius-sm); line-height: 1.2; cursor: pointer; }
.w-dia span, .w-dia small { font-size: 0.75rem; color: var(--w-ink-2); text-transform: capitalize; }
.w-dia b { font-size: 1.2rem; }
.w-dia.is-actual { background: var(--w-primary); border-color: var(--w-primary); }
.w-dia.is-actual span, .w-dia.is-actual small, .w-dia.is-actual b { color: var(--w-on-primary); }
.w-dia-txt::first-letter { text-transform: uppercase; }
.w-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 0.5rem; }
.w-hora { min-height: 46px; background: var(--w-bg); border: 1px solid var(--w-border); border-radius: var(--w-radius-sm); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.w-hora:hover { background: var(--w-tinte); border-color: var(--w-primary); }

.w-resumen { margin: 0.5rem 0 1.25rem; padding: 0.25rem 0.9rem; background: var(--w-bg-2); border-radius: var(--w-radius-sm); }
.w-resumen > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--w-border); }
.w-resumen > div:last-child { border-bottom: 0; }
.w-resumen span::first-letter { text-transform: uppercase; }
.w-resumen-total { font-weight: 700; }
.w-politica { padding: 0.75rem 0.9rem; background: var(--w-bg-2); border-radius: var(--w-radius-sm); font-size: 0.9rem; white-space: pre-line; }

.w-form label { display: block; margin-bottom: 0.9rem; font-size: 0.9rem; font-weight: 600; }
.w-form input, .w-form textarea { display: block; width: 100%; min-height: 48px; margin-top: 0.3rem; padding: 0.6rem 0.8rem; border: 1px solid var(--w-border); border-radius: var(--w-radius-sm); background: var(--w-bg); font-size: 16px; font-weight: 400; }
.w-form input:focus, .w-form textarea:focus { outline: 3px solid rgba(var(--w-primary-rgb), 0.25); border-color: var(--w-primary); }
.w-codigo { font-size: 1.5rem !important; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }

.w-hecho { text-align: center; padding: 1.5rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.w-hecho p { margin: 0; }
.w-hecho p::first-letter { text-transform: uppercase; }
.w-hecho .w-btn { margin: 1rem 0 0.5rem; }
.w-hecho-ico { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--w-success-bg); color: var(--w-success); font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ---- Cita y mis citas -------------------------------------------------------- */
.w-estrecho > h1 { margin-top: 1.5rem; }
.w-estado { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--w-bg-2); color: var(--w-ink-2); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.w-estado.is-bien { background: var(--w-success-bg); color: var(--w-success); }
.w-estado.is-aviso { background: var(--w-warning-bg); color: var(--w-warning); }
.w-estado.is-mal { background: var(--w-danger-bg); color: var(--w-danger); }
.w-tarjeta h2 { margin-top: 0.6rem; }
.w-tarjeta h2::first-letter { text-transform: uppercase; }
.w-datos { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; margin: 1rem 0 1.25rem; }
.w-datos dt { color: var(--w-ink-2); }
.w-datos dd { margin: 0; }
.w-acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w-acciones[hidden] { display: none; }
.w-acciones .w-btn { flex: 1 1 160px; }
.w-cita { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--w-border); color: var(--w-ink); text-decoration: none; }
.w-cita div { display: flex; flex-direction: column; min-width: 0; }
.w-cita b::first-letter { text-transform: uppercase; }
.w-cita div span { color: var(--w-ink-2); font-size: 0.875rem; }

.w-legal { padding-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Valoraciones ------------------------------------------------------------- */
.w-nota { color: var(--w-estrella); letter-spacing: 0.05em; }
.w-media b { font-size: 1.6rem; color: var(--w-ink); }
.w-media small { margin-left: 0.4rem; }
.w-opinion { padding: 0.75rem 0; border-top: 1px solid var(--w-border); }
.w-opinion small { display: block; color: var(--w-ink-2); }
.w-opinion p { margin: 0.35rem 0 0; color: var(--w-ink); }
.w-respuesta { padding: 0.5rem 0.75rem; background: var(--w-bg-2); border-radius: var(--w-radius-sm); font-size: 0.9rem; }
.w-valorar { margin-bottom: 1rem; }
/* Las estrellas van en orden inverso en el HTML para poder pintar «esta y las anteriores» solo con CSS. */
.w-estrellas { display: inline-flex; flex-direction: row-reverse; margin-bottom: 0.75rem; }
.w-estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.w-estrellas label { margin: 0; padding: 0 0.15rem; font-size: 2.4rem; line-height: 1; color: var(--w-border); cursor: pointer; }
.w-estrellas input:checked ~ label, .w-estrellas label:hover, .w-estrellas label:hover ~ label { color: var(--w-estrella); }
.w-estrellas input:focus-visible + label { outline: 2px solid var(--w-primary); border-radius: 6px; }

.w-espera { margin-top: 1.25rem; }
.w-espera .w-enlace { display: inline-block; padding: 0.6rem 0; }

.w-form .w-check { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 400; cursor: pointer; }
.w-form .w-check input { display: inline-block; width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--w-primary); }

/* ---- Fotos del negocio: portada, logo y galería de trabajos -------------------- */
.w-neg-portada { aspect-ratio: 16 / 9; margin-bottom: 1.25rem; overflow: hidden; border-radius: var(--w-radius-md); background: var(--w-bg-2); }
.w-neg-portada img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .w-neg-portada { aspect-ratio: 3 / 1; border-radius: var(--w-radius-lg); } }
.w-neg-logo { flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--w-border); border-radius: 50%; background: var(--w-bg-2); object-fit: cover; }

.w-trabajos { margin-top: 2.5rem; scroll-margin-top: 76px; }
.w-galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 560px) { .w-galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .w-galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } }
.w-galeria-foto { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--w-radius-sm); background: var(--w-bg-2); }
.w-galeria-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease-out; }
.w-galeria-foto:hover img { transform: scale(1.04); }
.w-galeria-foto:focus-visible { outline: 3px solid rgba(var(--w-primary-rgb), 0.5); outline-offset: 2px; }

/* Visor: el <dialog> ocupa la pantalla entera y hace él mismo de velo. */
html:has(.w-visor[open]) { overflow: hidden; }
.w-visor { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: color-mix(in srgb, var(--w-ink) 94%, transparent); color: var(--w-on-primary); overscroll-behavior: contain; }
.w-visor::backdrop { background: transparent; }
.w-visor figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; height: 100%; margin: 0; padding: calc(60px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom)); }
.w-visor img { flex: 0 1 auto; min-height: 0; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--w-radius-xs); }
.w-visor figcaption { flex: none; max-width: 40em; text-align: center; font-size: 0.95rem; }
.w-visor figcaption:empty { display: none; }
.w-visor-cuenta { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 16px; line-height: 44px; font-size: 0.9rem; font-variant-numeric: tabular-nums; opacity: 0.85; }
.w-visor-btn { position: absolute; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0 0 4px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--w-bg) 18%, transparent); color: var(--w-on-primary); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background 0.15s ease-out, transform 0.1s ease-out; }
.w-visor-btn:hover { background: color-mix(in srgb, var(--w-bg) 32%, transparent); }
.w-visor-btn:active { transform: scale(0.94); }
.w-visor-btn:focus-visible { outline: 2px solid var(--w-on-primary); outline-offset: 2px; }
.w-visor-btn[hidden] { display: none; }
.w-visor-cerrar { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
.w-visor-ant, .w-visor-sig { top: 50%; margin-top: -22px; }
.w-visor-ant { left: 8px; }
.w-visor-sig { right: 8px; }
@media (min-width: 860px) { .w-visor figure { padding-left: 72px; padding-right: 72px; } }

/* ---- Promociones ---------------------------------------------------------------- */
.w-promo { display: inline-block; align-self: flex-start; max-width: 100%; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--w-success-bg); color: var(--w-success); font-size: 0.75rem; font-style: normal; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.w-servicio .w-promo { margin-top: 0.25rem; }
.w-servicio > span s, .w-resumen b s { margin-right: 0.15rem; color: var(--w-ink-2); font-size: 0.85em; font-weight: 400; }
.w-servicio > span:has(s) { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.w-resumen > div > span { min-width: 0; }
.w-resumen > div > b { white-space: nowrap; }
.w-resumen-ahorro { color: var(--w-success); font-weight: 600; }
.w-hora.is-dto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.15; }
.w-hora small { color: var(--w-success); font-size: 0.7rem; font-weight: 600; }
.w-promo-leyenda { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.w-hecho-precio { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem !important; }
.w-datos .w-promo { margin-left: 0.35rem; }
/* Sin esto, la tira de días (scroll horizontal) ensancha la columna de la rejilla y la página se sale a lo ancho en móvil. */
.w-neg-cols > .w-reserva { min-width: 0; }

/* ---- Buscador ------------------------------------------------------------------- */
.w-lupa { flex: none; }
/* Con el enlace de buscar, a 360 px los textos de la cabecera se partían en dos líneas. */
.w-nav a { white-space: nowrap; }
.w-cab-in .w-logo { flex: none; }
.w-nav-buscar { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; }
@media (max-width: 560px) {
    .w-nav { gap: 0.6rem; }
    .w-nav-buscar { min-width: 40px; justify-content: center; }
    .w-nav-buscar span { display: none; }
}

.w-bus-form { display: grid; gap: 0.6rem; }
.w-bus-campo { display: block; min-width: 0; }
.w-bus-campo span { display: block; margin-bottom: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--w-ink-2); }
.w-bus-campo input, .w-bus-campo select { display: block; width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 1px solid var(--w-border); border-radius: var(--w-radius-sm); background: var(--w-bg); font: inherit; font-size: 16px; color: var(--w-ink); }
.w-bus-campo input:focus, .w-bus-campo select:focus { outline: 3px solid rgba(var(--w-primary-rgb), 0.25); border-color: var(--w-primary); }
.w-bus-enviar { gap: 0.45rem; min-height: 48px; }
@media (min-width: 700px) {
    .w-bus-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
    .w-bus-form.is-completo { grid-template-columns: 1.2fr 1fr 0.9fr auto; }
}

.w-bus-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w-bus-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border: 1px solid var(--w-border); border-radius: 999px; background: var(--w-bg); color: var(--w-ink); font-size: 0.9rem; text-decoration: none; white-space: nowrap; transition: background 0.15s ease-out, border-color 0.15s ease-out, transform 0.1s ease-out; }
.w-bus-cats a:hover { background: var(--w-tinte); border-color: var(--w-primary); }
.w-bus-cats a:active { transform: scale(0.97); }
.w-bus-cats a.is-actual { background: var(--w-tinte); border-color: var(--w-primary); color: var(--w-link); font-weight: 600; }
.w-bus-cats a.w-bus-cats-mas { border-color: transparent; background: none; color: var(--w-link); font-weight: 600; }

/* Portada: la entrada para quien busca dónde pedir cita. */
.w-hero-cliente { margin: 0.75rem 0 0; font-size: 0.95rem; }
.w-hero-cliente a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.w-bus-portada { padding-top: 1rem; padding-bottom: 0.5rem; scroll-margin-top: 76px; }
.w-bus-portada-caja { padding: 1.25rem 1rem; border: 1px solid var(--w-border); border-radius: var(--w-radius-lg); background: var(--w-bg); box-shadow: var(--w-shadow); }
.w-bus-portada-caja h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.w-bus-portada-caja .w-bus-form { margin: 1rem 0; }
@media (min-width: 700px) { .w-bus-portada-caja { padding: 1.75rem; } }

/* Página de resultados. */
.w-bus-cab { padding: 1.5rem 0 1.25rem; background: linear-gradient(180deg, var(--w-tinte), var(--w-bg)); }
.w-bus-cab h1 { margin-bottom: 0.9rem; }
.w-bus { padding-bottom: 1rem; }
/* En móvil las categorías van en una sola fila que se desliza: catorce píldoras en varias filas empujarían los resultados fuera de la pantalla. */
@media (max-width: 699px) {
    .w-bus > .w-bus-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 0.5rem; scrollbar-width: none; }
    .w-bus > .w-bus-cats::-webkit-scrollbar { display: none; }
}
.w-bus-total { margin: 1rem 0 0.75rem; }
.w-bus-lista { display: grid; gap: 1rem; }
@media (min-width: 640px) { .w-bus-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .w-bus-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.w-bus-tarjeta { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--w-border); border-radius: var(--w-radius-md); background: var(--w-bg); }
.w-bus-tarjeta.is-destacado { border-color: rgba(var(--w-primary-rgb), 0.45); }
.w-bus-foto { display: block; aspect-ratio: 16 / 9; background: var(--w-bg-2); }
.w-bus-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-bus-destacado { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.15rem 0.6rem; border: 1px solid rgba(var(--w-primary-rgb), 0.3); border-radius: 999px; background: var(--w-tinte); color: var(--w-link); font-size: 0.75rem; font-weight: 600; }
.w-bus-cuerpo { flex: 1; display: flex; flex-direction: column; padding: 0.9rem 1rem 1rem; }
.w-bus-quien { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.w-bus-quien > div { min-width: 0; }
/* Sin foto de portada, la etiqueta «Destacado» comparte fila con el nombre. */
.w-bus-tarjeta.is-destacado > .w-bus-destacado:first-child + .w-bus-cuerpo .w-bus-quien { padding-right: 5.5rem; }
.w-bus-quien h2 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.w-bus-quien h2 a { color: var(--w-ink); text-decoration: none; }
.w-bus-quien h2 a:hover { color: var(--w-link); }
.w-bus-quien .w-pista { margin: 0.1rem 0 0; font-size: 0.85rem; }
.w-bus-logo { flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid var(--w-border); border-radius: 50%; background: var(--w-bg-2); object-fit: cover; }
.w-bus-inicial { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--w-tinte); color: var(--w-link); font-size: 1.2rem; font-weight: 700; }
.w-bus-nota { margin: 0.6rem 0 0; font-size: 0.95rem; }
.w-bus-nota small { color: var(--w-ink-2); font-size: 0.85rem; }
.w-bus-servicios { list-style: none; margin: 0.6rem 0 0.9rem; padding: 0; font-size: 0.925rem; }
.w-bus-servicios li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-top: 1px solid var(--w-border); }
.w-bus-servicios li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-bus-servicios li b { font-weight: 600; white-space: nowrap; }
.w-bus-servicios .w-bus-mas { color: var(--w-ink-2); font-size: 0.85rem; }
.w-bus-cuerpo > .w-btn { margin-top: auto; }

.w-bus-paginas { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.w-bus-paginas > :last-child { justify-self: end; }
.w-bus-paginas > :first-child { justify-self: start; }
.w-bus-paginas .w-pista { margin: 0; text-align: center; }

.w-bus-vacio { padding: 2.5rem 0 1rem; text-align: center; }
.w-bus-sugerencias { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.w-bus-sugerencias .w-btn { max-width: 100%; white-space: normal; text-align: center; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.w-bus-poblaciones { margin-top: 2.5rem; }
.w-bus-negocio { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem; margin-top: 2.5rem; padding: 1rem; border-radius: var(--w-radius-md); background: var(--w-bg-2); }
.w-bus-negocio div { display: flex; flex-direction: column; flex: 1 1 220px; }
.w-bus-negocio span { color: var(--w-ink-2); font-size: 0.925rem; }
.w-bus-negocio .w-btn { flex: 1 1 auto; }
@media (min-width: 560px) { .w-bus-negocio .w-btn { flex: 0 0 auto; } }

/* ---- Formularios ---------------------------------------------------------------- */
.w-frm-aviso { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.9rem; padding: 0.9rem; background: var(--w-warning-bg); color: var(--w-warning); border-radius: var(--w-radius); }
.w-frm-enlace { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 48px; padding: 0.5rem 0.85rem; background: var(--w-bg); border-radius: var(--w-radius-sm); color: var(--w-ink); font-weight: 600; text-decoration: none; transition: transform 0.1s ease-out; }
.w-frm-enlace:active { transform: scale(0.985); }
.w-frm-enlace span { min-width: 0; }
.w-frm-enlace em { flex: none; color: var(--w-link); font-style: normal; white-space: nowrap; }
.w-frm-hechos { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; list-style: none; background: var(--w-bg-2); border-radius: var(--w-radius); font-size: 0.9rem; }
.w-frm-hechos.is-reciente { background: var(--w-success-bg); }
.w-frm-hechos li { display: flex; align-items: baseline; gap: 0.5rem; }
.w-frm-hechos i { flex: none; color: var(--w-success); font-style: normal; font-weight: 700; }
.w-frm-hechos span { flex: 1; min-width: 0; }
.w-frm-hechos em { flex: none; color: var(--w-success); font-style: normal; font-weight: 600; }

.w-frm-volver { margin: 1rem 0 0; }
.w-frm-volver a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.w-frm > h1 { margin-top: 0.25rem; }
.w-frm .w-tarjeta { margin-top: 1rem; }
.w-frm .w-tarjeta .w-hecho-ico + h2 { margin-top: 0; }
.w-frm-texto { margin-bottom: 1.25rem; padding: 0.9rem; max-height: 22rem; overflow-y: auto; background: var(--w-bg-2); border-radius: var(--w-radius-sm); font-size: 0.92rem; overflow-wrap: anywhere; }
.w-frm-p { margin-bottom: 1.1rem; }
.w-frm-p > label, .w-frm-p .w-check { margin-bottom: 0; }
.w-frm-p .w-error { margin: 0.3rem 0 0; }
.w-frm-p .w-check { align-items: flex-start; padding: 0.55rem 0; }
.w-frm-p .w-check input { margin-top: 0.1rem; }
.w-frm .is-obligatoria::after { content: ' *'; color: var(--w-danger); }
.w-frm-grupo { display: flex; flex-direction: column; gap: 0.45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.w-frm-grupo.is-fila { flex-direction: row; flex-wrap: wrap; }
.w-frm-grupo legend { float: left; width: 100%; margin-bottom: 0.45rem; padding: 0; font-size: 0.9rem; font-weight: 600; }
.w-form .w-frm-opcion { position: relative; display: flex; flex: 1 1 auto; margin: 0; font-weight: 400; cursor: pointer; }
.w-frm-grupo.is-fila .w-frm-opcion { flex: 1 1 120px; }
.w-form .w-frm-opcion input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; opacity: 0; }
.w-frm-opcion span { display: flex; align-items: center; flex: 1; min-height: 48px; padding: 0.5rem 0.9rem; border: 1px solid var(--w-border); border-radius: var(--w-radius-sm); background: var(--w-bg); font-size: 1rem; transition: transform 0.1s ease-out; }
.w-frm-grupo.is-fila .w-frm-opcion span { justify-content: center; }
.w-frm-opcion span:active { transform: scale(0.97); }
.w-frm-opcion input:checked + span { border-color: var(--w-primary); background: var(--w-tinte); color: var(--w-link); font-weight: 600; box-shadow: inset 0 0 0 1px var(--w-primary); }
.w-frm-opcion input:focus-visible + span { outline: 3px solid rgba(var(--w-primary-rgb), 0.25); }
.w-frm-firma { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--w-border); }
/* Sin gestos del navegador encima: el dedo dibuja, no desplaza la página. */
.w-frm-lienzo { position: relative; border: 1px dashed var(--w-ink-2); border-radius: var(--w-radius-sm); overflow: hidden; background: var(--w-on-primary); }
.w-frm-lienzo canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; touch-action: none; cursor: crosshair; }
.w-frm-lienzo-pista { position: absolute; inset: auto 0 0.6rem; text-align: center; color: var(--w-ink-2); font-size: 0.85rem; pointer-events: none; }
.w-frm-lienzo-pista[hidden] { display: none; }
.w-frm-borrar { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; }
.w-frm-nota { margin: 0.9rem 0 0; }

/* ---- Widget y compartir --------------------------------------------------------- */

/* ---- Cita: invitación a reseñar en Google ------------------------------------- */
.w-google { margin-top: 1rem; padding: 1rem; border-radius: var(--w-radius-sm); background: var(--w-tinte); }
.w-google p { margin: 0 0 0.75rem; color: var(--w-ink); }

/* ---- Zona del cliente: tarjetas de fidelidad ---------------------------------- */
.w-fid { margin: 0.75rem 0; padding: 1rem; border: 1px solid var(--w-border); border-radius: var(--w-radius); background: var(--w-bg-2); }
.w-fid-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.15rem 0.75rem; margin-bottom: 0.75rem; }
.w-fid-cab b { font-size: 1.05rem; }
.w-fid-cab a { font-size: 0.875rem; }
.w-fid-sellos { display: flex; flex-wrap: wrap; gap: 8px; }
.w-fid-sellos i { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--w-ink-2); background: var(--w-bg); }
.w-fid-sellos i.is-hecho { border: 2px solid var(--w-primary); background: var(--w-tinte); }
.w-fid-sellos i.is-hecho::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--w-primary); }
.w-fid-txt { margin: 0.6rem 0 0; }
.w-fid-puntos { margin: 0 0 0.5rem; }
.w-fid-puntos b { font-size: 1.75rem; line-height: 1; }
.w-fid-barra { height: 10px; border-radius: 999px; background: var(--w-border); overflow: hidden; }
.w-fid-barra span { display: block; height: 100%; border-radius: 999px; background: var(--w-primary); }
.w-fid-listo { margin: 0.75rem 0 0; padding: 0.55rem 0.75rem; border-radius: var(--w-radius-xs); background: var(--w-success-bg); color: var(--w-success); font-weight: 600; font-size: 0.9rem; }
.w-fid .w-pista { margin: 0.6rem 0 0; }
.w-fid-premios { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.w-fid-premios li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; border-top: 1px solid var(--w-border); font-size: 0.9rem; }
.w-fid-premios li small { color: var(--w-ink-2); white-space: nowrap; }
.w-fid-premios li.is-listo span { color: var(--w-success); font-weight: 600; }
.w-fid-caduca { font-size: 0.8rem; }

/* El atributo hidden tiene que ganar a los display de las etiquetas del formulario. */
.w-form [hidden] { display: none; }
