/* ==========================================================================
   Web pública: hoja de estilos única (inicio, servicios, equipo, reservar,
   mi cita y privacidad). Es una plantilla neutra para cualquier negocio con
   citas: barbería, salón, spa, consultorio, clínica dental, veterinaria...
   Lenguaje visual: el de la landing de Reservalope (fondo claro, Urbanist,
   botones y campos en píldora, listas con líneas finas, sin sombras ni
   adornos). La cabecera y el pie usan el color principal del negocio para
   que su logo se vea bien. Cada rubro añade su toque en rubros.css.
   --------------------------------------------------------------------------
   No carga css/main.css (que es del CRM): todo lo que usa la web pública
   está aquí. Los colores salen de la paleta de cada negocio, que
   TenantBrand.applyPalette() escribe en :root:
     --black   primario  → superficies de marca (cabecera, portada, pie)
     --white   terciario → texto sobre la marca y base de las zonas claras
     --yellow  secundario → acento: botones principales, detalles
   El acento NUNCA se usa como texto sobre fondo claro (puede no contrastar):
   ahí solo es relleno de botones (con texto en primario) o tinte de fondo.
   ========================================================================== */

/* ---------------- Tokens ---------------- */
:root {
  /* Paleta por defecto mientras se carga el negocio (gris neutro, sin marca) */
  --black: #111418;
  --white: #FFFFFF;
  --yellow: #E4E7EB;
  --yellow-hover: #F1F3F5;
  --yellow-press: #C9CED4;
  --yellow-soft: rgba(228, 231, 235, 0.12);
  --yellow-line: rgba(228, 231, 235, 0.45);
  --on-dark-hi: #FFFFFF;
  --on-dark-md: #D9DBDE;
  --on-dark-lo: #A9ADB3;
  --on-light-hi: #111418;
  --on-light-md: #3B4046;
  --on-light-lo: #5B6066;
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-dark-strong: rgba(255, 255, 255, 0.18);
  --line-light: rgba(17, 20, 24, 0.10);
  --line-light-strong: rgba(17, 20, 24, 0.22);

  /* Superficies y textos derivados */
  --brand: var(--black);
  --on-brand: var(--white);
  --on-brand-2: var(--on-dark-md);
  --on-brand-3: var(--on-dark-lo);
  --paper: var(--white);
  --paper-2: color-mix(in srgb, var(--white) 95%, var(--black));
  --card: var(--white);
  --text: var(--black);
  --text-2: var(--on-light-md);
  --text-3: var(--on-light-lo);
  --line: var(--line-light);
  --line-strong: var(--line-light-strong);
  --accent: var(--yellow);
  --accent-hover: var(--yellow-hover);
  --accent-press: var(--yellow-press);
  --on-accent: var(--black);
  --accent-tint: color-mix(in srgb, var(--yellow) 22%, var(--white));
  --focus: var(--black);

  --ok-bg: #E8F6EE;  --ok-text: #14532D;  --ok-line: #9BD3B0;
  --err-bg: #FDECEC; --err-text: #8A1C1C; --err-line: #F2A7A7;

  /* Tipografía */
  --font-display: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 3.2vw, 2.375rem);
  --fs-3xl: clamp(2.25rem, 5.4vw, 3.75rem);

  /* Espacios, radios, sombras, movimiento */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --btn-r: var(--r-pill);   /* botones, chips y campos; cada rubro puede cambiarlo */
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 18px 50px rgba(15, 18, 22, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
  --header-h: 68px;
  --container: 1180px;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { color: var(--text-2); text-wrap: pretty; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-brand { --focus: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -80px; z-index: 5000;
  padding: var(--s3) var(--s4); border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s3); }

/* Íconos SVG (js/utils/icons.js y Vocab.icon) */
.ic {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}
[data-icon], [data-v-icon] { display: inline-flex; align-items: center; justify-content: center; }

/* Mientras no se sabe qué negocio es, no se muestra marca, datos ni palabras
   del rubro (evita ver por un instante textos de otro negocio). La clase la
   quita TenantBrand.brandReady() o App.fatal(). */
.brand-pending .brand-wordmark,
.brand-pending .brand-img,
.brand-pending [data-t],
.brand-pending [data-t-row],
.brand-pending [data-wa-only],
.brand-pending [data-v],
.brand-pending [data-v-fmt],
.brand-pending [data-v-icon] { visibility: hidden; }

/* ---------------- Botones ---------------- */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1.5px solid var(--btn-line); border-radius: var(--btn-r);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { opacity: 0.88; }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn-lg { min-height: 54px; padding: 0 var(--s6); font-size: 1rem; }
.btn-block { width: 100%; }
/* Acento de la marca (texto en primario: contraste garantizado por la paleta) */
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-line: var(--accent); }
.btn-accent:hover { --btn-bg: var(--accent-hover); --btn-line: var(--accent-hover); }
.btn-accent:active { --btn-bg: var(--accent-press); }
/* Sólido en primario (sobre zonas claras) */
.btn-solid { --btn-bg: var(--black); --btn-fg: var(--white); --btn-line: var(--black); }
.btn-solid:hover { --btn-bg: color-mix(in srgb, var(--black) 86%, var(--white)); }
/* Contorno: hereda el color del texto de la superficie */
.btn-outline { --btn-fg: var(--text); --btn-line: var(--line-strong); }
.btn-outline:hover { --btn-line: var(--text); }
.on-brand .btn-outline { --btn-fg: var(--on-brand); --btn-line: var(--line-dark-strong); }
.on-brand .btn-outline:hover { --btn-line: var(--on-brand); --btn-bg: var(--line-dark); }
/* Portada y cabeceras interiores son claras aunque lleven .on-brand */
.hero.on-brand:not(.has-image) .btn-outline,
.page-hero.on-brand .btn-outline { --btn-fg: var(--text); --btn-line: var(--line-strong); --btn-bg: transparent; }
.hero.on-brand:not(.has-image) .btn-outline:hover,
.page-hero.on-brand .btn-outline:hover { --btn-line: var(--text); }
.btn-icon { min-width: 44px; min-height: 44px; padding: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--white); border-right-color: transparent; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.text-link .ic { width: 16px; height: 16px; }

