/* Web publica de reservas de Tresa Hair Studio (P2).
   Diseño: docs/reservas/maqueta/reservas-maqueta.html (aprobada), sin el chat (P4).
   Fuentes locales (OFL): Bricolage Grotesque y Figtree, subconjunto latino, en ../fonts/.
   Iconos: sprite de Phosphor (MIT) en ../img/iconos.svg.
   CSP estricta: aqui van TODOS los estilos; el HTML no lleva style="" ni <style>. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================================================================== Tokens
   Radios, una sola escala: 6px casillas, 12px campos y piezas internas,
   20px tarjetas, paneles y marcos, pastilla para botones, chips y horas.
   Acento unico: el marron del logo (#59321C), aclarado en modo oscuro. */
:root {
  color-scheme: light dark;
  --bg: #F6F5F4;
  --surface: #FEFEFD;
  --surface-2: #EEECEA;
  --surface-3: #E3E0DD;
  --line: #E1DDD9;
  --line-strong: #C9C2BC;
  --field: #8E8680;
  --text: #1F1C1A;
  --muted: #5E5752;
  --accent: #59321C;
  --accent-hover: #6F4128;
  --accent-soft: #F2EAE5;
  --on-accent: #FFFDFB;
  --focus: #59321C;
  --danger: #A8261B;
  --danger-soft: #FBEAE7;
  --shadow: 0 1px 2px rgb(58 38 26 / .05), 0 14px 34px -10px rgb(58 38 26 / .18);
  --shadow-lg: 0 28px 70px -16px rgb(40 26 18 / .34);
  --backdrop: rgb(28 20 16 / .44);
  --logo-filter: none;
  --r-xs: 6px; --r-sm: 12px; --r-md: 20px; --r-pill: 999px;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141211; --surface: #1D1A18; --surface-2: #26221F; --surface-3: #312C28;
    --line: #36302C; --line-strong: #544B45; --field: #7F766F;
    --text: #F2EEEB; --muted: #B8AFA8;
    --accent: #D09A76; --accent-hover: #DCAC8B; --accent-soft: #37291F; --on-accent: #1B120D;
    --focus: #E0B391; --danger: #F0907F; --danger-soft: #3A201C;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 36px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 30px 80px -16px rgb(0 0 0 / .7);
    --backdrop: rgb(8 6 5 / .62);
    --logo-filter: brightness(0) invert(.92) sepia(.14);
  }
}

/* ===================================================================== Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-optical-sizing: auto; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.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; }
.muted { color: var(--muted); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.saltar { position: fixed; left: 16px; top: -80px; z-index: 60; background: var(--accent); color: var(--on-accent); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.ic { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }
.i0 { --i: 0; } .i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; }

/* ===================================================================== Botones */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; background: none;
  font: 600 16px/1.1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn .ic { font-size: 1.15em; }
.btn--primario { background: var(--accent); color: var(--on-accent); }
.btn--secundario { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.btn--fantasma { color: var(--accent); }
@media (hover: hover) {
  .btn--primario:hover:not(:disabled) { background: var(--accent-hover); }
  .btn--secundario:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
  .btn--fantasma:hover:not(:disabled) { background: var(--accent-soft); }
}
.btn--sm { --h: 44px; padding: 0 16px; font-size: 15px; }
.btn--grande { --h: 54px; padding: 0 26px; font-size: 17px; }
.btn--bloque { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .ic-carga { display: inline-block; }
.ic-carga { display: none; }
@media (prefers-reduced-motion: no-preference) { .btn[aria-busy="true"] .ic-carga { animation: gira .9s linear infinite; } }
.btn-icono {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-pill); border: 0; background: transparent; color: var(--text);
  font-size: 22px; cursor: pointer; transition: background-color .2s var(--ease);
}
@media (hover: hover) { .btn-icono:hover:not(:disabled) { background: var(--surface-2); } }
.btn-icono--borde { border: 1.5px solid var(--line-strong); background: var(--surface); }
.btn-icono:disabled { opacity: .4; cursor: default; }
.enlace {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--accent); font: 600 15px/1.2 var(--font-body); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.enlace--linea { min-height: 0; font-size: inherit; }
.nota { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.nota .ic { font-size: 17px; margin-top: 2px; }

/* ===================================================================== Cabecera */
.tope { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease);
}
.cabecera.con-borde { border-bottom-color: var(--line); }
.cabecera__fila { display: flex; align-items: center; gap: 20px; height: 100%; }
.logo { display: block; flex: none; width: 74px; height: 44px; overflow: hidden; border-radius: var(--r-xs); }
.logo img { display: block; width: 90px; height: 90px; max-width: none; margin: -23px 0 0 -8px; filter: var(--logo-filter); }
.cabecera__fila > nav { margin-left: auto; }
.nav { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap;
}
@media (hover: hover) { .nav a:hover { background: var(--surface-2); } }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.cabecera__movil { display: none; align-items: center; gap: 6px; margin-left: auto; }
.menu-movil {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 29; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 20px;
}
.menu-movil ul { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-movil a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line);
}
.menu-movil a[aria-current="page"] { color: var(--accent); }
.menu-movil li:last-child a { border-bottom: 0; }
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .cabecera__cta { display: none; }
  .cabecera__movil { display: flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .menu-movil:not([hidden]) { animation: baja .28s var(--ease); }
}

