@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

/* ==========================================================================
   Agenda de Express Website · Sistema visual público
   --------------------------------------------------------------------------
   1) Los colores se leen SOLO desde tokens: themes.css los redefine por
      negocio. Nada de colores fijos en los componentes, así los 8 themes
      siguen funcionando sin reglas duplicadas.
   2) Layout con contenedor único (.wrap) + un ritmo vertical (--section-y):
      todos los bordes izquierdos quedan alineados.
   3) El padding lateral vive en .hero/.section, no en .wrap, para que
      reserva.html y booking-demo.html (que no usan .wrap) también respiren.
   ========================================================================== */

:root {
  /* Familia ExpressApps: Manrope en títulos y cifras; DM Sans en el texto,
     los botones y los campos. */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  /* Cantos casi rectos: la marca es puntual, no blanda. Botones a 0. */
  --radius: 6px;
  --radius-lg: 10px;
  /* Movimiento (guía ExpressApps §8): una sola curva; 120-180 ms de respuesta,
     180-260 ms de transición, 300-450 ms de entrada. */
  --ease-expo: cubic-bezier(.22, 1, .36, 1);

  /* Color base; themes.css lo sobrescribe según el negocio.
     Paleta de Barbería El Corte: crema de fondo, ámbar para la selección y
     el énfasis, cuero para la marca, espresso en lo oscuro y un rojo
     ladrillo escaso (solo donde se habla del problema). Contrastes: --ink
     sobre --bg 16,9:1; --muted 5,4:1; --primary sobre --bg 5,3:1 y blanco
     encima 5,8:1; blanco sobre --accent 10,2:1; --rose sobre --bg 6,0:1. */
  --bg: #faf6ef;
  --ink: #1a1410;
  --muted: #6e6458;
  --line: #e9e0d0;
  --card: #fffdf8;
  --primary: #895d1f;
  --btn-radius: 10px;
  --primary-ink: #ffffff;
  --accent: #5b3a1e;
  --accent-ink: #ffffff;
  --dark: #1a1410;
  --rose: #a53a32;
  --glow: rgba(201, 138, 45, .25);
  /* Barrido de los botones al pasar el cursor: miel, con el texto en tinta
     encima (9,6:1 a 12,2:1). */
  --brand-from: #e3b56b;
  --brand-to: #f0cf96;
  --brand-gradient: linear-gradient(90deg, var(--brand-from), var(--brand-to));

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 6.5vw, 96px);

  --shadow-sm: 0 1px 2px rgba(58, 38, 18, .05), 0 4px 14px rgba(58, 38, 18, .05);
  --shadow-md: 0 18px 48px rgba(58, 38, 18, .11);
  --t: .18s cubic-bezier(.22, 1, .36, 1);

  /* Escala tipográfica de la guía (§4) */
  --fs-landing: clamp(2.5rem, 5vw, 4.25rem);
  --fs-page: clamp(2rem, 3.5vw, 3.5rem);
  --fs-section: clamp(1.5rem, 2.5vw, 2.2rem);
  --fs-sub: 1.125rem;
}
/* Solo en la portada (sin theme de rubro): los papeles de la paleta de El
   Corte que los themes no definen. Con theme, cada regla cae a --primary. */
:root:not([data-theme]) {
  --action: #5b3a1e;        /* botones en cuero: blanco encima 10,2:1 */
  --action-ink: #ffffff;
  --line-strong: #c4bbaa;
  --brand-text: #895d1f;    /* énfasis de títulos y rótulos: 5,3:1 sobre crema */
  --selection: #f3e6cf;     /* tinte de íconos y de la sección activa: cuero encima 8,2:1, ámbar 4,7:1 */
  --highlight: #e3b56b;     /* miel sobre espresso: 9,6:1 */
  --on-dark-accent: var(--highlight);
}

/* ——— Base ————————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo `hidden` vale display:none solo en la hoja del navegador, que
   pierde ante cualquier regla de autor. `.banner-warn{display:block}` la
   anulaba: el cartel de "modo demo" se mostraba en TODA página de reserva,
   incluidas las de negocios reales conectados, diciéndole al cliente que su
   reserva era un ejemplo. El !important deja que `el.hidden = true` signifique
   lo que aparenta. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
em { font-style: normal; color: var(--brand-text, var(--primary)); }

/* Titulares con balance: evita líneas huérfanas y bloques descompensados */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ——— Accesibilidad ————————————————————————————————————————— */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; }
.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;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ——— Contenedor y ritmo vertical ——————————————————————————— */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.section { padding: var(--section-y) var(--gutter); }
.section.intro { padding-top: calc(var(--section-y) * .72); }
.hero, .section, footer { padding-inline: var(--gutter); }
main > section { scroll-margin-top: 90px; }
.section-heading { max-width: 700px; }
.section-heading h2 { font-size: var(--fs-section); margin: 14px 0 12px; }
.section-heading p { color: var(--muted); font-size: var(--fs-sub); line-height: 1.6; max-width: 62ch; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered p { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-text, var(--primary));
}
/* Solo el punto decorativo, que siempre es el primer span. Antes la regla
   era `.eyebrow span` y alcanzaba también al <span id="r-kicker"> con el texto
   en reserva.html: el rótulo quedaba aplastado a 7px y se encimaba con el
   título. Se usa :first-child y no [aria-hidden] porque booking-demo.html trae
   el punto sin ese atributo. */
.eyebrow > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ——— Barra: cápsula blanca flotante ——————————————————————————
   Isla blanca separada del borde: marca a la izquierda, secciones al
   centro y dos acciones a la derecha. La sección visible se marca con una
   pastilla de tinte ámbar que se desliza (app.js). */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding: 14px var(--gutter) 0;
  pointer-events: none;   /* el margen alrededor de la cápsula no tapa clics */
}
.header-inner {
  pointer-events: auto;
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  max-width: var(--wrap); min-height: 68px; margin-inline: auto;
  padding: 0 12px 0 18px;
  border-radius: 18px;
  background: #fffdf8; border: 1px solid #ebe3d5;
  box-shadow: 0 10px 30px -18px rgba(58, 38, 18, .35);
  transition: box-shadow .25s ease;
}
.site-header[data-scrolled] .header-inner { box-shadow: 0 18px 40px -18px rgba(58, 38, 18, .45); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 800 21px var(--font-display); letter-spacing: -.035em; color: var(--ink); }
.brand > span:last-child span { color: var(--primary); }
/* Marca: logo de Express Website + el nombre del producto, separados por una línea fina. */
.brand-logo { display: block; height: 28px; width: auto; flex: none; }
.brand-product { padding-left: 10px; border-left: 1px solid var(--line); line-height: 1.1; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  font: 800 13px var(--font-display); letter-spacing: .02em;
}