/* ---------------- Cabecera ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  height: var(--header-h);
  background: var(--brand); color: var(--on-brand);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
  --focus: var(--accent);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark-strong); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s4); }

.brand-logo {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 0; max-width: 60%;
  color: var(--on-brand); text-decoration: none; margin-right: auto;
}
.brand-wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-wordmark.is-lg { font-size: 1.5rem; white-space: normal; }
.brand-img { height: 44px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.brand-img[data-shape="compact"] { height: 52px; }
.brand-img-lg { height: 56px; max-width: 260px; }
.brand-img-lg[data-shape="compact"] { height: 68px; }
@media (max-width: 480px) {
  .brand-img { height: 38px; max-width: 170px; }
  .brand-img[data-shape="compact"] { height: 44px; }
}

.site-nav { display: flex; align-items: center; gap: var(--s1); }
.pub-nav-btn {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
  border-radius: var(--r-sm); color: var(--on-brand-2); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: color var(--dur) ease, background-color var(--dur) ease;
}
.pub-nav-btn:hover { color: var(--on-brand); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.pub-nav-btn.active { color: var(--on-brand); font-weight: 600; }
.pub-nav-btn.active::after {
  content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 6px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.staff-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s3);
  border-radius: var(--r-sm); color: var(--on-brand-3); font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
}
.staff-link:hover { color: var(--on-brand); background: var(--line-dark); }
.staff-link .ic { width: 16px; height: 16px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark-strong); border-radius: var(--r-sm); background: transparent; color: var(--on-brand); cursor: pointer;
}
.nav-toggle .ic { width: 22px; height: 22px; }
.cta-long { display: inline; }

@media (max-width: 960px) {
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s4) var(--gutter) var(--s6);
    background: var(--brand); border-top: 1px solid var(--line-dark);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .pub-nav-btn { min-height: 56px; font-size: 1.125rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; padding: 0 var(--s1); }
  .pub-nav-btn.active::after { left: auto; right: var(--s1); top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .nav-mobile-extra { display: grid; gap: var(--s3); margin-top: var(--s5); }
  .nav-mobile-extra .staff-link { justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .header-actions .staff-link { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 400px) {
  .cta-long { display: none; }
  .header-cta { padding: 0 var(--s4); }
}

/* ---------------- Secciones ---------------- */
.on-brand { background: var(--brand); color: var(--on-brand); }
.on-brand p { color: var(--on-brand-2); }
.section { padding: var(--s8) 0; }
.section-alt { background: var(--paper-2); }
.section-card { background: var(--card); }
@media (min-width: 960px) { .section { padding: var(--s9) 0; } }

