/* =========================================================
   ARREL FISIOTERÀPIA · estilos
   Dirección visual aprobada el 4 oct 2026 (propuestas/arrel-fisioterapia.html):
   consulta tranquila y experta. Piedra, arena y salvia con el verde bosque de la marca;
   serif editorial para hablar con calma y monoespaciada para los datos de clínica.
   ========================================================= */

:root {
  --c-bg: #f4f5ef;             /* piedra */
  --c-surface: #fbfbf7;        /* papel */
  --c-surface-2: #e7dfd0;      /* arena */
  --c-ink: #1e2b23;            /* tinta · 13,4:1 sobre piedra */
  --c-muted: #56635a;          /* gris musgo · 5,8:1 sobre piedra, 4,8:1 sobre arena */
  --c-line: #dcdfd4;
  --c-brand: #2f4a3a;          /* bosque (marca) · 8,9:1 */
  --c-brand-ink: #f4f5ef;
  --c-brand-soft: #e3e9dc;
  --c-accent: #a7b596;         /* salvia: solo decorativo */
  --c-sage-deep: #4d6a4e;      /* salvia oscura para texto · 5,5:1 */
  --c-ok: #2e6b46;
  --c-bad: #a33a32;

  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--sand { background: var(--c-surface-2); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 84px); font-weight: 300; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 300; }
h3 { font-size: 24px; }
h1 em, h2 em { font-style: italic; color: var(--c-brand); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--c-muted); max-width: 58ch; margin: 0; }
.mono, .eyebrow { font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.eyebrow { margin: 0 0 18px; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 22px; white-space: nowrap;
  border-radius: 6px; border: 1px solid transparent; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn small { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; opacity: .8; }
.btn--primary { background: var(--c-brand); color: var(--c-brand-ink); }
.btn--primary:hover { background: #24392d; }
.btn--ghost { border-color: rgba(47, 74, 58, .35); background: transparent; color: var(--c-brand); }
.btn--ghost:hover { border-color: var(--c-brand); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--danger { color: var(--c-bad); border-color: rgba(163, 58, 50, .35); background: transparent; }

/* ---------- Franja de modo demo ---------- */
.demo-banner { background: var(--c-ink); color: var(--c-bg); text-align: center; font-size: 13px; padding: 8px var(--gutter); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--c-line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { white-space: nowrap; text-decoration: none; display: flex; align-items: baseline; gap: 8px; color: var(--c-brand); }
.logo b { font-family: var(--f-display); font-size: 30px; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.logo small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--c-muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--c-ink); }
.lang { margin-left: auto; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--c-line); border-radius: 6px; font-family: var(--f-mono); font-size: 12px; }
.lang[hidden] { display: none; }
.lang a { min-width: 38px; min-height: 32px; display: grid; place-items: center; padding: 0 8px; border-radius: 4px; text-decoration: none; color: var(--c-muted); transition: color .2s, background .2s; }
.lang a:hover { color: var(--c-ink); }
.lang a[aria-current] { background: var(--c-brand); color: var(--c-brand-ink); }
@media (max-width: 560px) {
  .header .wrap { gap: 12px; }
  .logo small { display: none; }
  .lang a { min-width: 34px; padding: 0 6px; }
  .header .lang:not([hidden]) ~ .btn { display: none; }
}
@media (min-width: 861px) { .header .lang:has(~ .nav) { order: 2; margin-left: 0; } .header .lang ~ .nav { margin-left: auto; } }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--c-ink); margin: 6px auto; transition: transform .35s var(--ease), opacity .2s; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .35s var(--ease); }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 18px; color: var(--c-ink); }
  .nav .btn { margin-top: 16px; }
  .header.is-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* =========================================================
   PORTADA
   ========================================================= */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); margin-right: 10px; vertical-align: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { font-size: 15px; color: var(--c-muted); margin: 0; }
.trust a { color: var(--c-ink); font-weight: 500; }