/* ===================================================================== Marcos (sin fotos todavia: decorativos) */
.marco {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 16% 8%, rgb(255 232 214 / .34), transparent 55%),
    radial-gradient(90% 80% at 92% 100%, rgb(18 9 4 / .38), transparent 62%),
    linear-gradient(155deg, #8A5A3C 0%, #59321C 50%, #3A1F11 100%);
}
.marco::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgb(255 255 255 / .04) 0 1px, transparent 1px 8px);
}
.marco--taupe {
  background:
    radial-gradient(110% 90% at 20% 10%, rgb(255 240 228 / .3), transparent 55%),
    linear-gradient(155deg, #9A8272 0%, #6B5446 55%, #47372D 100%);
}
.marco--piedra {
  background:
    radial-gradient(110% 90% at 20% 10%, rgb(255 250 245 / .28), transparent 55%),
    linear-gradient(155deg, #8C827B 0%, #625852 55%, #443C37 100%);
}
.marco__inicial { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: rgb(255 253 251 / .82); font: 700 64px/1 var(--font-display); letter-spacing: -.03em; }
.marco__foto { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ===================================================================== Portada */
.hero { padding: calc(var(--header-h) + 36px) 0 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 2.3vw + 24px, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -.028em;
  text-wrap: balance; max-width: 15ch;
}
.hero__sub { margin: 22px 0 34px; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 36ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.saludo { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-bottom: 14px; color: var(--accent); font-weight: 600; font-size: 16px; max-width: 44ch; }
.saludo .enlace { font-size: 15px; }
.hero__foto { position: relative; }
.marco--hero { height: 560px; }
.proxima {
  position: absolute; left: -44px; bottom: 36px; z-index: 2; width: 318px;
  display: flex; gap: 14px; padding: 18px 20px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
}
.proxima__icono { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; }
.proxima__titulo { font-size: 14px; color: var(--muted); font-weight: 500; }
.proxima__titulo strong { display: block; margin-top: 2px; font: 700 23px/1.15 var(--font-display); color: var(--text); letter-spacing: -.01em; }
.proxima__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 1180px) { .proxima { left: 16px; } }
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { max-width: 16ch; }
  .hero__sub { margin: 16px 0 26px; font-size: 17px; }
  .marco--hero { height: auto; aspect-ratio: 4 / 3.4; }
  .proxima { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (max-width: 420px) {
  .hero__cta .btn { flex: 1 1 auto; padding: 0 18px; }
}

/* ===================================================================== Secciones */
.seccion { padding: 88px 0; }
.titulo-seccion { font-size: clamp(30px, 1.5vw + 20px, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.texto-seccion { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 44ch; }
@media (max-width: 767px) { .seccion { padding: 64px 0; } }

/* Servicios */
.servicios { padding-top: 56px; }
.servicios__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.filtros { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 28px 0 16px; background: var(--surface-2); border-radius: var(--r-pill); }
.filtro {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent;
  color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.filtro[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(40 26 18 / .12); }
.servicios__foto { margin: 32px 0 0; }
.servicios__foto .marco { aspect-ratio: 4 / 3; }
.lista-srv { list-style: none; margin: 0; padding: 0; }
.srv {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 28px; align-items: center;
  padding: 24px 8px; border-radius: var(--r-sm); transition: background-color .2s var(--ease);
}
.srv + .srv::before { content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 1px; background: var(--line); }
.lista-srv .srv[hidden] + .srv::before { display: none; }
@media (hover: hover) { .srv:hover { background: var(--surface); } }
.srv__nombre { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.srv__desc { margin-top: 4px; color: var(--muted); font-size: 15px; max-width: 48ch; }
.srv__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--muted); font-size: 15px; }
.srv__meta span { display: inline-flex; align-items: center; gap: 6px; }
.srv__precio { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv__desde { display: block; font-size: 13px; color: var(--muted); }
.srv__monto { font: 600 19px/1.2 var(--font-body); }
.srv__consultar { font-size: 15px; font-weight: 600; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .srv.aparece { animation: sube .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@media (max-width: 1023px) {
  .servicios__grid { grid-template-columns: 1fr; gap: 24px; }
  .servicios__foto { display: none; }
}
/* Sin precios (02/10): dos columnas, servicio y boton. */
.lista-srv--sin-precio .srv { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 560px) {
  .srv { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info info" "precio boton"; padding: 20px 4px; }
  .lista-srv--sin-precio .srv { grid-template-areas: "info info" ". boton"; }
  .srv__info { grid-area: info; }
  .srv__precio { grid-area: precio; text-align: left; }
  .srv__boton { grid-area: boton; }
  .srv__nombre { font-size: 20px; }
}

/* Equipo */
.equipo { padding-top: 40px; }
.equipo__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.equipo__flechas { display: flex; gap: 8px; }
.pista {
  list-style: none; margin: 0; display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100% - 1176px) / 2)) 16px;
  scroll-padding-inline: max(20px, calc((100% - 1176px) / 2)); scrollbar-width: thin;
}
.pro {
  flex: 0 0 min(560px, 84%); scroll-snap-align: start; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.pro__foto { aspect-ratio: 4 / 5; border-radius: var(--r-sm); }
.pro__texto { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 8px 6px 0; }
.pro__nombre { font-size: 30px; line-height: 1.1; font-weight: 700; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.pro__srv { margin: 16px 0 20px; color: var(--muted); font-size: 15px; }
.pro .btn { margin-top: auto; }
@media (max-width: 767px) {
  .equipo__flechas { display: none; }
  .equipo__cab { margin-bottom: 24px; }
  .pista { display: grid; overflow: visible; padding: 0 20px; gap: 16px; scroll-snap-type: none; }
  .pro { grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 12px; }
  .pro__texto { padding: 4px 0; }
  .pro__nombre { font-size: 24px; }
  .marco__inicial { font-size: 44px; }
  .chips { margin-top: 10px; }
  .pro__srv { margin: 10px 0 14px; font-size: 14px; }
}
.vacio-seccion { padding: 18px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }

/* Horario y ubicacion */
.horario { padding-top: 48px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.celda { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; }
.celda h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.celda--mapa { grid-column: 1 / span 7; grid-row: 1 / span 2; margin: 0; padding: 0; background: none; border: 0; display: flex; flex-direction: column; }
.celda--horas { grid-column: 8 / span 5; }
.celda--contacto { grid-column: 8 / span 5; }
.mapa {
  position: relative; flex: 1; min-height: 360px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 44%, var(--surface) 44% 47.5%, transparent 47.5%),
    linear-gradient(0deg, transparent 0 56%, var(--surface) 56% 60%, transparent 60%),
    linear-gradient(28deg, transparent 0 70%, var(--surface) 70% 71.6%, transparent 71.6%),
    repeating-linear-gradient(90deg, transparent 0 86px, var(--line) 86px 88px),
    repeating-linear-gradient(0deg, transparent 0 70px, var(--line) 70px 72px),
    var(--surface-2);
}
.mapa__pin {
  position: absolute; left: 45.75%; top: 42%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 28px;
  box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 18%, transparent), var(--shadow);
}
.horas-semana { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.horas-semana li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.horas-semana .dia-nombre { flex: 1; font-weight: 500; }
.horas-semana .cerrado { color: var(--muted); }
.horas-semana li.es-hoy { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.horas-semana li.es-hoy .dia-nombre { font-weight: 700; }
.etiqueta-hoy { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
.direccion { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; font-weight: 600; margin-bottom: 20px; line-height: 1.4; }
.direccion .ic { font-size: 22px; color: var(--accent); margin-top: 2px; }
.contacto__botones { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1023px) {
  .celda--mapa, .celda--horas, .celda--contacto { grid-column: 1 / -1; grid-row: auto; }
  .celda--mapa { order: 3; }
  .mapa { min-height: 260px; }
}
@media (max-width: 480px) {
  .celda { padding: 20px; }
  .contacto__botones .btn { width: 100%; }
}

/* Pie */
.pie { border-top: 1px solid var(--line); padding: 48px 0 64px; margin-top: 24px; }
.pie__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; align-items: start; }
.pie__marca { display: flex; gap: 16px; align-items: flex-start; }
.pie__marca p, .pie__legal { font-size: 15px; color: var(--muted); line-height: 1.6; }
.pie__marca b { color: var(--text); }
.pie__enlaces { list-style: none; margin: 0; padding: 0; display: grid; }
.pie__enlaces a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 500; text-underline-offset: 4px; }
.pie__legal span { display: block; margin-top: 6px; font-size: 13px; }
@media (max-width: 767px) { .pie__grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===================================================================== Mis citas */
.mis-citas { padding: calc(var(--header-h) + 32px) 0 72px; min-height: 70vh; }
.wrap--estrecho { max-width: 880px; }
.volver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.mis-citas h1 { font-size: clamp(34px, 2vw + 24px, 48px); font-weight: 700; letter-spacing: -.028em; margin-top: 8px; }
.mc-hola { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 19px; margin-top: 6px; }
.mc-seguro { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 14px; color: var(--muted); }
.mc-seguro .ic { color: var(--accent); font-size: 17px; }
.mis-citas h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; }
.citas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cita {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 16px 18px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.cita__fecha { display: grid; justify-items: center; gap: 2px; padding: 10px 0; margin: 0; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.cita__fecha span { font-size: 13px; font-weight: 600; }
.cita__fecha b { font: 700 28px/1 var(--font-display); }
.cita--pasada .cita__fecha, .cita--cancelada .cita__fecha { background: var(--surface-2); color: var(--muted); }
.cita__info h3 { font-size: 20px; font-weight: 600; }
.cita__cuando { margin: 4px 0 10px; color: var(--muted); }
.cita__acciones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cita__solo { margin-top: 10px; }
.mc-pie { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.mc-vacio { padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }
.mc-cargando { display: grid; gap: 12px; }
.mc-cargando span { display: block; height: 104px; border-radius: var(--r-md); background: var(--surface-3); }
.mc-acceso { margin-top: 28px; max-width: 520px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.mc-acceso h2 { margin: 0 0 6px; }
.mc-acceso .paso__intro { margin-bottom: 16px; }
.mc-acceso__botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 640px) {
  .cita { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .cita__fecha b { font-size: 24px; }
  .cita__acciones { grid-column: 1 / -1; justify-content: stretch; }
  .cita__acciones .btn { flex: 1; }
  .mc-acceso { padding: 18px; }
}

/* ===================================================================== Estados */
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; line-height: 1.25; }
.estado .ic { font-size: 16px; }
.estado--pendiente { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.estado--confirmada, .estado--en_curso { background: var(--accent-soft); color: var(--accent); }
.estado--completada, .estado--cancelada, .estado--no_asistio { padding-left: 0; color: var(--muted); }

/* ===================================================================== Avisos dentro del flujo */
.alerta { display: grid; gap: 10px; margin: 14px 0 6px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--text); }
.alerta__texto { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.alerta__texto .ic { font-size: 20px; color: var(--danger); margin-top: 1px; }
.alerta--info { background: var(--surface-2); }
.alerta--info .alerta__texto .ic { color: var(--accent); }
.alerta__botones { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===================================================================== Dialogos */
dialog { padding: 0; border: 0; color: var(--text); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: var(--backdrop); }
.panel {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px, 100%); height: 100dvh;
  border-radius: var(--r-md) 0 0 var(--r-md); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel:not([open]) { display: none; }
.panel__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 10px 24px; }
.panel__titulo { font-size: 22px; font-weight: 700; }
.pasos { list-style: none; margin: 0; padding: 0 24px 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pasos button {
  width: 100%; min-height: 44px; display: grid; align-content: start; gap: 8px; padding: 6px 0 0; border: 0; background: none;
  text-align: left; color: var(--muted); font: 500 13px/1.2 var(--font-body); cursor: pointer;
}
.pasos button:disabled { cursor: default; }
.pasos .barra { display: block; height: 4px; border-radius: var(--r-pill); background: var(--line); transition: background-color .3s var(--ease); }
.pasos .is-hecho .barra, .pasos .is-actual .barra { background: var(--accent); }
.pasos .is-actual button { color: var(--text); font-weight: 700; }
.pasos .is-hecho button { color: var(--text); }
@media (hover: hover) { .pasos .is-hecho button:hover:not(:disabled) { color: var(--accent); } }
.panel__cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 28px; }
.panel__pie { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 24px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.pie__servicios { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pie__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; font-size: 14px; color: var(--muted); }
.pie__meta span { display: inline-flex; align-items: center; gap: 5px; }
.pie__vacio { font-size: 14px; color: var(--muted); }
.pie__botones { display: flex; gap: 10px; }
.pie__botones .btn--primario { flex: 1; }
@media (max-width: 599px) {
  .panel { width: 100%; border-radius: 0; }
  .panel__cab { padding-left: 20px; }
  .pasos { padding-inline: 20px; }
  .panel__cuerpo { padding-inline: 20px; }
  .panel__pie { padding-inline: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .panel[open] { animation: panel-entra .34s var(--ease); }
  dialog[open]::backdrop { animation: fundido .3s ease; }
  .paso.entra { animation: paso-entra .3s var(--ease); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 599px) {
  .panel[open] { animation: hoja-entra .34s var(--ease); }
}

/* Pasos del flujo */
.paso__titulo { font-size: 24px; line-height: 1.15; font-weight: 700; margin: 18px 0 6px; }
.paso__intro { color: var(--muted); margin-bottom: 18px; }
.grupo { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.grupo__titulo { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.opcion {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; margin-bottom: 8px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
@media (hover: hover) { .opcion:hover { border-color: var(--line-strong); } }
.opcion.is-marcada { border-color: var(--accent); background: var(--accent-soft); }
.opcion:has(input:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.opcion:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opcion__caja { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--field); border-radius: var(--r-xs); background: var(--surface); color: transparent; font-size: 15px; }
.opcion__radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--field); background: var(--surface); }
.is-marcada .opcion__caja { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.is-marcada .opcion__radio { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 12px var(--accent); }
.opcion__texto { flex: 1; min-width: 0; display: grid; gap: 3px; }
.opcion__nombre { font-weight: 600; line-height: 1.3; }
.opcion__meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.opcion__precio { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.etiqueta { display: inline-flex; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #FFFDFB; font: 700 19px/1 var(--font-display); overflow: hidden;
}
.avatar::before { display: none; }
.avatar--todas { background: var(--surface-2); color: var(--accent); font-size: 22px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.paso__nota { margin-top: 4px; }
/* «¿No está lo que buscas? Escríbelo» (02/10): un servicio que no esta en la lista, a definir en el salón. */
.otro { margin: 10px 0 0; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface); }
.otro__t { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.otro__t .ic { font-size: 18px; color: var(--accent); flex: none; }
.otro__campo { margin-bottom: 0; }

.dias {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 3px 12px; margin: 0 -3px 4px; scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.dias.al-final { -webkit-mask-image: none; mask-image: none; }
.dia {
  flex: none; width: 58px; min-height: 80px; display: grid; justify-items: center; align-content: center; gap: 2px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
  scroll-snap-align: start; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) { .dia:hover:not(:disabled):not(.is-sel) { border-color: var(--line-strong); } }
.dia__sem { font-size: 13px; color: var(--muted); }
.dia__num { font: 700 21px/1.1 var(--font-display); }
.dia__extra { font-size: 12px; font-weight: 600; color: var(--muted); min-height: 15px; }
.dia.is-sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dia.is-sel .dia__sem, .dia.is-sel .dia__extra { color: var(--on-accent); }
.dia:disabled { background: var(--surface-2); border-color: transparent; cursor: not-allowed; }
.dia:disabled .dia__num { color: var(--muted); font-weight: 500; }
.horas__dia { font-weight: 600; margin: 10px 0 2px; }
.franja { margin-top: 16px; }
.franja__titulo { display: flex; align-items: center; gap: 7px; font: 600 14px/1.2 var(--font-body); letter-spacing: 0; color: var(--text); margin-bottom: 10px; }
.franja__titulo .ic { font-size: 17px; color: var(--accent); }
.franja__vacia { font-size: 14px; color: var(--muted); }
.pastillas { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pastilla {
  min-height: 52px; padding: 6px 10px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--text); font: 600 15px/1.2 var(--font-body); display: grid; place-content: center; text-align: center; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.pastilla small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
@media (hover: hover) { .pastilla:hover:not(.is-sel) { border-color: var(--accent); } }
.pastilla.is-sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pastilla.is-sel small { color: var(--on-accent); }
.esq__titulo { display: block; width: 90px; height: 14px; margin: 22px 0 12px; border-radius: var(--r-pill); background: var(--surface-3); }
.esq__pastilla { display: block; height: 52px; border-radius: var(--r-pill); background: var(--surface-3); }
.esq__dia { display: block; width: 160px; height: 16px; margin-top: 12px; border-radius: var(--r-pill); background: var(--surface-3); }
@media (prefers-reduced-motion: no-preference) {
  .esq__titulo, .esq__pastilla, .esq__dia, .mc-cargando span, .cf-cargando span {
    background: linear-gradient(90deg, var(--surface-3) 0 38%, var(--surface-2) 50%, var(--surface-3) 62% 100%);
    background-size: 300% 100%; animation: brillo 1.3s linear infinite;
  }
}
.vacio { display: grid; justify-items: center; text-align: center; gap: 6px; margin-top: 14px; padding: 30px 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }
.vacio__icono { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 26px; }
.vacio__titulo { font: 700 19px/1.25 var(--font-display); }
.vacio__texto { color: var(--muted); margin-bottom: 10px; }

.campo { display: grid; gap: 6px; margin-bottom: 18px; }
.campo > label { font-weight: 600; font-size: 15px; }
.entrada {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: 400 16px/1.2 var(--font-body);
}
.entrada::placeholder { color: var(--muted); }
.entrada:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 26%, transparent); }
.entrada[aria-invalid="true"] { border-color: var(--danger); }
.tel { display: flex; border: 1.5px solid var(--field); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.tel:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 26%, transparent); }
.tel:has([aria-invalid="true"]) { border-color: var(--danger); }
.tel__pref { display: grid; place-items: center; padding: 0 14px; background: var(--surface-2); font-weight: 600; border-right: 1.5px solid var(--line-strong); }
.tel .entrada { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.tel .entrada:focus-visible { box-shadow: none; }
.campo__ayuda { font-size: 14px; color: var(--muted); }
.campo__error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--danger); }
.campo__error:empty { display: none; }
.campo__error .ic { font-size: 17px; margin-top: 1px; }
.permisos { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.casilla { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; line-height: 1.45; }
.casilla input {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--field); border-radius: var(--r-xs); background: var(--surface);
}
.casilla input::after { content: ""; width: 12px; height: 7px; border: 2.5px solid var(--on-accent); border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); opacity: 0; }
.casilla input:checked { background: var(--accent); border-color: var(--accent); }
.casilla input:checked::after { opacity: 1; }
.casilla input[aria-invalid="true"] { border-color: var(--danger); }
.casilla__extra { padding-left: 36px; margin-top: -4px; display: grid; gap: 4px; }
.casilla__extra a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.identificada { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.identificada > .ic { font-size: 24px; color: var(--accent); }
.identificada .enlace { margin-top: 2px; }
.espacio { height: 18px; }
.enviado-a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; margin-bottom: 20px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); }
.enviado-a > .ic { font-size: 21px; color: var(--accent); margin-top: 1px; }
.enviado-a b { color: var(--text); white-space: nowrap; }
.enviado-a .enlace { margin-bottom: -10px; }
.otp { position: relative; width: max-content; max-width: 100%; }
.otp__celdas { display: grid; grid-template-columns: repeat(6, 46px); gap: 8px; pointer-events: none; }
.otp__celda {
  height: 58px; display: grid; place-items: center; border: 1.5px solid var(--field); border-radius: var(--r-sm); background: var(--surface);
  font: 700 24px/1 var(--font-display); font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s;
}
.otp input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; outline: none; background: transparent;
  color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 40px; cursor: text;
}
.otp input::selection { background: transparent; }
.otp:focus-within .otp__celda.is-activa { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 26%, transparent); }
.otp.otp--error .otp__celda { border-color: var(--danger); }
@media (max-width: 380px) { .otp__celdas { grid-template-columns: repeat(6, 42px); gap: 6px; } }
.reenviar { display: flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 15px; }
.reenviar .muted { display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }

.hecho { display: grid; justify-items: start; gap: 10px; padding-top: 8px; }
.hecho__icono { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 30px; margin-top: 12px; }
.hecho .paso__titulo { margin: 4px 0 0; font-size: 28px; }
.resumen { width: 100%; margin: 8px 0 4px; padding: 4px 16px; border-radius: var(--r-sm); background: var(--surface-2); }
.resumen div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.resumen div + div { border-top: 1px solid var(--line); }
.resumen dt { color: var(--muted); }
.resumen dd { margin: 0; font-weight: 600; text-align: right; }
.hecho__aviso { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.hecho__aviso .ic { font-size: 20px; color: var(--accent); margin-top: 2px; }
.hecho__botones { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: 8px; }
.hecho__botones .btn { flex: 1 1 180px; }

/* Modal centrado */
.modal { margin: auto; width: min(460px, calc(100% - 32px)); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.modal__cuerpo { padding: 28px; display: grid; gap: 14px; }
.modal h2 { font-size: 24px; font-weight: 700; }
.modal p { color: var(--muted); }
.modal .campo__error { color: var(--danger); }
.modal__botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.modal__botones .btn { flex: 1 1 160px; }
.motivos { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.motivos legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.motivo { position: relative; }
.motivo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.motivo span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); cursor: pointer; font-weight: 500; }
.motivo input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.motivo input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .modal[open] { animation: modal-entra .28s var(--ease); } }

/* Aviso breve (popover) */
.aviso {
  position: fixed; inset: auto auto 24px 50%; translate: -50% 0; margin: 0; max-width: min(440px, calc(100% - 32px));
  padding: 14px 18px; border: 0; border-radius: var(--r-sm); background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 500; box-shadow: var(--shadow-lg);
}
@media (prefers-reduced-motion: no-preference) { .aviso:popover-open { animation: sube .3s var(--ease); } }
/* En el movil el aviso va arriba: abajo taparia el boton principal del panel. */
@media (max-width: 599px) { .aviso { inset: calc(12px + env(safe-area-inset-top)) auto auto 50%; } }

/* ===================================================================== Aviso de privacidad y 404 */
.legal { padding: calc(var(--header-h) + 32px) 0 72px; }
.legal h1 { font-size: clamp(34px, 2vw + 24px, 48px); font-weight: 700; letter-spacing: -.028em; margin-top: 8px; }
.legal__estado { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.legal__estado .ic { font-size: 17px; }
.legal__intro { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.legal ol.puntos { list-style: none; counter-reset: punto; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.legal ol.puntos > li { counter-increment: punto; position: relative; padding: 22px 24px 22px 70px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.legal ol.puntos > li::before { content: counter(punto); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 16px/1 var(--font-display); }
.legal h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.legal li p + p, .legal li p + ul, .legal li ul + p { margin-top: 8px; }
.legal li ul { margin: 8px 0 0; padding-left: 20px; }
.legal li li + li { margin-top: 4px; }
.legal .marcador { padding: 1px 6px; border-radius: var(--r-xs); background: var(--surface-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.legal__version { margin-top: 28px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) {
  .legal ol.puntos > li { padding: 18px 18px 18px 58px; }
  .legal ol.puntos > li::before { left: 14px; top: 16px; width: 30px; height: 30px; font-size: 15px; }
}
.error404 { padding: calc(var(--header-h) + 56px) 0 96px; min-height: 60vh; }
.error404 h1 { font-size: clamp(34px, 2vw + 24px, 48px); font-weight: 700; letter-spacing: -.028em; }
.error404 p { margin: 12px 0 24px; color: var(--muted); font-size: 18px; }

/* ===================================================================== Confirmar una propuesta de MCP (P3) */
.confirmar { padding: calc(var(--header-h) + 32px) 0 72px; min-height: 70vh; }
.wrap--confirmar { max-width: 680px; }
.cf-origen { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.cf-origen .ic { font-size: 16px; }
.confirmar h1 { margin-top: 14px; font-size: clamp(32px, 2vw + 22px, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.cf-intro { margin-top: 12px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.cf-hola { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 6px; }
.cf-cuerpo { margin-top: 24px; }
.cf-cargando { display: grid; gap: 12px; }
.cf-cargando span { display: block; height: 240px; border-radius: var(--r-md); background: var(--surface-3); }
.cf-cargando span + span { height: 54px; border-radius: var(--r-pill); }
.cf-tarjeta { display: grid; gap: 14px; padding: 22px 24px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.cf-tarjeta__cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cf-tipo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1.2 var(--font-display); }
.cf-tipo .ic { font-size: 22px; color: var(--accent); }
.cf-reloj { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cf-reloj .ic { font-size: 16px; color: var(--accent); }
.cf-reloj--poco { background: var(--danger-soft); color: var(--danger); }
.cf-reloj--poco .ic { color: var(--danger); }
.cf-tarjeta .resumen { margin: 0; }
.cf-tarjeta .alerta { margin: 0; }
.cf-botones { display: grid; justify-items: center; gap: 2px; margin-top: 4px; }
.cf-nota { justify-content: center; text-align: center; padding-top: 10px; border-top: 1px solid var(--line); }
.cf-tarjeta.hecho { justify-items: start; gap: 12px; padding-top: 24px; }
.cf-tarjeta.hecho .hecho__icono { margin-top: 0; }
.cf-gracias { font-size: 17px; }
.cf-final { display: grid; justify-items: start; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.cf-final__icono { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 26px; }
.cf-final--error .cf-final__icono { background: var(--danger-soft); color: var(--danger); }
.cf-final p { font-size: 17px; color: var(--muted); max-width: 56ch; }
.cf-final__botones { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: 6px; }
.cf-final__botones .btn { flex: 1 1 200px; }
.cf-acceso { margin-top: 0; max-width: none; }
@media (max-width: 640px) {
  .cf-tarjeta { padding: 18px 16px 12px; }
  .cf-final { padding: 20px 18px; }
  .cf-intro { font-size: 17px; }
}

/* Mis citas: conectar un asistente (MCP) */
.mcp { margin-top: 48px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.mis-citas .mcp h2 { margin: 0 0 8px; }
.mcp__intro { color: var(--muted); max-width: 62ch; }
.mcp__garantia { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); font-weight: 500; }
.mcp__garantia .ic { flex: none; margin-top: 3px; font-size: 18px; color: var(--accent); }
.mcp__sub { margin: 24px 0 10px; font-size: 17px; font-weight: 700; }
.mcp-tokens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mcp-token { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.mcp-token__info { flex: 1 1 260px; min-width: 0; }
.mcp-token__pref { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mcp-token__pref .ic { color: var(--accent); }
.mcp-token__pref code, .mcp-dato__valor { font-family: var(--font-mono); }
.mcp-token__meta { margin-top: 2px; font-size: 14px; color: var(--muted); }
.mcp-vacio { padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--muted); }
.mcp__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mcp__lleno { margin-top: 10px; }
.mcp .alerta { margin: 16px 0 0; }
.mcp-nuevo { display: grid; gap: 14px; margin-top: 18px; padding: 18px; border: 1.5px solid var(--accent); border-radius: var(--r-sm); background: var(--bg); }
.mcp-nuevo h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.mcp-nuevo h3 .ic { color: var(--accent); font-size: 22px; }
.mcp-nuevo > .btn { justify-self: start; }
.mcp-nuevo__aviso { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--danger-soft); font-size: 15px; font-weight: 600; }
.mcp-nuevo__aviso .ic { flex: none; margin-top: 2px; font-size: 19px; color: var(--danger); }
.mcp-nuevo__vence { font-size: 14px; }
.mcp-dato__etq { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.mcp-dato__fila { display: flex; align-items: stretch; gap: 8px; }
.mcp-dato__valor {
  flex: 1 1 auto; min-width: 0; display: block; padding: 11px 14px; border: 1.5px solid var(--field); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all;
}
.mcp-copiar { flex: none; min-width: 112px; }
.mcp-copiar__ok { display: none; }
.mcp-copiar.is-copiado { border-color: var(--accent); color: var(--accent); }
.mcp-copiar.is-copiado .mcp-copiar__ok { display: inline-block; }
@media (max-width: 640px) {
  .mcp { padding: 18px; }
  .mcp-dato__fila { flex-direction: column; }
  .mcp-copiar { width: 100%; }
  .mcp-token .btn { flex: 1 1 100%; }
}

/* ===================================================================== Reservar sin codigo (29/09) */
/* Campo trampa: fuera de la vista y del teclado (aria-hidden + tabindex=-1). Nunca display:none: algunos robots lo saltan. */
.trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Enlace privado de la cita en la confirmacion */
.enlace-cita { display: grid; gap: 8px; width: 100%; margin-top: 4px; padding: 16px; border: 1.5px solid var(--accent); border-radius: var(--r-sm); background: var(--bg); }
.enlace-cita__t { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; }
.enlace-cita__t .ic { flex: none; margin-top: 3px; font-size: 19px; color: var(--accent); }
.enlace-cita__ayuda { font-size: 14px; color: var(--muted); }
.enlace-cita__url { font-size: 14px; }
.enlace-cita .mcp-dato__fila { align-items: center; }   /* el boton conserva su alto aunque el enlace ocupe varias lineas */
@media (max-width: 640px) {
  .enlace-cita { padding: 14px; }
  .enlace-cita .mcp-dato__fila { flex-direction: column; align-items: stretch; }
  .enlace-cita .mcp-copiar { width: 100%; }
}

/* ===================================================================== Movimiento */
@media (prefers-reduced-motion: no-preference) {
  .revela { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .revela.oculto { opacity: 0; transform: translateY(16px); }
  .hero__texto > * { animation: sube .75s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .hero__media { animation: fundido .9s ease both .15s; }
  .proxima { animation: sube .7s var(--ease) both .45s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@keyframes sube { from { opacity: 0; transform: translateY(14px); } }
@keyframes baja { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fundido { from { opacity: 0; } }
@keyframes panel-entra { from { transform: translateX(48px); opacity: 0; } }
@keyframes hoja-entra { from { transform: translateY(40px); opacity: 0; } }
@keyframes modal-entra { from { transform: translateY(12px) scale(.98); opacity: 0; } }
@keyframes paso-entra { from { transform: translateX(14px); opacity: 0; } }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes gira { to { transform: rotate(360deg); } }