.eyebrow {
  display: block; margin-bottom: var(--s2);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0;
  color: var(--text-3);
}
.on-brand .eyebrow { color: var(--on-brand-3); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6);
  margin-bottom: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--text);
}
.section-head > div { max-width: 680px; }
.section-head h2 { margin-bottom: var(--s2); }

/* ---------------- Portada (inicio) ----------------
   Fondo claro, como la landing; la tarjeta de reserva descansa sobre un bloque
   del color principal del negocio. Con foto de portada (.has-image) sigue oscura. */
.hero { position: relative; overflow: hidden; padding: var(--s7) 0 var(--s8); }
.hero.on-brand:not(.has-image) { background: var(--paper); color: var(--text); --focus: var(--black); }
.hero:not(.has-image) p { color: var(--text-2); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: var(--s7); align-items: center; isolation: isolate; }
@media (min-width: 960px) {
  .hero { padding: var(--s8) 0 var(--s9); }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); }
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  margin-bottom: var(--s5); color: var(--text-2); font-size: 0.95rem; font-weight: 600;
}
.kicker-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--white); }
.kicker-icon .ic { width: 15px; height: 15px; }
.hero-title { color: var(--text); margin-bottom: var(--s4); overflow-wrap: anywhere; }
.hero-sub { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.25; color: var(--text-2); margin-bottom: var(--s3); }
.hero-lead { font-size: var(--fs-md); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-info { display: grid; margin-top: var(--s6); max-width: 520px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.97rem; }
.hero-info li { display: flex; align-items: flex-start; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero-info .ic { margin-top: 3px; color: var(--text-3); }
/* Portada con foto: oscura, como antes */
.hero.has-image .hero-kicker, .hero.has-image .hero-info { color: var(--on-brand-2); }
.hero.has-image .hero-title, .hero.has-image .hero-sub { color: var(--on-brand); }
.hero.has-image .hero-info, .hero.has-image .hero-info li { border-color: var(--line-dark); }
.hero.has-image .hero-info .ic { color: var(--accent); }
.hero.has-image .kicker-icon { background: var(--accent); color: var(--on-accent); }
.hero.has-image .btn-outline { --btn-fg: var(--on-brand); --btn-line: var(--line-dark-strong); }
.hero-info a { text-decoration: none; }
.hero-info a:hover { text-decoration: underline; }
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; } }
/* Portada con imagen del negocio: foto decorativa + capa oscura; el texto pasa a
   blanco (contraste ≥ 4.5:1 aunque la foto sea clara: el fondo nunca supera ~#5a5a5a) */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-image {
  --on-brand: #FFFFFF; --on-brand-2: rgba(255, 255, 255, 0.9); --on-brand-3: rgba(255, 255, 255, 0.82);
  --line-dark: rgba(255, 255, 255, 0.18); --line-dark-strong: rgba(255, 255, 255, 0.4);
  color: var(--on-brand-2); background-color: #1a1a1a;
}
.hero.has-image::before { z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.74)); }
.hero.has-image .hero-grid { z-index: 2; }