.nav {
  position: relative; justify-self: center;
  display: flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 500;
}
.nav a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 16px; border-radius: 999px;
  color: var(--ink); text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--primary); }
.nav-indicator {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px; background: var(--selection, #f3e6cf);
  opacity: 0; pointer-events: none;
  transition: transform .26s var(--ease-expo), width .26s var(--ease-expo), opacity .18s var(--ease-expo);
}
.nav-indicator.is-visible { opacity: 1; }
/* Los botones dentro del menú solo aparecen en el panel móvil. */
.nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Dos líneas que se cruzan en una X al abrir el menú. */
.menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: 12px; background: #fffdf8;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 1px;
  background: var(--ink);
  transition: transform .2s var(--ease-expo);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }


/* ——— Botones —————————————————————————————————————————————
   Rectangulares, de canto recto. Al pasar el cursor un barrido miel los
   llena de izquierda a derecha con el texto en tinta (9,6:1 a 12,2:1) y
   la flecha avanza. Entran con un barrido (ver "Entrada de botones"). */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px;
  border: 1.5px solid transparent; border-radius: var(--btn-radius);
  font: 700 15px/1 var(--font-body);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: color .2s var(--ease-expo), border-color .2s var(--ease-expo), transform .15s var(--ease-expo);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .26s var(--ease-expo);
}
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }
.btn span { font-size: 18px; line-height: 1; transition: transform .2s var(--ease-expo); }
.btn:hover span { transform: translateX(5px); }
.btn-primary { background: var(--action, var(--primary)); color: var(--action-ink, var(--primary-ink)); box-shadow: 0 10px 22px -12px rgba(91, 58, 30, .6); }
.btn-primary:hover { color: var(--ink); }
.btn-outline { background: var(--card); border-color: var(--line-strong, var(--line)); color: var(--ink); }
.btn-outline:hover { color: var(--ink); border-color: transparent; }
.btn-lg { min-height: 62px; padding: 0 26px; font-size: 17px; }
/* Sobre la banda de acento el relleno va en tinta y el texto en blanco. */
.btn-light { background: #fffdf8; color: var(--ink); }
.btn-light::before { background: var(--ink); }
.btn-light:hover { color: #fff; }
/* El par oscuro de .btn-light: tinta con texto blanco (19:1), barrido blanco. */
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink::before { background: #fff; }
.btn-ink:hover { color: var(--ink); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 13.5px; }
/* El CTA de la barra no se comprime; bajo 480 px pasa al menú (.nav-cta). */
.header-cta { flex: none; white-space: nowrap; }
@media (max-width: 380px) { .site-header .brand { font-size: 17px; gap: 8px; } .site-header .brand-logo { height: 22px; } }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.text-link:hover { color: var(--primary); border-color: var(--primary); }

/* ——— Hero ————————————————————————————————————————————————— */
.hero { padding-block: clamp(40px, 5vw, 72px) var(--section-y); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy { max-width: 620px; min-width: 0; }
.hero h1 { font-size: var(--fs-landing); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 24px; }
/* ——— Inicio: "Tu agenda en orden. Tus clientes reservando." ———————
   Título en Manrope con interletrado cerrado; la segunda línea va en
   ámbar. A la derecha, una agenda de ejemplo con una
   notificación; abajo, tres beneficios. */
/* En escritorio la agenda de ejemplo pide más ancho que el texto. Solo
   desde 1101 px: más angosto el inicio va en una columna. */
@media (min-width: 1101px) {
  .hero:has(.hero-visual) .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.hero .hero-title {
  font-size: var(--fs-landing); font-weight: 800;
  line-height: 1; letter-spacing: -.04em; margin: 18px 0 26px;
}
.hero-title em { color: var(--brand-text, var(--primary)); }
.hero-title-2 { display: block; }
.hero-title .hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .08em 0 .2em; margin: -.08em 0 -.2em; }
.hero-title .hw > * { display: inline-block; }
.hero .eyebrow { color: var(--brand-text, var(--primary)); }
.hero .hero-text { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.55; max-width: 32em; }
.btn-play { gap: 14px; }
.hero:has(.hero-visual) .hero-actions { gap: 14px 16px; }
.btn-play .play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--selection, #f3e6cf); color: var(--accent); }
.btn-play .play svg { width: 13px; height: 13px; fill: currentColor; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; font-size: 16px; color: #4a3f35; }
.hero-checks li { display: inline-flex; align-items: center; gap: 10px; }
.hero-checks li::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.hero-visual { position: relative; min-width: 0; padding: 28px 0 46px; }
.hv-blob {
  position: absolute; z-index: 0; inset: -4% -8% 6% 4%;
  border-radius: 46% 54% 42% 58% / 55% 42% 58% 45%;
  background: linear-gradient(160deg, #f6ead6, #ecd9b8);
}
.hv-chispa { position: absolute; z-index: 2; top: 0; right: 2%; width: 40px; height: 40px; }
.hv-chispa i { position: absolute; height: 4px; border-radius: 2px; background: var(--primary); }
.hv-chispa i:first-child { width: 20px; top: 8px; left: 8px; transform: rotate(-58deg); }
.hv-chispa i:last-child { width: 18px; top: 22px; left: 18px; transform: rotate(-28deg); }
.ag {
  position: relative; z-index: 1;
  background: #fffdf8; border: 1px solid #ebe3d5; border-radius: 22px;
  padding: 26px 26px 20px;
  box-shadow: 0 30px 60px -30px rgba(58, 38, 18, .38);
}
.ag svg { width: 100%; height: 100%; }
.ag-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ag-logo { display: grid; place-items: center; width: 58px; height: 58px; padding: 15px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.ag-name strong { display: block; font: 700 21px var(--font-display); letter-spacing: -.02em; }
.ag-activa { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.ag-activa::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3d8a45; }
.ag-stats { display: flex; gap: 10px; }
.ag-stat { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid #ebe3d5; border-radius: 12px; }
.ag-stat i { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--selection, #f3e6cf); color: var(--accent); }
.ag-stat b { font: 800 19px/1.1 var(--font-display); }
.ag-stat small { font-size: 12px; color: var(--muted); line-height: 1.2; }
.ag-mes { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 14px; }
.ag-mes strong { font-size: 17px; font-weight: 700; }
.ag-flecha { display: grid; place-items: center; width: 38px; height: 38px; padding: 10px; border: 1px solid #ebe3d5; border-radius: 10px; color: var(--ink); }
.ag-dias { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ag-dias span { display: grid; place-items: center; gap: 2px; padding: 10px 0; border-radius: 12px; background: #f5eee3; font-weight: 700; font-size: 17px; }
.ag-dias small { font-size: 13px; font-weight: 500; color: var(--muted); }
/* Los días con el color de su disponibilidad, como el calendario de reservas:
   verde libre, ámbar pocos, rojo lleno (textos a 5,5:1 o más). */
.ag-dias .libre { background: #e7f4df; } .ag-dias .libre small { color: #2f6b34; }
.ag-dias .pocos { background: #fff1cd; } .ag-dias .pocos small { color: #7a5500; }
.ag-dias .lleno { background: #fae6e5; } .ag-dias .lleno small { color: #a53a32; }
.ag-dias .hoy { background: var(--primary); color: #fff; }
.ag-stat + .ag-stat i { background: #e7f4df; color: #2f6b34; }
.ag-dias .hoy small { color: #fff; }
.ag-citas { display: grid; gap: 10px; margin-top: 20px; }
.cita { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; }
.cita time { font-weight: 700; font-size: 15px; color: #4a3f35; font-variant-numeric: tabular-nums; }
.cita-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 12px 14px 12px 18px; border: 1px solid #ebe3d5; border-radius: 12px; background: #fffdf8;
}
.cita-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cita); }
/* Tonos de la paleta cálida (los nombres de clase son los de la maqueta):
   salvia, ámbar y terracota. Iniciales a 6,3:1 o más sobre su tinte. */
.cita--teal { --cita: #728a7e; --cita-bg: #e3ece6; --cita-ink: #3d574b; }
.cita--azul { --cita: #c98a2d; --cita-bg: #f3e6cf; --cita-ink: #6b4513; }
.cita--naranja { --cita: #c2643c; --cita-bg: #f8e3d8; --cita-ink: #8a3a1c; }
.cita-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cita-bg); color: var(--cita-ink); font-weight: 700; font-size: 14px; }
.cita-txt { min-width: 0; }
.cita-txt b { display: block; font-size: 16px; }
.cita-txt small { display: block; font-size: 14px; color: var(--muted); }
.cita-estado { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cita-estado.ok { background: #e7f4df; color: #2f6b34; }
.cita-estado.pend { background: #fff1cd; color: #7a5500; }
.cita-mas { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.hv-toast {
  position: absolute; z-index: 3; right: -5%; bottom: 8px;   /* monta sobre la esquina de la tarjeta */
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: min(390px, 92%); padding: 16px 18px;
  background: #fffdf8; border: 1px solid #ebe3d5; border-radius: 14px;
  box-shadow: 0 24px 50px -20px rgba(58, 38, 18, .45);
}
.hv-toast svg { width: 100%; height: 100%; }
.hv-check { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #2f6b34; color: #fff; }
.hv-toast-txt b { display: block; font-size: 15.5px; }
.hv-toast-txt small { display: block; font-size: 14px; color: var(--muted); }
.hv-x { width: 18px; height: 18px; color: var(--muted); align-self: start; }

.hero-feats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-feats li { display: flex; align-items: flex-start; gap: 18px; padding-inline: clamp(16px, 3vw, 40px); }
.hero-feats li:first-child { padding-left: 0; }
.hero-feats li + li { border-left: 1px solid var(--line); }
.hf-ico { display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 15px; border-radius: 14px; background: var(--selection, #f3e6cf); color: var(--accent); }
.hf-ico svg { width: 100%; height: 100%; }
.hero-feats b { display: block; font: 700 18px var(--font-display); letter-spacing: -.01em; margin-bottom: 4px; }
.hero-feats small { display: block; font-size: 15.5px; line-height: 1.45; color: var(--muted); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 680px; }
}
@media (max-width: 860px) {
  .hero-feats { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-feats li { padding-inline: 0; }
  .hero-feats li + li { border-left: 0; }
}
@media (max-width: 600px) {
  .ag { padding: 18px 14px 14px; border-radius: 18px; }
  .ag-head { grid-template-columns: auto minmax(0, 1fr); }
  .ag-stats { grid-column: 1 / -1; }
  .ag-stat { flex: 1; }
  .ag-logo { width: 48px; height: 48px; padding: 12px; }
  .ag-name strong { font-size: 18px; }
  .ag-dias { gap: 5px; }
  .ag-dias span { font-size: 15px; padding: 8px 0; }
  .cita { grid-template-columns: 44px minmax(0, 1fr); gap: 6px; }
  .cita time { font-size: 13px; }
  .cita-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 10px 10px 14px; }
  .cita-av { width: 34px; height: 34px; font-size: 12px; }
  .cita-txt b { font-size: 14.5px; }
  .cita-estado { font-size: 12px; padding: 5px 8px; }
  .cita-mas { display: none; }
  .hv-toast { right: 0; width: 94%; padding: 12px 14px; }
  .hero-checks { gap: 10px 18px; font-size: 15px; }
}
/* Celulares angostos: sin avatares ni la X, para que cada reserva quepa en
   una línea y la notificación no tape la última. */
@media (max-width: 420px) {
  .cita-av { display: none; }
  .cita-card { grid-template-columns: minmax(0, 1fr) auto; }
  .ag-stat { padding: 8px 10px; column-gap: 8px; }
  .ag-stat i { width: 30px; height: 30px; padding: 7px; }
  .hv-toast { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .hv-x { display: none; }
  .hv-check { width: 32px; height: 32px; padding: 8px; }
  .hv-toast-txt b { font-size: 14px; }
  .hv-toast-txt small { font-size: 12.5px; }
}
#problemas .eyebrow { color: var(--rose); }
/* Contrapunto editorial de la guía (§4): Georgia itálica, una sola vez en la
   portada y nunca en datos ni controles. */
#problemas h2 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hero-text { color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 30px 0 0; }

.trust-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.trust-row div { min-width: 0; }
.trust-row strong { display: block; font: 800 20px var(--font-display); letter-spacing: -.02em; }
.trust-row small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 3px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 28px var(--section-y); }
  .dashboard-wrap { max-width: 560px; }
}
@media (max-width: 480px) {
  .hero-actions .btn, .hero-actions .text-link { width: 100%; justify-content: center; }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}


/* ——— Tarjeta de agenda (vista previa decorativa) ———————————— */
.dashboard-wrap { position: relative; min-width: 0; }
.glow {
  position: absolute; inset: -8% -12% -16% -12%;
  background: radial-gradient(58% 58% at 62% 34%, var(--glow), transparent 72%);
  filter: blur(10px); pointer-events: none;
}
/* El halo sobresale 12% a cada lado a propósito, y por la derecha se salía del
   viewport: la portada tenía scroll horizontal en todos los anchos (22px en un
   teléfono, 6px en escritorio). `clip` en la sección lo contiene sin tocar el
   efecto —la sección ocupa el ancho completo, así que no se recorta nada que se
   viera— y, a diferencia de `hidden`, no crea un contenedor desplazable. */
.hero { overflow-x: clip; }
.dashboard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(18px, 2.2vw, 28px);
}
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dash-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dash-top h3 { font-size: 21px; margin-top: 6px; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink);
  font: 800 14px var(--font-display);
}

.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.dash-stats div {
  background: color-mix(in srgb, var(--bg) 65%, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-width: 0;
}
/* Etiquetas angostas: "Confirmadas" tiene que caber a 360 px. */
.dash-stats span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-stats strong { display: block; font: 800 19px var(--font-display); margin-top: 4px; letter-spacing: -.02em; overflow-wrap: anywhere; }

.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.calendar-head strong { font-size: 14px; font-weight: 700; }
.calendar-head button {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; font-size: 15px; line-height: 1;
  display: grid; place-items: center;
}
.calendar-head button:hover { color: var(--ink); border-color: var(--primary); }

.week, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week { margin-bottom: 6px; }
.week span {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-align: center; text-transform: uppercase; letter-spacing: .05em;
}
.days span {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; border-radius: 9px;
  color: var(--ink);
}
.days span.muted { color: var(--muted); opacity: .45; }
.days span.today { background: var(--primary); color: var(--primary-ink); font-weight: 800; }

.appointments { display: grid; gap: 9px; margin-top: 18px; }
.appointment {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 14px;
  background: color-mix(in srgb, var(--bg) 65%, var(--card));
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 11px;
}
.appointment b { font: 700 13px var(--font-display); font-variant-numeric: tabular-nums; }
.appointment span { font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appointment small { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.appointment.green { border-left-color: var(--primary); }
.appointment.purple { border-left-color: color-mix(in srgb, var(--primary) 60%, var(--accent)); }
.appointment.orange { border-left-color: var(--accent); }
.appointment.orange small { color: var(--ink); }

.banner-warn code { background: color-mix(in srgb, var(--ink) 10%, transparent); }


/* ——— Secciones ————————————————————————————————————————————
   Invariante verificado en themes.css: --dark es oscuro en los 8 themes
   (#000, #1a1410, #050d09, #08080a, #070b08, #16232e, #1c1c1e, #2b2320).
   Por eso --on-dark puede ser un color claro fijo y el contraste se mantiene
   en cualquier negocio, sin importar si --primary o --accent son claros u
   oscuros.
   ---------------------------------------------------------------------- */
:root {
  --on-dark: #faf6ef;
  --on-dark-muted: rgba(250, 246, 239, .76);
  --on-dark-line: rgba(255, 255, 255, .14);
  --on-dark-accent: color-mix(in srgb, var(--accent) 35%, #fff);
}

.dark-section {
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%),
    radial-gradient(700px 380px at 0% 110%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    var(--dark);
  color: var(--on-dark);
}
.dark-section .section-heading h2 { color: var(--on-dark); }
.dark-section .section-heading p { color: var(--on-dark-muted); }
.dark-section .eyebrow { color: var(--on-dark-muted); }
.dark-section em { color: var(--on-dark-accent); }

/* ——— Grilla de problemas ———————————————————————————————————— */
.feature-grid {
  display: grid; gap: 16px; margin-top: 46px;
  /* 320 px de mínimo: tres columnas en escritorio, así seis tarjetas
     completan dos filas (con 290 px cabían cuatro y quedaba una fila coja). */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  padding: 26px 24px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feature-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font: 800 17px var(--font-display);
}
.feature-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.feature-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--primary); }
.feature-card a:hover { text-decoration: underline; }
.feature-card p.url { margin-bottom: 8px; }
.feature-card p.url code {
  display: inline-block; padding: 5px 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink); font-size: 12.5px;
  overflow-wrap: anywhere;
}
/* Destacada por color, no por ancho: ocupar dos columnas dejaba siempre una
   fila incompleta. */
.feature-card.featured {
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  border-color: color-mix(in srgb, var(--primary) 32%, var(--line));
}

/* Tarjetas de problema con ilustración: la imagen se funde hacia el fondo de
   la tarjeta y el texto asienta sobre la parte ya transparente, así el
   contraste lo da siempre el color de la tarjeta y no la ilustración. */
.feature-card--media { padding: 0; overflow: hidden; }
.feature-media {
  display: block; width: 100%; height: 270px; object-fit: cover; object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  transition: transform .26s var(--ease-expo);
}
.feature-card--media:hover .feature-media { transform: scale(1.04); }
.feature-body { position: relative; padding: 2px 24px 26px; }
@media (max-width: 700px) {
  .feature-media { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card--media:hover .feature-media { transform: none; }
}

/* ——— Grilla de negocios ————————————————————————————————————— */
/* Tres columnas en escritorio (6 y 9 tarjetas completan sus filas). Las
   líneas las dibuja cada tarjeta: si sobra una celda, se funde con el fondo
   en vez de verse como un bloque gris. */
.business-grid {
  display: grid; gap: 1px; margin-top: 46px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  background: var(--dark);
  border: 1px solid var(--on-dark-line);
  border-radius: calc(var(--radius) * 1.3);
  overflow: hidden;
}
.business-grid article {
  background: var(--dark);
  box-shadow: 0 0 0 1px var(--on-dark-line);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 9px;
  transition: background var(--t);
}
.business-grid article:hover { background: color-mix(in srgb, var(--dark) 88%, var(--on-dark)); }
.business-grid article > span {
  font: 800 16px var(--font-display); color: var(--on-dark-accent);
  line-height: 1;
}
.business-grid article h3 { font-size: 17.5px; color: var(--on-dark); }
.business-grid article p { font-size: 14.5px; color: var(--on-dark-muted); flex: 1; }
.business-grid article a {
  font-size: 13.5px; font-weight: 700;
  color: var(--on-dark-accent); margin-top: 4px;
  display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start;
}
.business-grid article a:hover { text-decoration: underline; }

/* ——— Pasos ————————————————————————————————————————————————— */
.process { background: color-mix(in srgb, var(--ink) 4%, var(--bg)); }
.steps { display: grid; gap: 14px; margin-top: 46px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps article {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2); padding: 24px 22px;
}
.steps b {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font: 800 13px var(--font-display);
}
.steps h3 { font-size: 17.5px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14.5px; }


/* ——— Banda final de llamada a la acción ————————————————————
   La banda va en el --accent del theme (cuero en la portada) con su
   --accent-ink encima: el par da 5,4:1 o más en los 9 themes, así la
   banda funciona en cualquier negocio de la demo.
   ---------------------------------------------------------------------- */
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px 40px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 0;
  padding: clamp(36px, 5vw, 72px);
}
.cta-box > div { flex: 1 1 420px; max-width: 680px; }
.cta-box h2 { font-size: var(--fs-section); margin: 0 0 12px; color: var(--accent-ink); }
/* El énfasis va en el mismo color, subrayado. */
.cta-box h2 em { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); text-decoration-thickness: .09em; text-underline-offset: .14em; }
.cta-box p { color: var(--accent-ink); font-size: 17px; }
.cta-box .eyebrow { color: var(--accent-ink); }
.cta-box .btn { flex: none; }
/* El segundo botón va calado sobre la banda: borde y texto del color de
   encima, y el barrido lo rellena con ese mismo color. */
.cta-box .btn-ink { background: transparent; border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); color: var(--accent-ink); }
.cta-box .btn-ink::before { background: var(--accent-ink); }
.cta-box .btn-ink:hover { color: var(--accent); }
.cta-box > .cta-actions { flex: none; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 560px) { .cta-box > .cta-actions { flex: 1 1 100%; } }
.cta-section { padding-block: 0 var(--section-y); }

/* ——— Precios ——————————————————————————————————————————————— */
.price-card {
  max-width: 560px; margin: 44px auto 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 3.6vw, 44px);
  text-align: center;
}
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.price-card h3 { font-size: 1.375rem; margin: 0 0 10px; }
.price-note { color: var(--muted); font-size: 15.5px; max-width: 46ch; margin-inline: auto; }
.price-table { width: 100%; border-collapse: collapse; margin: 26px 0 14px; font-size: 16px; }
.price-table th, .price-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { color: var(--muted); font-size: 13px; font-weight: 700; padding-top: 0; }
.price-table td { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-table thead th:last-child { text-align: right; }
.price-table tbody th { font-weight: 600; }
.price-cap td small { color: var(--muted); font-size: 13px; font-weight: 600; margin-left: 4px; }
.price-annual { font-weight: 700; margin: 0 0 24px; }
.price-card .btn { width: 100%; }
.price-fine { color: var(--muted); font-size: 14px; margin: 14px auto 0; max-width: 44ch; }
.price-custom { text-align: center; color: var(--muted); font-size: 15px; margin-top: 22px; }
.price-custom a { color: var(--ink); font-weight: 700; }
.hero-note { color: var(--muted); font-size: 14.5px; margin: 16px 0 0; }


/* ——— Wizard de reserva ————————————————————————————————————————— */
.booking-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 34px);
  margin-top: 40px;
}
.booking-panel + .booking-panel { margin-top: 20px; }
.panel-title { font-size: 20px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-title span { color: var(--primary); }

/* Servicios */
.service-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 282px), 1fr)); }
.service-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; color: var(--ink);
  font-family: inherit; font-size: inherit;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.service-card:hover { border-color: var(--primary); background: var(--card); transform: translateY(-2px); }
.service-card .svc-name { font: 700 16.5px var(--font-display); }
.service-card .svc-desc { color: var(--muted); font-size: 14px; }
.service-card .svc-meta { color: var(--primary); font-size: 13px; font-weight: 700; margin-top: 4px; }

/* Días */
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.day-tab {
  flex: none; min-width: 74px; padding: 11px 14px;
  background: color-mix(in srgb, var(--bg) 55%, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font: 600 13.5px var(--font-body);
  cursor: pointer; white-space: nowrap;
  transition: border-color var(--t), background var(--t);
}
.day-tab:hover { border-color: var(--primary); }
.day-tab[aria-pressed="true"] {
  background: var(--primary); border-color: var(--primary);
  color: var(--primary-ink); font-weight: 700;
}

/* Horarios: agrupados por tramo del día, cada tramo en grilla.
   Antes #slots-list (.slot-groups) no tenía estilos y cada horario ocupaba
   una fila completa: hasta 48 botones apilados. */
.slot-groups { display: grid; gap: 22px; }
.slot-group-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.slot-group-title small { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.slot-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
@media (max-width: 480px) {
  .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .slot-grid .slot-pill { padding: 10px 2px; }
}
.slot-pill {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 13px 8px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
  font-family: inherit; cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.slot-pill b { font: 700 15px var(--font-display); font-variant-numeric: tabular-nums; }
.slot-pill small { font-size: 12px; color: var(--muted); font-weight: 600; }
.slot-pill:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-1px); }
.slot-pill[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--card)); }
.slot-pill.full, .slot-pill:disabled { cursor: not-allowed; opacity: .5; border-style: dashed; background: transparent; }
.slot-pill.full small { text-transform: uppercase; letter-spacing: .05em; }

/* ————— Calendario / agenda (colorida por estado de disponibilidad) ————— */
.calendar { margin: 26px 0 14px; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
  padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.cal-head strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.cal-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 60%, var(--card)); color: var(--ink);
  font-size: 20px; cursor: pointer; transition: all var(--t);
}
.cal-nav:hover:not(:disabled) { background: var(--card); border-color: var(--primary); color: var(--primary); transform: scale(1.06); }
.cal-nav:disabled { opacity: .4; cursor: not-allowed; }
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted); user-select: none;
}
.cal-week span { text-align: center; padding: 8px 2px; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden;
}
.cal-day {
  position: relative; aspect-ratio: 1 / 1; padding: 6px;
  background: var(--card); border: none; color: var(--ink); cursor: pointer;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  text-align: center; transition: background var(--t), color var(--t), transform var(--t);
  display: flex; flex-direction: column; align-items: center;
}
.cal-day:hover:not(.disabled):not(.closed) { background: color-mix(in srgb, var(--primary) 8%, var(--card)); transform: translateY(-1px); }
.cal-day .cal-num { font-size: 15px; }
.cal-day .cal-state {
  margin-top: 2px; font-size: 12px; font-weight: 700; padding: 2px 6px;
  border-radius: 999px; white-space: nowrap; line-height: 1;
}
.cal-day .cal-hint { margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-day.blank { background: transparent; cursor: default; }
.cal-day.disabled { opacity: .35; cursor: not-allowed; }
.cal-day.today:not(.selected) .cal-num { color: var(--primary); }
.cal-day.today:not(.selected) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 70%, transparent) inset; }
.cal-day.selected {
  background: var(--primary); color: var(--primary-ink);
  box-shadow: 0 0 0 2px var(--accent);
}
.cal-day.selected .cal-num,
.cal-day.selected .cal-hint { color: inherit; opacity: .9; }
/* Estados de disponibilidad (semáforo) */
.cal-day.available { --state-bg: color-mix(in srgb, var(--accent) 22%, var(--card)); }
.cal-day.partial { --state-bg: color-mix(in srgb, #f59e0b 20%, var(--card)); }
.cal-day.full { --state-bg: color-mix(in srgb, #ef4444 18%, var(--card)); }
.cal-day.closed { --state-bg: color-mix(in srgb, var(--ink) 8%, var(--card)); }
.cal-day.available .cal-state { background: color-mix(in srgb, #16a34a 75%, transparent); color: #064e31; }
.cal-day.partial .cal-state { background: color-mix(in srgb, #d97706 75%, transparent); color: #78350f; }
.cal-day.full .cal-state { background: color-mix(in srgb, #dc2626 75%, transparent); color: #7f1d1d; }
.cal-day.closed .cal-state { background: color-mix(in srgb, var(--ink) 55%, transparent); color: var(--muted); }
.cal-day.closed { opacity: .55; }
.cal-day.sunday .cal-num { color: #ef4444; }
.cal-day.saturday .cal-num { color: #f59e0b; }
/* Dark themes: los estados se mantienen legibles porque usan tintes sobre var(--card) */
[data-palette="tattoo-studio"] .cal-day.available .cal-state { color: #dcfce7; }
[data-palette="tattoo-studio"] .cal-day.closed { opacity: .6; }
.cal-tz { font-size: 12px; color: var(--muted); margin-top: 8px; }
.slots-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.slots-date-label { font-size: 15px; font-weight: 600; }
.slots-filter { font-size: 13px; cursor: pointer; margin: 0; }

/* Formulario */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form-grid label:has(textarea) { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
  font: 400 16px var(--font-body);
  transition: border-color var(--t);
}
.form-grid textarea { min-height: 84px; resize: vertical; }
.form-grid select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; cursor: pointer; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: var(--muted); }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--primary); }
.field-hint { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.field-hint.is-ok { color: var(--ok, #166534); }
.field-hint.is-bad { color: var(--danger, #9f1239); }
.form-note { grid-column: 1 / -1; font-size: 14.5px; color: var(--muted); }
.form-note:not(:empty) { padding: 13px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 520px) { .form-actions { flex-direction: column-reverse; } .form-actions .btn { width: 100%; } }

/* Confirmación */
.done-box { display: flex; flex-direction: column; gap: 2px; }
.done-ok, .done-err {
  font: 700 17px var(--font-display); margin-bottom: 14px;
  padding-left: 14px; border-left: 4px solid var(--primary);
}
.done-err { border-left-color: var(--muted); }
.done-detail {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.done-detail span { font-size: 14px; color: var(--muted); }
.done-detail strong { font-size: 15px; text-align: right; }
.done-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.done-panel #again-btn { margin-top: 22px; }
.muted-note {
  color: var(--muted); font-size: 15px; padding: 22px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
}


/* (El progreso del flujo de reserva se define más abajo con .steps-progress,
   que es la estructura real de reserva.html: 3 pasos + panel de resultado.) */

/* ——— Menú móvil: las secciones pasan a un panel bajo la cápsula ——— */
@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr auto auto; gap: 10px; min-height: 62px; padding: 0 8px 0 14px; }
  .header-actions { grid-column: 3; }
  .menu-toggle { display: block; grid-column: 4; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    justify-self: stretch;  /* sin esto el panel se encoge y queda centrado */
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 16px;
    background: var(--card); border: 1px solid var(--line);
    box-shadow: 0 24px 48px -16px rgba(58, 38, 18, .35);
    font-size: 16.5px; font-weight: 500;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 10px; color: var(--ink); }
  .nav a:hover { background: var(--bg); }
  .nav a[aria-current="true"] { color: var(--primary); background: var(--selection, #f3e6cf); }
  .nav-indicator { display: none; }
}
/* Angosto: "Ingresar" y "Comenzar ahora" pasan al final del panel. */
@media (max-width: 640px) {
  .header-actions { display: none; }
  .nav .nav-cta { display: flex; margin-top: 6px; border-radius: var(--btn-radius); }
  .nav .nav-cta.btn-primary { color: #fff; }
  .nav .nav-cta:hover { color: var(--ink); background: var(--bg); }
  .nav .nav-cta.btn-primary:hover { background: var(--action, var(--primary)); }
}

/* ——— Footer ————————————————————————————————————————————————— */
footer {
  display: grid; gap: 34px 40px;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr));
  padding: clamp(40px, 5vw, 64px) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 30px;
  border-top: 1px solid var(--line);
}
footer > div { min-width: 0; }
footer b {
  display: block; margin-bottom: 14px;
  font: 700 12px var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
footer a { display: block; font-size: 15px; color: var(--muted); padding: 5px 0; transition: color var(--t); }
footer a:hover { color: var(--primary); }
.footer-brand { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-brand .brand-mark { margin-bottom: 2px; }
.footer-brand .brand-logo { height: 30px; margin-bottom: 2px; }
.footer-brand strong { font: 800 19px var(--font-display); letter-spacing: -.02em; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
@media (pointer: coarse) { footer > div > a { display: flex; align-items: center; min-height: 44px; padding: 0; } }
.footer-brand p a { display: inline; padding: 0; font-size: inherit; color: var(--ink); font-weight: 700; }
.copyright {
  padding: 18px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; text-align: center;
}
@media (max-width: 780px) {
  footer { grid-template-columns: 1fr 1fr; padding-inline: var(--gutter); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  footer { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Componentes de reserva (reserva.html) y ajustes finales de alineación
   ========================================================================== */

/* ——— Progreso del flujo de reserva ——————————————————————————— */
.steps-progress {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; list-style: none; margin: 0 0 28px; padding: 0;
}
.steps-progress li {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--muted);
  font-size: 14px; font-weight: 600;
}
.steps-progress b {
  width: 25px; height: 25px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  color: var(--ink);
  font: 700 12px var(--font-display);
}
.steps-progress li[aria-current="step"] {
  border-color: var(--primary); color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.steps-progress li[aria-current="step"] b { background: var(--primary); color: var(--primary-ink); }
.steps-progress li[data-done="true"] { color: var(--ink); }
.steps-progress li[data-done="true"] b { background: var(--ink); color: var(--accent); }
@media (max-width: 700px) { .steps-progress { grid-template-columns: 1fr; } }

/* ——— Resumen de la reserva (columna del dashboard) ——————————— */
.summary-list { display: grid; gap: 9px; margin-top: 18px; }
.summary-list > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 14px; border-radius: 11px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.summary-list span {
  font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.summary-list strong {
  font: 700 15px var(--font-display); color: var(--ink);
  text-align: right; overflow-wrap: anywhere;
}

/* ——— Ayudas dentro de los paneles ——————————————————————————— */
.panel-help { color: var(--muted); font-size: 15px; margin: -4px 0 22px; max-width: 64ch; }
.loading-note { color: var(--muted); font-size: 15px; margin: 18px 0; }
.opt { color: var(--muted); font-weight: 500; }

/* ——— Aviso de modo demo: en flujo, nunca tapa el header ——————— */
.banner-warn {
  position: static;
  display: block; margin: 0;
  padding-block: 13px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--primary) 16%, var(--card));
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.banner-warn strong { color: var(--primary); }
.banner-warn code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
  padding: 2px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

/* ——— Cierre: alineación fina ———————————————————————————————
   El footer y el aviso heredan el gutter del contenedor para que su borde
   izquierdo coincida con el de las secciones. (No hace falta repetir reglas:
   footer ya declara su padding-inline en su bloque principal.)
   ------------------------------------------------------------ */
/* ============================================================
   Capa de animación pública · se añade al final para poder
   sobrescribir sin tocar las reglas base de arriba.
   Respeto total por prefers-reduced-motion (bloque al final).
   ============================================================ */

/* ——— Entrada del hero (solo primera carga) ————————————————— */
@keyframes tr-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: tr-rise .4s var(--ease-expo) both; }
.hero-copy > .hero-title, .hero-copy > .hero-actions { animation: none; }
@keyframes tr-word { from { transform: translateY(108%); } to { transform: none; } }
.hero-title .hw > * { animation: tr-word .45s var(--ease-expo) both; }
.hero-title .hw:nth-child(2) > * { animation-delay: .04s; }
.hero-title .hw:nth-child(3) > * { animation-delay: .08s; }
.hero-title .hw:nth-child(4) > * { animation-delay: .12s; }
.hero-title-2 .hw:nth-child(1) > * { animation-delay: .2s; }
.hero-title-2 .hw:nth-child(2) > * { animation-delay: .24s; }
.hero-title-2 .hw:nth-child(3) > * { animation-delay: .28s; }

/* La agenda de ejemplo sube, sus reservas entran una a una y al final
   llega la notificación de una reserva nueva. */
@keyframes tr-toast { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.ag { animation: tr-rise .45s .15s var(--ease-expo) both; }
.cita { animation: tr-rise .35s var(--ease-expo) both; }
.cita:nth-child(1) { animation-delay: .35s; }
.cita:nth-child(2) { animation-delay: .45s; }
.cita:nth-child(3) { animation-delay: .55s; }
.hv-toast { animation: tr-toast .35s .8s var(--ease-expo) both; }

/* ——— Entrada de botones: barrido de izquierda a derecha ———————
   Solo en el inicio, como parte de su entrada escalonada: la guía pide un
   único gesto protagonista por pantalla, así que el resto de los botones
   ya están en su lugar cuando su bloque aparece. */
@keyframes tr-btn-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-actions .btn { animation: tr-btn-in .4s .3s var(--ease-expo) both; }
.hero-actions .btn + .btn { animation-delay: .38s; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .19s; }
.hero-copy > *:nth-child(4) { animation-delay: .26s; }
.hero-copy > *:nth-child(5) { animation-delay: .33s; }
.dashboard-wrap { animation: tr-rise .4s .15s var(--ease-expo) both; }

/* ——— Reveal on scroll: estado inicial oculto solo si hay JS ——— */
/* app.js añade data-js al <html>; sin JS la página se ve completa. */
html[data-js] .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease-expo), transform .4s var(--ease-expo);
}
html[data-js] .reveal.in-view { opacity: 1; transform: none; }

/* Escalonado interno: los hijos de una grilla revelan en cascada */
html[data-js] .reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease-expo), transform .35s var(--ease-expo);
}
html[data-js] .reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .00s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .12s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .18s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .18s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .24s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .24s; }
.reveal-stagger.in-view > *:nth-child(n+9) { transition-delay: .30s; }

/* ——— Micro-interacciones en tarjetas ——————————————————————— */
.feature-card, .business-grid article, .price-card, .dashboard {
  transition: transform .22s var(--ease-expo), box-shadow .22s var(--ease-expo), border-color .22s var(--ease-expo);
}
.feature-card:hover, .business-grid article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow-md);
}
.feature-card .icon { transition: transform .22s var(--ease-expo), background .22s var(--ease-expo), color .22s var(--ease-expo); }
.feature-card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }


/* ——— Wizard de reserva: transición entre pasos ————————————— */
/* Al quitar [hidden], display pasa de none a grid y la animación reinicia. */
@keyframes tr-step-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.booking-panel { animation: tr-step-in .32s var(--ease-expo) both; }

/* Servicios y slots: entrada en cascada cada vez que se renderizan */
.service-card, .slot-pill, .day-tab { animation: tr-step-in .3s ease both; }
.service-card:nth-child(2) { animation-delay: .05s; }
.service-card:nth-child(3) { animation-delay: .1s; }
.service-card:nth-child(n+4) { animation-delay: .15s; }
.slot-pill:nth-child(2) { animation-delay: .02s; }
.slot-pill:nth-child(3) { animation-delay: .04s; }
.slot-pill:nth-child(n+4) { animation-delay: .06s; }

/* Confirmación final: check que entra con escala */
@keyframes tr-pop {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.done-panel:not([hidden]) .done-ok { animation: tr-pop .3s var(--ease-expo) both; }
.done-panel:not([hidden]) .done-detail { animation: tr-rise .4s ease both; }
.done-panel:not([hidden]) .done-detail:nth-child(2) { animation-delay: .08s; }
.done-panel:not([hidden]) .done-detail:nth-child(3) { animation-delay: .14s; }
.done-panel:not([hidden]) .done-detail:nth-child(n+4) { animation-delay: .2s; }

/* ——— Menú móvil: despliegue animado ———————————————————————— */
@media (max-width: 1080px) {
  @keyframes tr-menu-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
  .nav[data-open="true"] { animation: tr-menu-in .22s var(--ease-expo) both; }
}

/* ——— Cierre "Empieza hoy" ———————————————————————————————————
   Paleta de la ilustración "Horas respondiendo": crema, carbón cálido,
   madera, salvia y coral. Contrastes: carbón sobre crema 11:1, carbón
   sobre coral 5,7:1, madera honda sobre crema 5,4:1, blanco sobre salvia
   honda 6,5:1. El reloj y las burbujas son ilustración (aria-hidden). */
.start {
  --crema: #efe4d2; --carbon: #2f2c26; --madera: #7a5233;
  --salvia: #728a7e; --salvia-honda: #4d6358; --coral: #f08a6c; --burbuja: #fbf6ee;
  background: var(--crema); color: var(--carbon);
  padding: var(--section-y) var(--gutter);
}
.start-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.start h2 { font-size: var(--fs-section); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 18px; color: var(--carbon); }
.start h2 em { color: var(--madera); }
.start-copy p { font-size: 18px; color: var(--carbon); max-width: 50ch; }
.start-copy p + p { margin-top: 10px; }
.start-copy p a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.start-copy .btn { margin-top: 32px; }
.start :focus-visible { outline-color: var(--carbon); }
.btn-coral { background: var(--coral); color: var(--carbon); }
.btn-coral::before { background: var(--carbon); }
.btn-coral:hover { color: var(--crema); }

.start-art { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; }
.start-clock { display: block; width: 78%; height: auto; margin-left: auto; }
.start-clock .cara { fill: var(--burbuja); stroke: var(--carbon); stroke-width: 7; }
.start-clock .marcas line { stroke: var(--carbon); stroke-width: 3.5; stroke-linecap: round; }
.start-clock .hora { stroke: var(--carbon); stroke-width: 7; stroke-linecap: round; }
.start-clock .minuto { stroke: var(--carbon); stroke-width: 5; stroke-linecap: round; }
.start-clock .segundo { stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }
.start-clock .eje { fill: var(--coral); }
.start-clock .hora, .start-clock .minuto, .start-clock .segundo { transform-box: view-box; transform-origin: 100px 100px; }
.start-chat { position: absolute; left: 0; bottom: 2%; width: 76%; display: grid; gap: 8px; }
.burbuja {
  justify-self: start; max-width: 100%;
  padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--burbuja); color: var(--carbon);
  font-size: 14.5px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 12px 26px -16px rgba(47, 44, 38, .55);
}
.burbuja--salvia { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--salvia-honda); color: #fff; }
@media (max-width: 860px) {
  .start-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Al aparecer, la conversación entra en orden: pregunta, respuesta de la
   agenda y confirmación. El reloj queda quieto (girarlo era decorativo). */
@keyframes tr-burbuja { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.start-grid.in-view .burbuja { animation: tr-burbuja .35s var(--ease-expo) both; }
.start-grid.in-view .burbuja:nth-child(1) { animation-delay: .2s; }
.start-grid.in-view .burbuja:nth-child(2) { animation-delay: .55s; }
.start-grid.in-view .burbuja:nth-child(3) { animation-delay: .9s; }

/* ——— Accesibilidad: sin movimiento si el usuario lo pide ———— */
@media (prefers-reduced-motion: reduce) {
  html[data-js] .reveal,
  html[data-js] .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-copy > *, .dashboard-wrap, .booking-panel,
  .service-card, .slot-pill, .day-tab,
  .done-panel:not([hidden]) .done-ok, .done-panel:not([hidden]) .done-detail,
  .nav[data-open="true"] { animation: none !important; }
  .nav-indicator, .menu-toggle span { transition: none !important; }
  .hero-title .hw > *, .hero-actions .btn, .ag, .cita, .hv-toast { animation: none !important; }
  .btn::before, .btn span { transition: none !important; }
  .start-grid .burbuja { animation: none !important; }
}
.pricing .price-card { max-width: 560px; margin-inline: auto; }
/* Etiqueta del selector de theme en la demo (sin estilos en línea: la CSP no los permite). */
.theme-select-label{font-size:13px;color:var(--muted)}
