:root {
  /* Paleta de la propuesta aprobada: crema, bosque, salvia, arena y dorado. Tema único claro. */
  --ink: #213a36; --ink-soft: #52665d; --muted: #697b72;
  --bg: #f9f7f1; --bg-alt: #eee8dc; --surface: #ffffff; --line: #dcded6; --line-strong: #c9d0c6;
  --brand: #294e43; --brand-hover: #1f4037; --brand-ink: #ffffff; --brand-soft: #e8eee6; --brand-bright: #294e43;
  --forest2: #17382f; --sage: #e8eee6; --sand: #eee8dc; --cream: #f9f7f1; --gold: #c59772; --gold-ink: #9b6f4f; --clay: #b28360;
  --green: #4d7a62; --green-soft: #e8eee6;
  --accent: #c59772; --accent-ink: #8f6446; --on-accent: #ffffff;
  --ok: #2f6b4a; --ok-bg: #e3eee5; --ok-ink: #24543a;
  --warn: #8a5a00; --warn-bg: #f6ecd6;
  --err: #a8432f; --err-bg: #f6e3dd; --err-ink: #7a2e20;
  --info-bg: #e6ece6; --info-ink: #294e43;
  --band-bg: #17382f; --band-ink: #c5d1c9; --band-btn-bg: #faf8f1; --band-btn-ink: #17382f;
  --footer-bg: #f0f0e9; --footer-ink: #617369; --on-dark: #ffffff;
  --focus-ring: rgba(178, 118, 74, .25); --taken: #b3b8ad; --wa: #2f6b4a; --wa-hover: #24543a;
  --admin-bg: #f3f1ea; --neutral-pill-bg: #e9e7df; --neutral-pill-ink: #5b6a62;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(39, 60, 52, .05), 0 12px 32px rgba(39, 60, 52, .08);
  --shadow-lg: 0 12px 45px rgba(39, 60, 52, .19);
  --display: Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color-scheme: light;
}

/* Sans propia, autoalojada (Figtree, licencia SIL OFL). Variable 300–900; el serif editorial sigue siendo Georgia. */
@font-face {
  font-family: 'Figtree';
  src: url('/static/fonts/figtree-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, .h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 1.4em; }
h3, .h3 { font-size: 1.2rem; }
section > .wrap > h2:first-child, .booking-step > h2:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--accent-ink); margin-bottom: .5em; }
.note { background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .35em; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: var(--err); color: var(--surface); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-block { width: 100%; margin-top: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: var(--err); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.actions.center { justify-content: center; }
.cta-band .actions { justify-content: center; }

/* Cabecera */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.monogram { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 .95rem var(--display); flex: none; }
.monogram-xl { width: 72px; height: 72px; font-size: 1.6rem; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 1120px) {
  /* Sin JS el menú está visible y no hay botón muerto: sólo con la clase que pone el propio
     guion al inicializarse se colapsa y aparece el botón. */
  .menu-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 0; background: none; border: 0; }
  .menu-ready .menu-toggle { display: inline-block; }
  .menu-ready .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .menu-ready .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 10px; }
  .site-nav .btn { margin-top: 8px; }
}

/* La ilustración es decoración con texto alternativo; el CTA vive fuera del role="img". */
.stage-art { position: absolute; inset: 0; }

/* Hero */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.hero-card { background: var(--band-bg); color: var(--band-ink); border-radius: 22px; padding: 28px 24px; box-shadow: var(--shadow); }