.hero-card {
  position: relative;
  margin: 28px 20px 20px;
  padding: var(--s5);
  border-radius: var(--r-xl);
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  --focus: var(--black);
}
/* Bloque del color principal detrás de la tarjeta */
.hero-card::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 18% -20px -20px -20px; border-radius: calc(var(--r-xl) + 8px); background: var(--black);
}
.hero.has-image .hero-card::before { background: var(--accent); }
@media (min-width: 640px) { .hero-card { padding: var(--s6); } }
.hero-card-head { display: flex; align-items: center; gap: var(--s4); padding-bottom: var(--s5); margin-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.hero-card-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--paper-2); color: var(--text);
}
.hero-card-icon .ic { width: 26px; height: 26px; }
.hero-card-head strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; line-height: 1.2; }
.hero-card-head span { color: var(--text-3); font-size: var(--fs-sm); }
.hero-steps { display: grid; margin-bottom: var(--s6); counter-reset: step; }
.hero-steps li { display: flex; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hero-steps li:last-child { border-bottom: 0; }
/* Números como texto, sin círculos */
.step-dot {
  display: inline-block; flex-shrink: 0; min-width: 1.2em;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  color: var(--text);
}
.hero-steps .step-dot { font-size: 1.3rem; color: var(--text-3); }

/* ---------------- Cabecera de páginas interiores ---------------- */
.page-hero { position: relative; overflow: hidden; padding: var(--s6) 0 var(--s6); }
.page-hero.on-brand { background: var(--paper); color: var(--text); --focus: var(--black); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.page-hero .container { position: relative; padding-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); margin-bottom: var(--s3); color: var(--text); }
.page-hero p { max-width: 640px; font-size: var(--fs-md); color: var(--text-2); }
.page-hero .eyebrow { color: var(--text-3); }
@media (min-width: 960px) { .page-hero { padding: var(--s7) 0 var(--s6); } }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--s4); font-size: var(--fs-sm); color: var(--text-3); }
.breadcrumb a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb .ic { width: 14px; height: 14px; }

/* ---------------- Servicios ---------------- */
.services-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--line-strong); }
.service-card.is-featured { border-color: var(--text); }
.service-card-top { display: flex; align-items: center; gap: var(--s3); }
.service-icon { display: none; }
.service-icon .ic { width: 22px; height: 22px; }
.service-cat { font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); }
.service-badge {
  margin-left: auto; padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--black); color: var(--white); font-size: var(--fs-xs); font-weight: 600;
}
.service-name { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.service-desc { font-size: 0.95rem; color: var(--text-2); }
.service-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line);
}
.service-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.service-price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.service-duration { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-3); }
.service-duration .ic { width: 15px; height: 15px; }