/* Foto en arco: el marco se repite en el equipo y en el centro */
.arch { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden;
  background: linear-gradient(172deg, rgba(167, 181, 150, .6), rgba(231, 223, 208, .95) 58%, rgba(47, 74, 58, .22)); }
.arch img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) sepia(.06); }
.arch[data-label]::after { content: attr(data-label); position: absolute; left: 16px; right: 16px; bottom: 16px; font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .05em; color: var(--c-ink); background: rgba(251, 251, 247, .85); padding: 6px 10px; border-radius: 6px; width: fit-content; max-width: calc(100% - 32px); }

/* ---------- ¿Dónde te duele? ---------- */
.finder { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(28px, 6vw, 88px); align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); }
.body-map { position: relative; width: 100%; max-width: 320px; aspect-ratio: 3 / 5; margin: 0 auto; }
.body-map svg { width: 100%; height: 100%; display: block; }
.body-map svg * { fill: none; stroke: var(--c-sage-deep); stroke-width: 1.3; stroke-linecap: round; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.spot i { width: 16px; height: 16px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 7px rgba(167, 181, 150, .32); transition: transform .4s var(--ease), background .3s; }
.spot:hover i { transform: scale(1.15); }
.spot[aria-pressed="true"] i { background: var(--c-brand); transform: scale(1.2); box-shadow: 0 0 0 8px rgba(47, 74, 58, .16); }
.zones { display: grid; gap: 18px; min-width: 0; }
.zone { display: grid; gap: 14px; }
.zone[hidden] { display: none; }
.zone .mono { color: var(--c-brand); }
.zone h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 300; margin: 0; }
.zone p { margin: 0; color: var(--c-muted); max-width: 54ch; }
.zone .meta { font-family: var(--f-mono); font-size: 13px; color: var(--c-ink); }
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.chip { font: 500 15px var(--f-body); color: var(--c-brand); background: transparent; border: 1px solid rgba(47, 74, 58, .3); border-radius: 6px; padding: 8px 14px; cursor: pointer; min-height: 44px; transition: .25s var(--ease); }
.chip:hover { border-color: var(--c-brand); }
.chip[aria-pressed="true"] { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }
.zone-hint { font-size: 14px; color: var(--c-muted); margin: 0; }

/* ---------- Tu primera hora ---------- */
.hour { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.hour ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.hour li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--c-line); align-items: baseline; }
.hour .t { font-family: var(--f-display); font-size: 40px; font-weight: 300; color: var(--c-brand); font-variant-numeric: tabular-nums; line-height: 1; }
.hour .t sup { font-size: 18px; }
.hour h3 { font-family: var(--f-body); font-size: 18px; font-weight: 500; letter-spacing: 0; margin: 0 0 4px; }
.hour p { margin: 0; color: var(--c-muted); }

/* ---------- Tratamientos y precios (carta) ---------- */
.carta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.carta-group h3 { font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
  margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--c-ink); }
.carta-list { display: grid; }
.carta-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; transition: background .3s var(--ease); }
.carta-row:hover .carta-name { color: var(--c-brand); }
.carta-name { font-family: var(--f-display); font-size: 23px; line-height: 1.2; transition: color .2s; }
.carta-price { font-family: var(--f-mono); font-size: 15px; white-space: nowrap; align-self: baseline; }
.carta-desc { grid-column: 1 / -1; color: var(--c-muted); font-size: 15px; }
.carta-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--c-muted); }
.carta-meta b { font-weight: 500; color: var(--c-brand); }
.carta-note { margin-top: 32px; font-size: 15px; color: var(--c-muted); }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.member { display: grid; gap: 6px; align-content: start; }
.member .arch { aspect-ratio: 4 / 5; margin-bottom: 14px; display: grid; place-items: center; }
.member .arch span { font-family: var(--f-display); font-size: 56px; font-weight: 300; color: var(--c-brand); }
.member .arch img + span { display: none; }
.member h3 { margin: 0; font-size: 28px; }
.member p { margin: 0; color: var(--c-muted); }
.member .when { font-family: var(--f-mono); font-size: 12.5px; color: var(--c-ink); letter-spacing: .02em; }
.member .btn { margin-top: 14px; justify-self: start; }

