/* Advise · páginas de producto (advise.ec/<producto>/) — base compartida
   Sale de css/site.css (el sitio de Advise, ya probado): fuentes, colores, botones, encabezado, preguntas, la demo,
   el agendador, la hoja inferior, el menú, el pie y la barra móvil. Lo propio de cada producto va en su carpeta
   (p. ej. rialtor/rialtor.css). Si cambia algo del agendador en site.css, cambiarlo aquí también. */
@font-face {
  font-family: Figtree;
  src: url("../assets/fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  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;
}
/* Respaldo con métricas cercanas para que el cambio de fuente no mueva el texto */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 97%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --navy: #02162F; --accent: #0E80C4; --celeste: #4BA9E8; --profundo: #002E4E; --hueso: #F2F0E9; --gris: #6B7A8A; --blanco: #fff;
  --noche: #010D1C;
  --ink: #02162F; --ink-2: #3D4B5C; --ink-3: #56626F;
  --on-d: #fff; --on-d-2: rgba(255,255,255,.72); --on-d-3: rgba(255,255,255,.58);
  --hair: rgba(2,22,47,.12); --hair-d: rgba(255,255,255,.14);
  --accent-ink: #0A6DA8;
  --hdr: 56px; --bar: 0px;
  /* En un iPhone acostado, el margen nunca queda dentro de la zona del notch o de la isla dinámica */
  --gut: max(clamp(20px, 4.6vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --maxw: 1440px;
  --ease: cubic-bezier(.2,.75,.12,1);
  --ease-io: cubic-bezier(.62,0,.22,1);
  --radius: 12px;
  --font: Figtree, "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: only light;
}
@media (max-width: 860px) { :root { --hdr: 52px; --bar: calc(68px + env(safe-area-inset-bottom)); } html { scroll-padding-bottom: 170px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--navy); color: var(--ink);
  font: 400 17px/1.5 var(--font); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--bar);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; fill: currentColor; }
.mono { font-family: inherit; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.005em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
html:not(.js) .js-only, .safe .js-only { display: none; }
/* Sobre fondos claros el anillo celeste no llega a 3:1: allí va en azul profundo */
:is(.exec, .cli, .base, .met, .trust, .faq, .sheet, .mbar) :focus-visible { outline-color: var(--accent-ink); }
/* iOS no convierte números de factura o RUC en enlaces de llamada */
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; pointer-events: none; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--navy); padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }

/* Tipografía de capítulos */
.h1x { font-size: clamp(44px, 6.4vw, 112px); line-height: .96; letter-spacing: -.036em; }
.h2 { font-size: clamp(38px, 4.8vw, 76px); line-height: 1; letter-spacing: -.042em; }
.h3x { font-size: clamp(27px, 2.7vw, 42px); line-height: 1.06; letter-spacing: -.032em; }
@media (max-width: 359px) { .h1x { font-size: 40px; } .exec .exec-h { font-size: 11.6vw; } }