.hero-card p { margin: 0; font-family: var(--display); font-size: 1.1rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-soft); font-size: .95rem; }
.hero-facts li::before { content: '✓ '; color: var(--ok); font-weight: 700; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 40px; } }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.card h2, .card h3 { margin-top: 0; }
.card p { color: var(--ink-soft); }
.card-link { color: var(--brand); font-weight: 600; font-size: .95rem; }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price { font: 600 2rem/1.1 var(--display); margin: 0 0 4px; color: var(--brand); }
.chips { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col.wide-left { grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 860px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; gap: 24px; } }
.education-short li, .timeline li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); }
.education-short span, .timeline span { color: var(--muted); font-size: .92rem; }
.timeline { list-style: none; padding: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.booking-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.facts { margin: 0 0 1em; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.facts.big > div { flex-direction: column; gap: 2px; }
.facts.big dd { text-align: left; }
.cta-band { background: var(--band-bg); color: var(--band-ink); }
.cta-band h2 { color: var(--on-dark); }
.cta-band .btn-primary { background: var(--band-btn-bg); color: var(--band-btn-ink); }
.cta-band .btn-ghost { color: var(--on-dark); border-color: var(--band-btn-bg); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.cta-inline { margin-top: 2em; padding: 20px; background: var(--brand-soft); border-radius: var(--radius); }

/* Opiniones */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 1em; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.review blockquote { margin: 8px 0; }
.review figcaption { color: var(--muted); font-size: .88rem; }
.stars { color: var(--accent); letter-spacing: 2px; }
.badge { display: inline-block; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 600; }
.reply { background: var(--bg-alt); border-radius: 10px; padding: 10px; font-size: .92rem; margin-top: 10px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-soft); }

/* Formularios */
.form { display: grid; gap: 14px; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.grid-form .full, .grid-form > h2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid-form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--focus-ring); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--brand); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--err); }
.error-text { color: var(--err); font-size: .88rem; }
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.alert.success { background: var(--ok-bg); color: var(--ok-ink); }
.alert.error { background: var(--err-bg); color: var(--err-ink); }
.alert.info { background: var(--info-bg); color: var(--info-ink); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 140px; min-height: 38px; padding: 6px 10px; }
.rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--accent); }
.rating input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 4px; }
.contact-list li { margin-bottom: .8em; }