/* ---------- Por qué una hora ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why .story p { font-family: var(--f-display); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.45; font-weight: 300; margin: 0 0 1em; }
.creds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.creds li { padding: 18px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 2px; }
.creds b { font-weight: 500; }
.creds span { color: var(--c-muted); font-size: 15px; }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 48px 24px 0; font-family: var(--f-display); font-size: 23px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--f-body); font-size: 26px; font-weight: 300; color: var(--c-brand); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--c-muted); max-width: 66ch; }

/* ---------- Cómo llegar ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 72px); }
.contact dl { margin: 0; display: grid; gap: 22px; align-content: start; }
.contact dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.contact dd { margin: 4px 0 0; font-size: 18px; }
.contact dd small { display: block; color: var(--c-muted); font-size: 15px; margin-top: 2px; }
.map { position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface-2); display: grid; place-items: center; text-align: center; padding: 24px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { color: var(--c-muted); font-size: 15px; max-width: 34ch; }
.cierre { margin-top: clamp(56px, 8vw, 96px); background: var(--c-brand); color: var(--c-brand-ink); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cierre h2 { margin: 0 0 8px; }
.cierre h2 em { color: var(--c-accent); }
.cierre p { margin: 0; opacity: .85; }
.cierre .btn--primary { background: var(--c-brand-ink); color: var(--c-brand); }
.cierre .btn--primary:hover { background: #fff; }

/* Barra fija de reserva en el móvil */
.barra-reserva { display: none; }
@media (max-width: 760px) {
  .barra-reserva { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--c-bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--c-line); }
  .barra-reserva .btn { flex: 1; }
  .barra-reserva .btn--ghost { flex: 0 0 auto; }
  body.con-barra { padding-bottom: 76px; }
}

/* ---------- Pie ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--c-ink); }

/* ---------- Aparición suave ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .carta, .team { grid-template-columns: 1fr; }
  .team { gap: 48px; }
  .member .arch { max-width: 240px; }
}
@media (max-width: 860px) {
  .hero-grid, .hour, .why, .contact, .finder { grid-template-columns: 1fr; }
  .hero .arch { max-width: 300px; }
  .cierre { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hour li { grid-template-columns: 64px 1fr; gap: 14px; }
  .hour .t { font-size: 32px; }
}

/* =========================================================
   RESERVAS
   ========================================================= */
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; padding: clamp(32px, 5vw, 64px) 0 96px; }
@media (max-width: 960px) {
  .booking { grid-template-columns: 1fr; gap: 16px; }
  .summary { order: -1; position: static; padding: 16px 20px; }
  .summary h3, .summary .note { display: none; }
  .summary dl { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .summary dd { font-size: 14px; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 40px); }
.stepper { display: flex; gap: 8px; margin-bottom: 28px; list-style: none; padding: 0; }
.stepper li { flex: 1; font-size: 13px; color: var(--c-muted); padding-top: 10px; border-top: 2px solid var(--c-line); transition: .3s; }
.stepper li.is-active, .stepper li.is-done { color: var(--c-ink); border-color: var(--c-brand); }
.stepper b { display: block; font-family: var(--f-mono); font-weight: 400; }
@media (max-width: 560px) { .stepper span { display: none; } }
.bstep { display: none; }
.bstep.is-active { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bstep h2 { font-size: clamp(28px, 3.4vw, 38px); }

.opt-list { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface); cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--c-brand); }
.opt[aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-brand-soft); }
.opt-body { flex: 1; }
.opt-body strong { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 400; }
.opt-body small { color: var(--c-muted); font-size: 14px; }
.opt-side { text-align: right; font-family: var(--f-mono); font-size: 13px; white-space: nowrap; color: var(--c-muted); }
.opt-side b { display: block; font-size: 15px; font-weight: 500; color: var(--c-ink); }