/* Botones: acento con texto blanco de 19 px en negrita (texto grande: AA sobre #0E80C4) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; font: 700 19px/1 var(--font); letter-spacing: -.012em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, transform .25s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 58px; padding: 0 30px; }
.btn-block { width: 100%; }
.lnk { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.lnk .ico { transition: transform .35s var(--ease); }
@media (hover: hover) {
  .btn:hover { background: #0B72AF; }
  .lnk:hover .ico { transform: translateY(3px); }
}

/* Encabezado: siempre navy (el logo blanco nunca pisa el acento) ------------------------------ */
.hdr { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hdr); background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 30px; width: min(100% - 2 * var(--gut), 1440px); margin-inline: auto; }
.hdr-logo { display: flex; align-items: center; min-height: 44px; min-width: 44px; }
.hdr-logo img { height: 20px; width: auto; }
.hdr-nav { display: flex; gap: 28px; margin-left: auto; }
.hdr-nav a { color: rgba(255,255,255,.76); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -.005em; padding: 12px 0; transition: color .2s; }
.hdr-nav a[aria-current] { color: #fff; }
/* La acción del encabezado es discreta (los CTA de la página mandan). A 15 px el texto no es "grande":
   el fondo va en el azul profundo de la marca para que el blanco pase AA (5,6:1) */
.btn-hdr { min-height: 34px; padding: 0 14px; border-radius: var(--radius); font-size: 15px; font-weight: 600; letter-spacing: -.005em; background: var(--accent-ink); }
@media (hover: hover) { .btn-hdr:hover { background: #095F93; } }
.hdr-menu { display: none; }
html:not(.js) .hdr-menu { display: none !important; } /* sin JS el menú no abre: no se muestra */
@media (hover: hover) { .hdr-nav a:hover { color: #fff; } }
@media (max-width: 1080px) and (min-width: 861px) { .hdr-nav { gap: 20px; } .hdr-nav a { font-size: 14px; } }
@media (max-width: 860px) {
  .hdr-in { gap: 12px; }
  .hdr-logo img { height: 19px; }
  .hdr-nav, .btn-hdr { display: none; }
  .hdr-menu { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 44px; min-width: 64px; padding: 0 2px 0 14px; background: none; border: 0; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
}


/* ════════ Preguntas ══════════════════════════════════════════════════════════════════════ */
.faq { background: #fff; color: var(--ink); padding: clamp(88px, 13vh, 150px) 0 calc(clamp(88px, 13vh, 150px) + 28px); }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 6vw; align-items: start; }
.faq-list { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 26px 56px 26px 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--navy); transition: transform .4s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq-a { padding: 0 56px 28px 0; }
.faq-a p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .faq { interpolate-size: allow-keywords; } }
@media (hover: hover) { .faq summary:hover { color: var(--accent-ink); } }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; } .faq-a { padding-right: 0; } .faq summary { padding-right: 44px; } }

/* ════════ La demo ════════════════════════════════════════════════════════════════════════ */
.demo { position: relative; z-index: 2; margin-top: -28px; border-radius: 28px 28px 0 0; background: var(--navy); color: #fff; padding: clamp(88px, 13vh, 150px) 0 clamp(88px, 13vh, 140px); overflow: clip; /* clip, no hidden: el pie fijo del agendador necesita que la página sea la que se desplaza */ isolation: isolate; }

.demo-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 6vw; align-items: end; }
.demo-head .h1x { max-width: 9ch; }
.three { counter-reset: t; }
.three li { counter-increment: t; display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--hair-d); font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.three li::before { content: counter(t); font-size: 15px; font-weight: 700; color: var(--celeste); font-variant-numeric: tabular-nums; min-width: 1ch; }
.demo-p { grid-column: 1 / -1; font-size: 17px; line-height: 1.5; color: var(--on-d-2); max-width: 34em; }
.nojs { margin-top: 40px; }
.nojs-t { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.js .nojs { display: none; }
.safe .nojs { display: block; }
.safe .agenda-mount { display: none; }
.safe .hdr-menu { display: none !important; }
.agenda-mount:empty { display: none; }
@media (max-width: 860px) {
  .demo-head { grid-template-columns: 1fr; }
}

/* ════════ Agendador ══════════════════════════════════════════════════════════════════════ */
.ag fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ag legend { padding: 0; font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.ag legend small { font-weight: 600; font-size: 14px; margin-left: 4px; }
.ag-opt { position: relative; display: block; cursor: pointer; }
.ag-opt input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.ag-face { display: flex; flex-direction: column; transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.ag-opt:active .ag-face { transform: scale(.97); }
.ag-grp { margin-top: 14px; }
.ag-grp-t { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ag-tz { margin-top: 12px; font-size: 14px; }
.ag-foot { margin-top: 26px; display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.ag-sum { flex: 1 1 320px; min-width: 0; }
.ag-sum-l { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.ag-sum-t { margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: -.018em; line-height: 1.3; }
.ag-sum-x { margin-top: 3px; font-size: 15px; }
.ag-cta { flex: none; }
.ag-cta[aria-disabled="true"] { cursor: not-allowed; }
.ag-cta[aria-disabled="true"]:active { transform: none; }
.ag-state { margin-top: 14px; min-height: 0; }
.ag-state:empty { display: none; }
.ag-ok { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; }
.ag-ok .ico { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--accent); color: #fff; }
.ag-ok b { display: block; font-size: 18px; letter-spacing: -.015em; }
.ag-ok span { display: block; font-size: 14px; margin-top: 2px; }
.ag-empty { font-size: 16px; }

/* Versión grande (final de la página, sobre navy) */
.ag-grand { color: #fff; }
.ag-grand legend small, .ag-grand .ag-grp-t, .ag-grand .ag-tz, .ag-grand .ag-sum-l, .ag-grand .ag-sum-x, .ag-grand .ag-ok span { color: var(--on-d-2); }
.ag-grand .ag-days { margin-top: 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.ag-grand .ag-day { padding: 18px 20px 16px; min-height: 164px; justify-content: space-between; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.ag-grand .ag-day .d1 { font-size: 15px; font-weight: 700; }
.ag-grand .ag-day .d2 { font-size: clamp(56px, 6vw, 96px); font-weight: 700; letter-spacing: -.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.ag-grand .ag-day .d3 { font-size: 14px; font-weight: 600; color: var(--on-d-3); }
.ag-grand .ag-hours { margin-top: 34px; }
.ag-grand .ag-times { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; } /* la tarde se alinea bajo la mañana */
@media (min-width: 861px) and (max-width: 1100px) { .ag-grand .ag-times { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-grand .ag-time { align-items: center; justify-content: center; min-height: 64px; padding: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ag-grand .ag-time small { margin-top: 3px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--on-d-2); text-align: center; line-height: 1.2; }
/* Elegido: anillo blanco de 2 px (el botón "Agendar demo" sigue siendo lo más brillante) */
.ag-grand .ag-opt input:checked + .ag-face { background: rgba(255,255,255,.06); color: #fff; border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.ag-grand .ag-opt input:checked + .ag-face .d3, .ag-grand .ag-opt input:checked + .ag-face small { color: var(--on-d-2); }
.ag-grand .ag-opt input:focus-visible + .ag-face { outline: 2px solid var(--celeste); outline-offset: -2px; }
.ag-grand .ag-opt input:checked:focus-visible + .ag-face { outline-color: var(--celeste); outline-offset: 3px; }
.ag-grand .ag-foot { padding-top: 24px; border-top: 1px solid var(--hair-d); }
.ag-grand .ag-sum-t.muted { color: var(--on-d-3); font-weight: 600; }
.ag-grand .ag-cta { min-height: 60px; padding: 0 34px; }
.ag-grand .ag-cta[aria-disabled="true"] { background: transparent; color: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.ag-grand .ag-ok { background: rgba(255,255,255,.08); }
@media (hover: hover) {
  .ag-grand .ag-opt:hover input:not(:checked) + .ag-face { background: rgba(255,255,255,.07); }
}
@media (max-width: 860px) {
  .ag-grand .ag-days { gap: 6px; }
  .ag-grand .ag-day { padding: 12px 4px 10px; min-height: 104px; align-items: center; text-align: center; }
  .ag-grand .ag-day .d1 { font-size: 13px; }
  .ag-grand .ag-day .d2 { font-size: clamp(34px, 10vw, 46px); }
  .ag-grand .ag-day .d3 { font-size: 12px; }
  .ag-grand .ag-times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ag-grand .ag-time { min-height: 52px; font-size: 19px; }
  .ag-grand .ag-cta { width: 100%; }
  .ag-sum { flex-basis: 100%; }
  /* Día, hora y botón a la vista a la vez: el resumen y "Agendar demo" quedan fijos abajo, como en la hoja */
  .ag-grand .ag-foot { position: sticky; bottom: 0; z-index: 2; margin: 22px calc(-1 * var(--gut)) 0; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); gap: 10px; background: var(--navy); border-top: 1px solid var(--hair-d); }
  .ag-grand .ag-sum-t { font-size: 16px; }
  .ag-grand .ag-cta { min-height: 54px; }
}
/* 320 px: siguen 4 columnas (2 + 2 filas, sin una hora huérfana), con la letra un poco menor */
@media (max-width: 359px) {
  .ag-grand .ag-time { padding: 8px 2px; font-size: 17px; }
  .ag-grand .ag-time small { font-size: 12px; }
}

/* Versión compacta (hoja del botón "Agendar demo") */
.ag-compact { color: var(--ink); }
.ag-compact legend small, .ag-compact .ag-grp-t, .ag-compact .ag-tz, .ag-compact .ag-sum-l, .ag-compact .ag-sum-x, .ag-compact .ag-ok span { color: var(--ink-3); }
.ag-compact .ag-days { margin-top: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.ag-compact .ag-day { align-items: center; justify-content: center; gap: 1px; min-height: 80px; border-radius: 14px; background: var(--hueso); color: var(--navy); }
.ag-compact .ag-day .d1 { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.ag-compact .ag-day .d2 { font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ag-compact .ag-day .d3 { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ag-compact .ag-hours { margin-top: 24px; }
.ag-compact .ag-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ag-compact .ag-time { align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; background: #F2F4F6; color: var(--navy); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-compact .ag-time small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-top: 1px; text-align: center; line-height: 1.2; }
.ag-compact.dual .ag-time { min-height: 58px; }
.ag-compact .ag-opt input:checked + .ag-face { background: var(--navy); color: #fff; }
.ag-compact .ag-opt input:checked + .ag-face .d1, .ag-compact .ag-opt input:checked + .ag-face .d3, .ag-compact .ag-opt input:checked + .ag-face small { color: rgba(255,255,255,.8); }
.ag-compact .ag-opt input:focus-visible + .ag-face { outline: 2px solid var(--accent); outline-offset: 2px; }
.ag-compact .ag-foot { margin-top: 20px; flex-direction: column; align-items: stretch; gap: 12px; }
.ag-compact .ag-sum { flex: none; padding: 14px 16px; border-radius: 14px; background: #F2F4F6; min-height: 74px; display: flex; flex-direction: column; justify-content: center; }
.ag-compact .ag-sum-t { font-size: 17px; color: var(--navy); }
.ag-compact .ag-sum-t.muted { color: var(--ink-3); font-weight: 600; }
.ag-compact .ag-sum-x { color: var(--ink-2); font-size: 14px; }
.ag-compact .ag-cta { width: 100%; min-height: 56px; }
.ag-compact .ag-cta[aria-disabled="true"] { background: #D8DEE5; color: #4A5664; }
.ag-compact .ag-ok { background: #EAF4FB; color: var(--navy); }
/* En la hoja, el resumen y el botón quedan fijos abajo: nunca hay que adivinar que la hoja se desplaza */
.sheet .ag-compact .ag-foot { position: sticky; bottom: 0; z-index: 2; margin: 20px -30px 0; padding: 14px 30px 20px; background: #fff; box-shadow: 0 -1px 0 rgba(2,22,47,.09); }
.sheet .ag-compact .ag-state { margin: 4px 0 24px; }
@media (hover: hover) {
  .ag-compact .ag-opt:hover input:not(:checked) + .ag-day { background: #E8E5DB; }
  .ag-compact .ag-opt:hover input:not(:checked) + .ag-time { background: #E7EBEF; }
}
@media (max-width: 400px) {
  .ag-compact .ag-day { min-height: 74px; }
  .ag-compact .ag-day .d2 { font-size: 25px; }
  .ag-compact .ag-time { font-size: 16px; }
}
@media (max-width: 359px) { .ag-compact .ag-time { font-size: 15px; padding-inline: 2px; } .ag-compact .ag-time small { font-size: 11px; } }

/* ════════ Pie ════════════════════════════════════════════════════════════════════════════ */
.ftr { background: var(--navy); color: #fff; padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); position: relative; z-index: 2; }
.ftr-in { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.ftr-logo { width: 170px; }
.ftr-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 26px; }
.ftr-nav a { color: rgba(255,255,255,.74); text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 0; }
@media (hover: hover) { .ftr-nav a:hover { color: #fff; } }
.ftr-c { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: rgba(255,255,255,.62); }
@media (max-width: 700px) { .ftr-in { grid-template-columns: 1fr; } .ftr-nav { justify-content: flex-start; gap: 0 22px; } }

/* ════════ Barra inferior (móvil) ═════════════════════════════════════════════════════════ */
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: var(--bar); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); /* el botón se alinea con el margen de todo lo demás */ background: #fff; border-top: 1px solid rgba(2,22,47,.1); color: var(--ink);
    transition: transform .4s var(--ease), visibility 0s linear 0s; }
  .mbar-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .mbar-t b { font-size: 16px; letter-spacing: -.012em; }
  .mbar-t span { font-size: 14px; color: var(--ink-3); font-weight: 600; }
  .mbar .btn { min-height: 48px; padding: 0 20px; }
  .js .mbar.off { transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ease-io), visibility 0s linear .35s; }
}
@media (max-width: 359px) { .mbar-t b { font-size: 15px; line-height: 1.2; } .mbar-t span { display: none; } .mbar .btn { padding: 0 16px; } }

/* ════════ Hoja del agendador y menú ══════════════════════════════════════════════════════ */
dialog { padding: 0; border: 0; color: var(--ink); }
.sheet { width: min(620px, calc(100% - 48px)); max-width: none; max-height: calc(100svh - 48px); border-radius: 24px; background: #fff; overflow: auto; overscroll-behavior: contain; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); }
.sheet::backdrop { background: rgba(1, 13, 28, .62); }
.sheet[open] { animation: sheetIn .5s var(--ease) both; }
.sheet[open]::backdrop { animation: fade .4s ease both; }
.sheet.closing { animation: sheetOut .26s ease both; }
.sheet.closing::backdrop { animation: fade .26s ease reverse both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-in { padding: 28px 30px 0; }
.sheet-grab { display: none; }
.sheet-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sheet-t { font-size: 30px; line-height: 1.08; letter-spacing: -.035em; }
.sheet-s { margin-top: 6px; font-size: 15px; color: var(--ink-3); font-weight: 600; }
.sheet-s span + span::before { content: "· "; }
@media (max-width: 700px) { .sheet-s span { display: block; } .sheet-s span + span::before { content: none; } }
.sheet-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: #F1F3F5; color: var(--navy); cursor: pointer; }
.sheet-x .ico { width: 16px; height: 16px; }
@media (hover: hover) { .sheet-x:hover { background: #E5E9ED; } }
@media (max-width: 700px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92svh; border-radius: 22px 22px 0 0; box-shadow: none; }
  .sheet[open] { animation: sheetUp .5s var(--ease) both; }
  .sheet.closing { animation: sheetDown .3s var(--ease-io) both; }
  .sheet-in { padding: 0 18px; }
  .sheet-grab { display: block; position: relative; width: 38px; height: 5px; border-radius: 3px; background: #D0D6DD; margin: 10px auto 14px; touch-action: none; cursor: grab; }
  .sheet-grab::before { content: ""; position: absolute; inset: -12px -60px -10px; }
  .sheet-hd { touch-action: none; }
  .sheet .ag-compact .ag-foot { margin-inline: -18px; padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .sheet .ag-compact .ag-sum { min-height: 0; padding: 0; background: none; border-radius: 0; }
  .sheet .ag-compact .ag-sum-t { font-size: 15.5px; line-height: 1.3; }
  .sheet .ag-compact .ag-sum-l { font-size: 12px; }
  .sheet .ag-compact .ag-cta { min-height: 52px; }
  .sheet .ag-compact .ag-state { margin-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .sheet-t { font-size: 25px; }
  .sheet-s { font-size: 14px; }
  .sheet-hd { margin-bottom: 16px; }
}
/* Ventanas bajas (teléfono acostado): pie compacto en una fila; los días y la primera fila de horas a la vista */
@media (max-height: 500px) {
  .sheet { max-height: calc(100svh - 16px); }
  .sheet-in { padding-top: 16px; }
  .sheet-grab { margin: 6px auto 8px; }
  .sheet-hd { margin-bottom: 10px; }
  .sheet-t { font-size: 22px; }
  .sheet-s { display: none; }
  .sheet .ag-compact .ag-days { margin-top: 8px; }
  .sheet .ag-compact .ag-day { min-height: 62px; }
  .sheet .ag-compact .ag-hours { margin-top: 14px; }
  .sheet .ag-compact .ag-foot { flex-direction: row; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); margin-top: 12px; }
  .sheet .ag-compact .ag-sum { flex: 1; min-width: 0; min-height: 0; padding: 0; background: none; }
  .sheet .ag-compact .ag-sum-l { display: none; }
  .sheet .ag-compact .ag-sum-t { font-size: 15px; }
  .sheet .ag-compact .ag-cta { width: auto; min-height: 48px; padding: 0 24px; }
}
.sheet.drag { animation: none; }
.sheet.drag.closing { animation: sheetDown .28s var(--ease-io) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
.menu { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; background: var(--navy); color: #fff; }
.menu::backdrop { background: var(--navy); }
.menu[open] { animation: fade .28s ease both; }
.menu.closing { animation: fade .2s ease reverse both; }
.menu-in { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gut) calc(28px + env(safe-area-inset-bottom)); }
.menu-hd { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; }
.menu-hd img { height: 19px; width: auto; }
.sheet-x-d { background: rgba(255,255,255,.1); color: #fff; margin: 0 -6px 0 0; }
.menu-nav { display: flex; flex-direction: column; margin: 24px 0 auto; }
.menu-nav a { display: flex; align-items: center; min-height: 58px; font-size: 32px; font-weight: 700; letter-spacing: -.035em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.menu .btn { margin-top: 32px; }
html.locked, html.locked body { overflow: hidden; }

#agenda-inline, .agenda-inline { margin-top: clamp(48px, 8vh, 88px); }

/* ════════ Revelados (solo con JS y movimiento; si el JS no arranca, todo visible) ════════ */
.js.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.js.motion .rv.in { opacity: 1; transform: none; }
.safe .rv { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn, .ag-face { transition: none; }
}
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { padding: 0; }
  .hdr, .mbar, .skip, dialog, .agenda-mount { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; animation: none !important; }
  .nojs { display: block !important; }
  .demo, .faq { margin-top: 0; border-radius: 0; }
  .faq details::details-content { block-size: auto !important; content-visibility: visible !important; }
}

/* <reserva> — bloque copiado de _tools/reserva/bloque-reserva.css: no editar aquí */
/* ─── Reserva: datos y confirmación (11-nov-2026) ─────────────────────────────────────────────────
   MISMO bloque en css/site.css y css/producto.css: se edita en _tools/reserva/bloque-reserva.css y se pega con
   `python3 _tools/reserva/pegar.py`. Dos pasos más dentro de cada agenda (.ag): los datos y la confirmación. */
.ag.paso-datos > .ag-days-f, .ag.paso-datos > .ag-hours, .ag.paso-datos > .ag-tz, .ag.paso-datos > .ag-foot, .ag.paso-datos > .ag-state,
.ag.paso-listo > .ag-days-f, .ag.paso-listo > .ag-hours, .ag.paso-listo > .ag-tz, .ag.paso-listo > .ag-foot, .ag.paso-listo > .ag-state { display: none; }
.ag-datos[hidden], .ag-listo[hidden] { display: none; }
.ag-datos { position: relative; }
.ag-elegida { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; border-radius: 14px; }
.ag-elegida-in { min-width: 0; }
.ag-elegida-t { margin-top: 2px; font-size: 17px; font-weight: 700; letter-spacing: -.012em; line-height: 1.3; }
.ag-elegida-x { margin-top: 2px; font-size: 14px; }
.ag-cambiar { flex: none; appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.ag-datos-t { margin-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: -.018em; line-height: 1.25; outline: none; }
.ag-campos { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ag-campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.ag-campo input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid #C9D2DC; background: #fff; color: var(--navy); font: 500 16px/1.3 var(--font); }
.ag-campo input::placeholder { color: #8A96A3; }
.ag-campo input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.ag-campo input[aria-invalid="true"] { border-color: #B42318; box-shadow: inset 0 0 0 1px #B42318; }
.ag-trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ag-permiso { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer; }
.ag-permiso input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.ag-permiso input[aria-invalid="true"] { outline: 2px solid #B42318; outline-offset: 2px; }
.ag-permiso a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ag-error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: 14px; font-weight: 600; line-height: 1.45; }
.ag-error a { color: inherit; font-weight: 700; text-decoration: underline; }
.ag-confirmar { margin-top: 18px; width: 100%; min-height: 56px; }
.ag-confirmar:disabled { opacity: .72; cursor: progress; }
.ag-nota { margin-top: 10px; font-size: 13px; text-align: center; }

.ag-listo-in { display: flex; flex-direction: column; align-items: flex-start; }
.ag-listo-ico { width: 56px; height: 56px; flex: none; }
.ag-listo-ico circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ag-trazo .6s var(--ease) forwards; }
.ag-listo-ico path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: ag-trazo .36s .42s var(--ease) forwards; }
@keyframes ag-trazo { to { stroke-dashoffset: 0; } }
.ag-listo-t { margin-top: 14px; font-size: clamp(25px, 3vw, 34px); font-weight: 700; letter-spacing: -.026em; line-height: 1.12; outline: none; }
.ag-listo-s { margin-top: 6px; font-size: 17px; line-height: 1.45; }
.ag-listo-cita { margin-top: 18px; width: 100%; padding: 18px 20px; border-radius: 16px; }
.ag-listo-cita .k { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ag-listo-cita .f { margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.ag-listo-cita .h { margin-top: 3px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-listo-cita .x { margin-top: 2px; font-size: 14px; }
.ag-listo-cita .x[hidden] { display: none; }
.ag-listo-correo { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.ag-listo-correo b { overflow-wrap: anywhere; }
.ag-listo-acc { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ag-listo-ics { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ag-pasos { list-style: none; margin: 22px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ag-pasos li { padding: 14px 14px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.35; }
.ag-pasos li::before { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); margin-bottom: 10px; }
.ag-pasos li.hecho::before { background: var(--accent); }
.ag-pasos b { display: block; font-size: 14px; letter-spacing: -.005em; }
.ag-pasos span { display: block; margin-top: 2px; }
.ag-listo-nota { margin-top: 14px; font-size: 13px; }
@media (max-width: 700px) {
  .ag-campos { grid-template-columns: minmax(0, 1fr); }
  .ag-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-listo-acc .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ag-listo-ico circle, .ag-listo-ico path { animation: none; stroke-dashoffset: 0; } }

/* Versión grande (fondo navy) */
.ag-grand .ag-elegida { background: rgba(255,255,255,.08); }
.ag-grand .ag-sum-l, .ag-grand .ag-elegida-x, .ag-grand .ag-nota, .ag-grand .ag-listo-nota, .ag-grand .ag-listo-cita .x,
.ag-grand .ag-pasos span, .ag-grand .ag-listo-correo, .ag-grand .ag-listo-s, .ag-grand .ag-campo, .ag-grand .ag-permiso { color: var(--on-d-2); }
.ag-grand .ag-listo-correo b, .ag-grand .ag-pasos b { color: #fff; }
.ag-grand .ag-cambiar, .ag-grand .ag-listo-ics { color: #fff; }
.ag-grand .ag-campo input { border-color: transparent; }
.ag-grand .ag-campo input:focus { outline-color: var(--celeste); border-color: transparent; }
.ag-grand .ag-listo-cita, .ag-grand .ag-pasos li { background: rgba(255,255,255,.07); }
.ag-grand .ag-listo-cita .k { color: var(--celeste); }
.ag-grand .ag-listo-ico circle, .ag-grand .ag-listo-ico path { stroke: var(--celeste); }
.ag-grand .ag-pasos li::before { border-color: var(--celeste); }
.ag-grand .ag-pasos li.hecho::before { background: var(--celeste); }
.ag-grand .ag-datos, .ag-grand .ag-listo { max-width: 760px; }

/* Versión compacta (hoja blanca) */
.ag-compact .ag-elegida { background: #F2F4F6; }
.ag-compact .ag-elegida-t, .ag-compact .ag-datos-t, .ag-compact .ag-listo-t { color: var(--navy); }
.ag-compact .ag-elegida-x, .ag-compact .ag-nota, .ag-compact .ag-listo-nota, .ag-compact .ag-listo-cita .x, .ag-compact .ag-pasos span { color: var(--ink-3); }
.ag-compact .ag-listo-s, .ag-compact .ag-listo-correo, .ag-compact .ag-permiso { color: var(--ink-2); }
.ag-compact .ag-cambiar, .ag-compact .ag-listo-ics { color: var(--accent-ink); }
.ag-compact .ag-campo { color: var(--ink-2); }
.ag-compact .ag-listo-cita { background: #EAF4FB; color: var(--navy); }
.ag-compact .ag-listo-cita .k { color: var(--accent-ink); }
.ag-compact .ag-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ag-compact .ag-pasos li { background: #F2F4F6; color: var(--navy); }
.ag-compact .ag-campos { grid-template-columns: minmax(0, 1fr); }
.sheet .ag-compact .ag-datos, .sheet .ag-compact .ag-listo { padding-bottom: 24px; }
/* </reserva> */