/* Reserva */
.booking { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }
.booking-main, .booking-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.booking-main { min-width: 0; }
.booking { scroll-margin-top: 88px; }
.booking-flow .wa-float { display: none; }
.booking-flow { --muted: var(--ink-soft); }
.booking-flow :focus-visible { outline-color: var(--brand); }
.booking-flow input:focus, .booking-flow select:focus, .booking-flow textarea:focus { outline-color: var(--brand); }
@media (max-width: 860px) { .booking-flow .booking-section { padding-top: 28px; } }
.booking-summary { position: sticky; top: 88px; }
.booking-review .booking-main { grid-column: 1 / -1; }
.booking-review .booking-summary { position: static; margin: 0 0 20px; }
@media (max-width: 860px) { .booking-summary { position: static; padding: 14px 18px; } .booking-summary .facts > div { padding: 4px 0; } }
.stepper { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; }
.stepper li { padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.stepper li.current { background: var(--brand); color: var(--brand-ink); }
.stepper li.done { background: var(--brand-soft); color: var(--brand); }
.choice-grid { display: grid; gap: 10px; margin-bottom: 1em; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choice-grid.two { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--brand); flex: none; }
.choice strong, .choice small { display: block; }
.choice small { color: var(--muted); }
.service-help { margin: -4px 0 14px; max-width: 60ch; }
.service-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.service-choice { align-items: center; gap: 8px; padding: 11px 12px; min-height: 64px; }
.service-choice input { margin-top: 0; }
.service-choice span { min-width: 0; }
.service-choice strong { font-size: .94rem; line-height: 1.3; }
.service-unsure { grid-column: 1 / -1; min-height: 58px; }
.service-unsure small { font-size: .84rem; margin-top: 2px; }
@media (max-width: 620px) {
  .service-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-choice { padding: 10px; }
  .service-choice:not(.service-unsure) { flex-direction: column; align-items: flex-start; gap: 5px; }
  .service-choice:not(.service-unsure) span { width: 100%; }
  .service-choice strong { font-size: .9rem; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
}
.slot-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.slot-selection { flex-basis: 100%; }
@media (max-width: 860px) {
  .booking-flow .slot-actions.has-selection { position: fixed; bottom: 0; left: 0; right: 0; z-index: 15; margin: 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -3px 16px rgba(39, 60, 52, .08); justify-content: space-between; gap: 6px 12px; }
  .booking-flow:has(.slot-actions.has-selection) { padding-bottom: 125px; }
}
.slot-grid { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.slot-day { display: flex; flex-direction: column; gap: 6px; }
.slot-day-title { margin: 0 0 4px; font-size: .9rem; text-transform: capitalize; }
@media (max-width: 760px) {
  .slot-nav > span { order: -1; flex-basis: 100%; text-align: center; }
  .slot-grid { grid-template-columns: 1fr; }
  .slot-day { flex-direction: row; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .slot-day-title { width: 100%; }
  .slot { flex: 0 0 calc(33.333% - 4px); }
}
.slot { white-space: nowrap; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--brand); background: var(--surface); color: var(--brand); font: 600 .9rem var(--sans); cursor: pointer; }
.slot:hover { background: var(--brand-soft); }
.slot.selected { background: var(--brand); color: var(--brand-ink); }
.slot.taken { border-color: var(--line); color: var(--taken); background: var(--bg-alt); text-decoration: line-through; cursor: default; font-weight: 400; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 12px; }
.panel summary { cursor: pointer; font-weight: 600; }
.thread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 360px; overflow-y: auto; }
.msg { border-radius: 12px; padding: 10px 12px; max-width: 92%; }
.msg p { margin: 0 0 4px; white-space: pre-wrap; }
.msg small { color: var(--muted); font-size: .78rem; }
.msg.paciente { background: var(--bg-alt); align-self: flex-start; }
.msg.profesional { background: var(--brand-soft); align-self: flex-end; }

/* Pie */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 48px 0 24px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.footer-name { font-family: var(--display); color: var(--on-dark); font-size: 1.15rem; }
.footer-title { color: var(--on-dark); font-weight: 600; }
.crisis { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 14px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .85rem; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: var(--wa); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.wa-float:hover { color: #fff; background: var(--wa-hover); }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.06rem; }
.prose a { overflow-wrap: anywhere; }

/* ---------- Panel ---------- */
body.admin { background: var(--admin-bg); }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-header-actions { display: flex; gap: 16px; align-items: center; font-size: .92rem; }
.admin-header-actions form { margin: 0; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 61px); }
.admin-nav { background: var(--surface); border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { color: var(--ink-soft); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: .94rem; }
.admin-nav a:hover, .admin-nav a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.admin-main { padding: 24px; min-width: 0; }
.admin-main h1 { font-size: 1.8rem; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .admin-nav a { white-space: nowrap; }
  .admin-main { padding: 16px; }
}
.admin-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.admin-section h2 { font-size: 1.2rem; margin-top: 0; }
.admin-section code { overflow-wrap: anywhere; white-space: normal; }
#mensajeria .panel { min-width: 0; overflow-wrap: anywhere; }
#mensajeria .btn { white-space: normal; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .admin-cols { grid-template-columns: 1fr; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink-soft); display: flex; flex-direction: column; font-size: .9rem; }
.stat-n { font: 600 2rem/1.1 var(--display); color: var(--brand); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr.unread td { font-weight: 600; }
.table form { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-height: 38px; padding: 6px 10px; }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .8rem; font-weight: 600; background: var(--bg-alt); color: var(--ink-soft); vertical-align: middle; }
.pill-solicitada { background: var(--warn-bg); color: var(--warn); }
.pill-confirmada { background: var(--ok-bg); color: var(--ok); }
.pill-cancelada { background: var(--err-bg); color: var(--err); }
.pill-atendida { background: var(--brand-soft); color: var(--brand); }
.pill-ausente { background: var(--neutral-pill-bg); color: var(--neutral-pill-ink); }
.pill-n-enviado, .pill-n-enviado_manual { background: var(--ok-bg); color: var(--ok); }
.pill-n-sin_proveedor, .pill-n-pendiente { background: var(--warn-bg); color: var(--warn); }
.pill-n-fallido { background: var(--err-bg); color: var(--err); }
.log { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.log li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.log code { font-size: .78rem; color: var(--muted); word-break: break-all; }
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; }
@media (max-width: 860px) { .week { grid-template-columns: 1fr; } }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 140px; }
.day.today { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.day h3 { font-family: var(--sans); font-size: .92rem; margin: 0 0 8px; }
.day h3 span { color: var(--muted); font-weight: 400; }
.slot-card { display: block; border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; text-decoration: none; color: var(--ink); font-size: .86rem; border-left: 4px solid var(--line); background: var(--bg); }
.slot-card small { display: block; color: var(--muted); }
.slot-card.st-solicitada { border-left-color: var(--accent); }
.slot-card.st-confirmada { border-left-color: var(--ok); }
.slot-card.st-atendida { border-left-color: var(--brand); opacity: .75; }
.slot-card.st-ausente { border-left-color: var(--taken); opacity: .75; }
.ex { font-size: .8rem; border-radius: 6px; padding: 4px 6px; margin: 0 0 6px; }
.ex-bloqueo { background: var(--err-bg); color: var(--err); }
.ex-extra { background: var(--ok-bg); color: var(--ok); }
.funnel-row { display: grid; grid-template-columns: 160px 1fr 60px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .92rem; }
.funnel-row .bar { background: var(--bg-alt); border-radius: 6px; height: 14px; overflow: hidden; }
.funnel-row .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.funnel-row strong { text-align: right; }
.review-admin blockquote { margin: 8px 0 12px; padding-left: 12px; border-left: 3px solid var(--line); }
code.copy { display: block; padding: 10px; background: var(--bg-alt); border-radius: 8px; word-break: break-all; font-size: .85rem; }
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; width: 100%; max-width: 380px; text-align: center; box-shadow: var(--shadow); }
.login-card .monogram-xl { width: 72px; height: 72px; font-size: 1.6rem; margin-bottom: 12px; }
.login-card .form { text-align: left; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Próximos horarios libres (hero) */
.hero-card h2 { font-size: 1.1rem; color: var(--on-dark); margin: 0 0 4px; }
.hero-card .sub { margin: 0 0 14px; font-size: .88rem; opacity: .85; }
.next-slots { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.next-slots a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--on-dark); text-decoration: none; font-weight: 600; }
.next-slots a:hover { background: rgba(255, 255, 255, .2); color: var(--on-dark); }
.next-slots small { font-weight: 400; opacity: .8; }
.hero-card .btn-primary { background: var(--band-btn-bg); color: var(--band-btn-ink); }
.hero-card .btn-primary:hover { background: var(--band-btn-bg); filter: brightness(.95); color: var(--band-btn-ink); }
.hero-card .none { margin: 0 0 14px; }
/* Service directory: readable server-rendered content, distinct visual cues and direct booking. */
.specialty-guide{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin:2rem 0 2.5rem;padding:1.5rem 1.8rem;background:#fff;border:1px solid #d7ded9;border-radius:12px}
.specialty-guide h2{font-size:1.45rem;margin:0 0 .5rem}.specialty-guide p{margin:0;max-width:690px}.specialty-guide .btn{flex-shrink:0}
.specialty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:2rem 0 3rem}
.specialty-card{--tone:#e9f0f5;--ink:#34546d;position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce2df;border-radius:14px;background:#fff;padding:24px;transition:transform .18s,box-shadow .18s}
.specialty-card:before{content:'';height:7px;position:absolute;inset:0 0 auto;background:var(--ink);opacity:.6}
.specialty-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #203d3312}
.specialty-card.tone-sage{--tone:#e7efea;--ink:#426850}.specialty-card.tone-rose{--tone:#f7e9ed;--ink:#875066}.specialty-card.tone-lavender{--tone:#eeebf7;--ink:#655386}.specialty-card.tone-peach{--tone:#f8eee7;--ink:#8b553d}
.specialty-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.specialty-kicker{font-size:.76rem;font-weight:600;letter-spacing:.035em;color:var(--ink)}
.specialty-top svg{width:60px;height:60px;flex-shrink:0;padding:6px;border-radius:50%;background:var(--tone);color:var(--ink)}
.specialty-card h2{font-size:1.45rem;line-height:1.22;margin:0 0 12px}.specialty-card h2 a{text-decoration:none}.specialty-card>p{margin:0 0 18px;line-height:1.65}
.specialty-card .specialty-topics{background:var(--tone);border-radius:8px;padding:12px 14px;font-size:.84rem;color:var(--ink);line-height:1.6;margin-top:auto}.specialty-topics span{display:block;font-size:.69rem;letter-spacing:.06em;text-transform:uppercase;font-weight:600;margin-bottom:3px}
.specialty-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;font-size:.83rem;padding-top:6px}.specialty-actions a:first-child{font-weight:700}.specialty-actions a:last-child{font-size:.78rem}.specialty-actions a{min-height:44px;display:inline-flex;align-items:center;gap:6px}
@media(max-width:1000px){.specialty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.specialty-guide{align-items:flex-start;flex-direction:column;gap:1rem}}
@media(max-width:600px){.specialty-grid{grid-template-columns:1fr;gap:18px}.specialty-card{padding:22px}.specialty-guide{padding:22px}.specialty-guide .btn{white-space:normal}.specialty-card h2{font-size:1.5rem}}
@media(prefers-reduced-motion:reduce){.specialty-card{transition:none}.specialty-card:hover{transform:none}}
.calendar-preview{margin:16px 0;padding:16px;border:1px solid var(--line,#d7ded9);border-radius:10px;overflow-wrap:anywhere}.calendar-preview summary{cursor:pointer;font-weight:600;min-height:30px}.calendar-preview[open] summary{margin-bottom:14px}.calendar-preview h3{font-size:1.3rem}.calendar-preview form{margin-top:18px;border-top:1px solid var(--line,#d7ded9);padding-top:12px}
.svc-signs { margin: 0 0 12px; padding-left: 1.15em; display: grid; gap: 6px; }
.svc-signs li::marker { color: var(--accent-ink); }