.pros { margin-bottom: 28px; }
.pros-label { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
.pros-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pro { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface); cursor: pointer; transition: border-color .2s, background .2s; }
.pro:hover { border-color: var(--c-brand); }
.pro[aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-brand-soft); }
.pro strong { display: block; font-size: 15px; font-weight: 500; }
.pro small { display: block; color: var(--c-muted); font-size: 12px; line-height: 1.3; }
.pro-av { flex: none; width: 40px; height: 40px; border-radius: 999px 999px 8px 8px; object-fit: cover; display: grid; place-items: center;
  background: var(--c-surface-2); font-family: var(--f-display); font-size: 17px; color: var(--c-brand); }
.pro-av--any { background: var(--c-brand-soft); }
@media (max-width: 560px) {
  .pros-list { grid-template-columns: 1fr 1fr; }
  .pro { padding: 8px 10px; gap: 8px; }
  .pro small { display: none; }
  .pro-av { width: 32px; height: 32px; font-size: 14px; }
}

.cal { user-select: none; max-width: 520px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--c-line); background: var(--c-surface); cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-family: var(--f-mono); font-size: 11.5px; text-align: center; color: var(--c-muted); padding: 6px 0; text-transform: uppercase; letter-spacing: .06em; }
.cal-day { height: clamp(42px, 9vw, 52px); border-radius: 8px; border: 1px solid transparent; background: var(--c-brand-soft); cursor: pointer; font-family: var(--f-mono); font-size: 14px; transition: .15s; }
.cal-day:hover:not(:disabled) { border-color: var(--c-brand); }
.cal-day:disabled { background: transparent; color: rgba(86, 99, 90, .55); cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-day.is-empty { visibility: hidden; }
.cal-day.is-today { font-weight: 500; }
.cal-day[aria-pressed="true"] { background: var(--c-brand); color: var(--c-brand-ink); }

.slots-wrap { margin-top: 28px; }
.slots-wrap h3 { font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; margin-bottom: 12px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 6px; border: 1px solid var(--c-line); background: var(--c-surface); cursor: pointer; font-family: var(--f-mono); font-size: 14px; transition: .15s; }
.slot:hover { border-color: var(--c-brand); }
.slot[aria-pressed="true"] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-brand-ink); }
.muted { color: var(--c-muted); }
.skeleton { height: 46px; border-radius: 6px; background: linear-gradient(90deg, var(--c-brand-soft), var(--c-bg), var(--c-brand-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c9cdc0; border-radius: 8px; background: var(--c-surface); font-size: 16px; transition: border-color .2s; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--c-brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.alert { padding: 14px 16px; border-radius: 8px; font-size: 15px; margin-top: 16px; }
.alert--error { background: #f6e6e3; color: var(--c-bad); }
.alert--ok { background: var(--c-brand-soft); color: var(--c-ok); }
.alert[hidden] { display: none; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { font-size: 22px; }
.summary dl { margin: 0; display: grid; gap: 14px; }
.summary dt { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.summary dd { margin: 2px 0 0; font-weight: 500; }
.summary .note { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-muted); }

.done { text-align: center; padding: 24px 0; }
.done h2 { font-size: clamp(32px, 4vw, 44px); }
.done-icon { width: 76px; height: 76px; border-radius: 999px 999px 12px 12px; margin: 0 auto 20px; background: var(--c-brand-soft); display: grid; place-items: center; }
.done-box { margin: 28px auto 20px; max-width: 470px; padding: 22px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); }
.done-box p { margin: 0; }
.done-box .actions { justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.mis-citas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0; padding: 14px 18px;
  border-radius: var(--radius); background: var(--c-brand-soft); font-size: 15px; }
.mis-citas[hidden] { display: none; }
.mis-citas a { font-weight: 500; white-space: nowrap; color: var(--c-brand); }

/* =========================================================
   PANEL ADMIN
   ========================================================= */
.admin { padding: 32px 0 80px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.admin-filters .field input, .admin-filters .field select { height: 42px; min-height: 42px; padding: 6px 12px; }
.admin-filters .field label { font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--f-display); font-size: 32px; font-weight: 400; }
.stat span { font-size: 13px; color: var(--c-muted); }
.day-group { margin-bottom: 28px; }
.day-group h3 { font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin-bottom: 10px; }
.appt { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; }
.appt-time { font-family: var(--f-mono); font-weight: 500; font-size: 16px; }
.appt-time small { display: block; font-weight: 400; color: var(--c-muted); font-size: 12px; }
.appt-info small { color: var(--c-muted); display: block; }
.appt-info a { color: var(--c-muted); }
.appt-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.appt-actions select { min-height: 38px; border-radius: 6px; border: 1px solid var(--c-line); padding: 0 8px; background: var(--c-surface); }
.appt.is-cancelada { opacity: .55; }
.badge { font-family: var(--f-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 4px; background: var(--c-surface-2); white-space: nowrap; }
.badge--confirmada { background: var(--c-brand-soft); color: var(--c-brand); }
.badge--pendiente { background: #f3ead2; color: #7a5600; }
.badge--cancelada { background: #f6e6e3; color: var(--c-bad); }
.badge--completada { background: #e2eee4; color: var(--c-ok); }
@media (max-width: 680px) { .appt { grid-template-columns: 70px 1fr; } .appt-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.login { max-width: 420px; margin: 10vh auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--c-line); }
.tab { background: none; border: 0; padding: 12px 16px; cursor: pointer; font-weight: 500; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--c-ink); border-bottom-color: var(--c-brand); }

.clients { display: grid; gap: 8px; }
.client { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; transition: border-color .2s; }
.client:hover { border-color: var(--c-brand); }
.client small { display: block; color: var(--c-muted); }
.client-stats { display: flex; gap: 14px; font-size: 13px; color: var(--c-muted); text-align: right; flex-wrap: wrap; justify-content: flex-end; }
.client-stats b { display: block; font-size: 16px; color: var(--c-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: var(--c-brand-soft); color: var(--c-brand); }
.flag { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 4px; background: #f6e6e3; color: var(--c-bad); margin-left: 6px; }
.flag--new { background: #f3ead2; color: #7a5600; }
.flag--ok { background: var(--c-brand-soft); color: var(--c-brand); }
.appt-info .linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 3px; }
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(30, 43, 35, .35); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--c-bg); overflow-y: auto; padding: 28px clamp(16px, 4vw, 32px) 40px;
  box-shadow: -12px 0 40px rgba(30, 43, 35, .12); animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-x { position: absolute; top: 16px; right: 16px; }
.ficha-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-right: 40px; }
.ficha-head .pro-av { width: 56px; height: 56px; font-size: 22px; }
.ficha-head h2 { font-size: 28px; margin: 0; }
.ficha-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ficha-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.ficha-stats .stat { padding: 12px; }
.ficha-stats .stat b { font-size: 24px; }
@media (max-width: 480px) { .ficha-stats { grid-template-columns: repeat(2, 1fr); } }
.ficha h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: 24px 0 10px; }
.hist { display: grid; gap: 6px; }
.hist-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.hist-row small { display: block; color: var(--c-muted); }
@media (max-width: 680px) { .client { grid-template-columns: 40px 1fr; } .client-stats { grid-column: 1 / -1; justify-content: flex-start; text-align: left; } }

/* =========================================================
   PÁGINAS DE TEXTO (legales, gestionar cita)
   ========================================================= */
.prose { max-width: 760px; padding: clamp(40px, 6vw, 80px) 0 96px; }
.prose h1 { font-size: clamp(38px, 5vw, 56px); }
.prose h2 { font-size: 26px; font-weight: 400; margin-top: 2em; }
.prose p, .prose li { color: #34423a; }
.prose .todo { background: #f3ead2; padding: 0 4px; border-radius: 4px; }

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