/* Cómo funciona */
.how-grid { display: grid; gap: var(--s4); counter-reset: how; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
.how-item { padding: var(--s4) 0 0; border-top: 1px solid var(--text); }
.how-item .step-dot { margin-bottom: var(--s3); }
.how-item h3 { margin-bottom: var(--s2); }
.how-item p { font-size: 0.95rem; }

/* ---------------- Equipo ---------------- */
.team-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.team-card { display: flex; flex-direction: column; }
.team-photo { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; border-radius: var(--r-lg); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { display: flex; flex-direction: column; gap: 2px; padding: var(--s4) 0 0; flex: 1; }
.team-body h3 { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.team-body p { font-size: var(--fs-sm); color: var(--text-3); margin-bottom: var(--s3); }
.team-link { margin-top: auto; align-self: flex-start; }

.photo-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 140px;
  background: var(--accent-tint); color: var(--text);
  font-family: var(--font-display); font-weight: 500; font-size: 3.25rem; line-height: 1;
}

.portfolio-filter-bar { display: flex; gap: var(--s2); margin-top: var(--s5); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.filter-chip {
  display: inline-flex; align-items: center; gap: var(--s2); flex-shrink: 0;
  min-height: 44px; padding: 0 var(--s4); border-radius: var(--btn-r);
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text);
  font-weight: 600; cursor: pointer; transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.filter-chip:hover { border-color: var(--text); }
.filter-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.filter-count { min-width: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--text-2); font-size: var(--fs-xs); text-align: center; }
.filter-chip.active .filter-count { background: color-mix(in srgb, var(--white) 18%, transparent); color: var(--white); }

.showcase-list { display: grid; gap: var(--s5); }
.barber-showcase-block {
  padding: var(--s5); border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 760px) { .barber-showcase-block { padding: var(--s6); } }
.barber-profile-header { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 640px) { .barber-profile-header { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s6); } }
.barber-portrait-frame { width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.barber-portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.barber-name-heading { font-size: var(--fs-2xl); margin: var(--s2) 0 2px; overflow-wrap: anywhere; }
.barber-role-text { color: var(--text-3); margin-bottom: var(--s4); }
.barber-specs { margin-bottom: var(--s5); }
.barber-specs-label { display: block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: var(--s2); }
.specialty-tags-wrap { display: flex; flex-wrap: wrap; gap: var(--s2); }
.specialty-pill { padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text-2); font-size: var(--fs-sm); }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
}
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live-pill.available { background: var(--ok-bg); color: var(--ok-text); }
.live-pill.working { background: var(--accent-tint); color: var(--text); }
.barber-works-section { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.works-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.works-head h3 { font-size: var(--fs-md); }
.works-count { font-size: var(--fs-sm); color: var(--text-3); }
.works-gallery-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.work-photo-card {
  display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: var(--r); overflow: hidden;
}
.work-photo-img-box { position: relative; display: block; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; border-radius: var(--r); }
.work-photo-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.work-photo-card:hover img { transform: scale(1.04); }
.work-zoom {
  position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55); color: #FFFFFF;
}
.work-photo-caption { display: block; padding: var(--s2) 2px 0; font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center;
  padding: var(--s7) var(--s5); border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); color: var(--text-2);
}
.empty-state .ic { width: 32px; height: 32px; color: var(--text-3); }
.empty-state strong { color: var(--text); font-family: var(--font-display); font-size: var(--fs-lg); }

/* ---------------- Franja de llamada a la acción ---------------- */
.cta-band { position: relative; padding: var(--s7) 0; }
.cta-band.on-brand { background: transparent; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cta-band-inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5);
  background: var(--brand); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px);
}
.cta-band h2 { color: var(--on-brand); margin-bottom: var(--s2); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 480px) { .cta-band-actions, .cta-band-actions .btn { width: 100%; } }

/* ---------------- Formularios ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-lbl { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field-lbl .req { color: var(--err-text); margin-left: 2px; }
.field-lbl .opt { font-weight: 400; color: var(--text-3); }
.input {
  width: 100%; min-height: 50px; padding: 10px 18px;
  border: 1.5px solid var(--line-strong); border-radius: min(var(--btn-r), 25px);
  background: var(--card); color: var(--text); font-size: 1rem;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.input::placeholder { color: var(--text-3); opacity: 0.85; }
.input:hover { border-color: color-mix(in srgb, var(--black) 40%, transparent); }
.input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px color-mix(in srgb, var(--black) 18%, transparent); }
.input[aria-invalid="true"] { border-color: var(--err-text); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select.input option:disabled { color: #8a8f96; }
.field-hint { font-size: var(--fs-sm); color: var(--text-3); }
.field-error { display: none; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--err-text); }
.field-error.is-visible { display: inline-flex; }
.field-error .ic { width: 16px; height: 16px; }
.form-row-2 { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-line { display: flex; gap: var(--s3); align-items: flex-start; min-height: 44px; padding: var(--s2) 0; cursor: pointer; font-size: 0.95rem; color: var(--text-2); }
.check-line input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--black); cursor: pointer; }

/* Avisos */
.alert {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); margin-bottom: var(--s5); border-radius: var(--r);
  border: 1px solid; font-size: 0.95rem; line-height: 1.5;
}
.alert > .ic { width: 22px; height: 22px; margin-top: 1px; }
.alert-error { background: var(--err-bg); color: var(--err-text); border-color: var(--err-line); }
.alert-success { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-line); }
.alert-success strong { color: var(--ok-text); }
.alert-links { margin-top: var(--s3); }
.alert-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.alert-links .ic { width: 16px; height: 16px; }

.captcha-note {
  margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm);
  border-left: 3px solid var(--err-text); background: var(--err-bg); color: var(--err-text); font-size: var(--fs-sm);
}

/* Código de reserva destacado, con botón para copiarlo */
.booking-code {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
  margin: var(--s3) 0 var(--s2); padding: var(--s3) var(--s4);
  border: 1.5px dashed var(--ok-line); border-radius: var(--r); background: #FFFFFF; color: #10301E;
}
.booking-code-label { flex: 1 0 100%; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.booking-code-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: 0.14em; user-select: all; overflow-wrap: anywhere; }
.booking-code-copy {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s4);
  border: 1.5px solid var(--ok-line); border-radius: var(--r-sm); background: transparent; color: var(--ok-text);
  font-weight: 600; cursor: pointer;
}
.booking-code-copy:hover { background: var(--ok-bg); }
.booking-code-copy .ic { width: 16px; height: 16px; }
.booking-code-hint { display: block; font-size: var(--fs-sm); }

/* ---------------- Reservar ---------------- */
.booking-section { padding: var(--s6) 0 var(--s8); }
.booking-layout-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1000px) {
  .booking-layout-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s7); }
}
.booking-form-card {
  padding: var(--s5) var(--s4); border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 640px) { .booking-form-card { padding: var(--s6); } }
.form-step { border: 0; padding: 0 0 var(--s5); margin: 0 0 var(--s5); border-bottom: 1px solid var(--line); min-width: 0; }
.form-step-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); padding: 0; }
.form-step-head h2 { font-size: var(--fs-lg); }
.step-hint { margin: calc(-1 * var(--s2)) 0 var(--s4); }
.form-step-num {
  flex-shrink: 0; min-width: 1.1em;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--text-3);
}
/* Selectores en chips ({service}, {staff}, horas): public-booking.js → renderPickers().
   El <select> queda oculto como fuente de verdad. El elegido se rellena con el color
   principal del negocio; la forma sigue al rubro (--btn-r de rubros.css). */
.pick-native {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none;
}
.pick-stack { display: grid; gap: var(--s5); }
.pick-stack .field { position: relative; }
.pick-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: 2px; }
.pick-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: 2px; }
@media (max-width: 420px) { .pick-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 46px; padding: 6px 18px;
  border: 1.5px solid var(--line-strong); border-radius: var(--btn-r, var(--r-pill));
  background: var(--card); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; line-height: 1.25; text-align: center;
  cursor: pointer; transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.pick-slots .pick { padding: 6px 4px; font-variant-numeric: tabular-nums; }
.pick:hover { border-color: var(--black); }
.pick.is-on { background: var(--black); border-color: var(--black); color: var(--white); }
.pick-name { font-weight: 600; overflow-wrap: anywhere; }
.pick-meta { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pick.is-on .pick-meta { color: color-mix(in srgb, var(--white) 78%, var(--black)); }
.pick:disabled { opacity: 0.45; cursor: not-allowed; }
.pick-empty {
  grid-column: 1 / -1; padding: var(--s3) var(--s4); border: 1.5px dashed var(--line-strong);
  border-radius: var(--r); color: var(--text-2); font-size: var(--fs-sm); text-align: center;
}
@media (max-width: 480px) { .pick-chips .pick { flex: 1 1 auto; } }

.date-note {
  margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-sm);
  background: var(--accent-tint); color: var(--text); font-size: var(--fs-sm);
}
.notes-field { margin-top: var(--s4); }
/* Campos propios del negocio (paso 1) */
.extra-fields { margin-top: var(--s4); }
.extra-fields .field-wide { grid-column: 1 / -1; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; border-radius: min(var(--btn-r), 18px); }
.extra-check .check-line { padding-bottom: 0; color: var(--text); }
.extra-check .check-line input[aria-invalid="true"] { outline: 2px solid var(--err-text); outline-offset: 2px; }
.captcha-box { margin: var(--s2) 0 var(--s4); min-height: 0; }
.booking-submit-btn { width: 100%; }
.form-legal { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text-3); }
.form-legal a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.booking-summary-card {
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--brand); color: var(--on-brand);
}
@media (min-width: 1000px) { .booking-summary-card { position: sticky; top: calc(var(--header-h) + var(--s5)); } }
.booking-summary-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
}
.summary-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--line-dark); color: var(--on-brand); }
.summary-icon .ic { width: 20px; height: 20px; }
.booking-summary-body { padding: var(--s3) var(--s5) var(--s5); }
.booking-summary-row { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line-dark); font-size: 0.95rem; }
.booking-summary-row span { color: var(--on-brand-3); }
.booking-summary-row strong { text-align: right; overflow-wrap: anywhere; flex-shrink: 0; max-width: 62%; }
.booking-summary-row span { min-width: 0; }
.booking-summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-top: var(--s4); }
.booking-summary-total span:first-child { color: var(--on-brand-2); font-weight: 600; }
.booking-total-amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--on-brand); }
.booking-perks { display: grid; gap: var(--s3); padding: var(--s4) var(--s5) var(--s5); border-top: 1px solid var(--line-dark); }
.booking-perks li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--on-brand-2); font-size: var(--fs-sm); }
.booking-perks .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--on-brand-3); }

/* Formulario retirado: reservas pausadas o negocio sin configurar / sin resultados */
.lookup-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center;
  padding: var(--s7) var(--s4);
}
.lookup-empty > .ic { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--accent-tint); color: var(--text); box-sizing: content-box; }
.lookup-empty strong { font-family: var(--font-display); font-size: var(--fs-lg); }
.lookup-empty span { color: var(--text-2); max-width: 460px; }
.lookup-empty .btn { margin-top: var(--s2); }

/* ---------------- Mi cita ---------------- */
.lookup-section { padding: var(--s6) 0 var(--s8); }
.lookup-container { max-width: 720px; }
.lookup-card { padding: var(--s5) var(--s4); border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); }
@media (min-width: 640px) { .lookup-card { padding: var(--s6); } }
.lookup-title { font-size: var(--fs-xl); margin-bottom: var(--s2); }
.lookup-form { display: grid; gap: var(--s4); margin: var(--s5) 0; }
@media (min-width: 640px) { .lookup-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.lookup-result {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3) var(--s4); align-items: center;
  padding: var(--s4); margin-top: var(--s3); border-radius: var(--r); border: 1px solid var(--line); background: var(--paper);
}
.lookup-date {
  min-width: 72px; padding: var(--s3); border-radius: var(--r-sm); text-align: center;
  background: var(--black); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg);
}
.lookup-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lookup-info span { color: var(--text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.lookup-name { display: inline-flex; align-items: center; gap: 6px; }
.lookup-name .ic { width: 15px; height: 15px; }
.lookup-result .st-badge { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) {
  .lookup-result { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lookup-result .st-badge { grid-column: auto; }
}
.lookup-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s2) var(--s3); margin-top: var(--s5); color: var(--text-2); font-size: 0.95rem; }
.lookup-help a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }

.st-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; border: 1px solid; }
.st-PROGRAMADA, .st-ESPERANDO { background: var(--paper-2); color: var(--text); border-color: var(--line-strong); }
.st-CONFIRMADA_WSP, .st-COMPLETADA, .st-FINALIZADO { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-line); }
.st-EN_SILLON { background: var(--accent-tint); color: var(--text); border-color: var(--line-strong); }
.st-CANCELADA, .st-NO_ASISTIO { background: var(--err-bg); color: var(--err-text); border-color: var(--err-line); }

/* ---------------- Privacidad ---------------- */
.legal-section { padding: var(--s6) 0 var(--s8); }
.legal-card {
  max-width: 820px; margin: 0 auto; padding: var(--s5) var(--s4);
  border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 640px) { .legal-card { padding: var(--s7); } }
.legal-card h2 { font-size: var(--fs-lg); margin: var(--s6) 0 var(--s2); }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--text-2); line-height: 1.7; }
.legal-card p + p { margin-top: var(--s3); }
.legal-card ul { padding-left: 1.2em; margin: var(--s2) 0; list-style: disc; }
.legal-card li + li { margin-top: 4px; }
.legal-card strong { color: var(--text); }
.legal-card a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: var(--fs-xs); margin-top: var(--s6); }

/* ---------------- Pie ---------------- */
.site-footer { padding: var(--s7) var(--s3) var(--s3); }
.site-footer.on-brand { background: transparent; }
.site-footer > .container { background: var(--brand); border-radius: var(--r-xl); padding-top: clamp(36px, 5vw, 56px); padding-bottom: var(--s5); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand .brand-logo { max-width: 100%; margin-bottom: var(--s3); }
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--on-brand); margin-bottom: var(--s3); }
.footer-list { display: grid; gap: 2px; }
.footer-list li { display: flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--on-brand-2); font-size: 0.95rem; }
.footer-list li > .ic, .footer-list li > [data-icon] { width: 16px; height: 16px; color: var(--on-brand-3); align-self: flex-start; margin-top: 14px; }
.footer-list li > [data-icon] .ic { width: 16px; height: 16px; }
.footer-list li > span { padding: 10px 0; }
.footer-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--on-brand-2); text-decoration: none; }
.footer-list a:hover { color: var(--on-brand); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s4);
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-dark);
  color: var(--on-brand-3); font-size: var(--fs-sm);
}
[hidden] { display: none !important; }

/* ---------------- Ventana (foto ampliada) ---------------- */
.crm-modal-backdrop {
  position: fixed; inset: 0; z-index: 3000; display: none;
  align-items: center; justify-content: center; padding: var(--s4);
  background: rgba(10, 12, 15, 0.7);
}
.crm-modal-backdrop.open { display: flex; animation: fadeIn var(--dur) var(--ease); }
.crm-modal-box {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: var(--s5); border-radius: var(--r-xl); background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
}
.crm-modal-box.is-wide { max-width: 880px; }
.crm-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.crm-modal-header h3 { font-size: var(--fs-xl); margin-top: 4px; overflow-wrap: anywhere; }
.crm-modal-header .eyebrow { margin-bottom: 0; }
.lightbox-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.lightbox-frame img { width: 100%; max-height: 70vh; object-fit: contain; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: var(--s4); }
@media (max-width: 560px) { .modal-actions .btn { width: 100%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- Negocio no encontrado / error de carga ---------------- */
.unavailable { min-height: 60vh; display: flex; align-items: center; padding: var(--s9) 0; text-align: center; }
.unavailable .container { max-width: 620px; }
.unavailable-icon {
  width: 72px; height: 72px; margin: 0 auto var(--s5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--text);
}
.unavailable-icon .ic { width: 30px; height: 30px; }
.unavailable h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); margin-bottom: var(--s4); }
.unavailable p + p { margin-top: var(--s4); }

/* ---------------- Aparición suave al hacer scroll ---------------- */
.js-reveal .reveal { opacity: 0; transition: opacity 400ms ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
