/*
 * Plantilla «barberia» de VARKAEN Digital. Diseño aprobado de Ashoka Barber, generalizado:
 * fondo negro, acento configurable por empresa (--accent, validado con contraste ≥ 4,5:1 sobre
 * --bg), Cormorant Garamond para títulos y Manrope para texto (OFL, autoalojadas).
 */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-2: #141414;
  --surface: #262321;
  --accent: #c3a065;
  --accent-hover: #d4b57f;
  --accent-ink: #0b0b0c;
  --text: #ede8de;
  --muted: #b7b1a7;
  --line: #3a3532;
  --line-strong: #5c544e;
  --border-control: #7d736b;
  --focus: #e3c48a;
  --pending-bg: #4a3d00;
  --pending-ink: #ffe9a3;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-display: clamp(2.75rem, 1.4rem + 5.2vw, 5.75rem);
  --step-xl: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
  --step-l: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --max: 77.5rem;
  --margin: clamp(1.25rem, 0.5rem + 3.4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 4.5rem;
  --radius: 3px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
main { flex: 1; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-xl); }
h2 { font-size: var(--step-l); }
.h3, h3 { font-size: 1.5rem; }
p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
ul[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--margin); top: 0.75rem; z-index: 100; padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }
.icon { width: 1.2rem; height: 1.2rem; flex: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: max(var(--margin), env(safe-area-inset-left)) max(var(--margin), env(safe-area-inset-right)); }
.narrow { max-width: calc(46rem + 2 * var(--margin)); }
.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-2); }
.page-head { padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 1.25rem; }
.eyebrow { display: block; margin-bottom: 1rem; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow--small { margin-bottom: 0.4rem; font-size: 0.75rem; }
.head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.head h2 { font-size: var(--step-xl); }
.head p { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }
@media (min-width: 56rem) { .head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.lede { font-size: var(--step-l); line-height: 1.45; color: var(--muted); max-width: 42ch; }
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.stack > * + * { margin-top: 1.25rem; }
.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.75rem 1.35rem; border: 1.5px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; line-height: 1.2; text-decoration: none; text-transform: uppercase; text-align: center; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 0.9rem; font-size: 0.8125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--accent); }
.link-arrow .arrow { transition: transform 260ms var(--ease-out); }
.link-arrow:hover .arrow, a:hover .link-arrow .arrow { transform: translateX(4px); }
.back-link { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); text-decoration: none; }

/* Barras de vista previa y demo */
.preview-bar, .demo-bar { background: var(--pending-bg); color: var(--pending-ink); }
.demo-bar { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); }
.preview-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding-block: 0.6rem; font-size: 0.9375rem; }
.pending { display: inline; padding: 0.05em 0.4em; background: var(--pending-bg); color: var(--pending-ink); font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700; outline: 1.5px dashed var(--pending-ink); outline-offset: 1px; }
.pending-block { display: block; padding: 0.6rem 0.9rem; margin-top: 0.75rem; line-height: 1.45; }
.note { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); font-size: 0.9375rem; }
.note .icon { color: var(--accent); margin-top: 0.15rem; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(11 11 12 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-logo { height: 3rem; width: auto; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 200ms ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; padding: 1rem var(--margin) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-nav ul { display: grid; }
.site-nav a:not(.btn) { display: block; padding: 0.75rem 0; font-size: 1.125rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.header-cta { margin-top: 1.25rem; width: 100%; }
@media (min-width: 64rem) {
  /* Without JavaScript the «Menú» button stays: closed <details> content cannot be shown by CSS. */
  .js .menu-btn { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 1.75rem; padding: 0; background: none; border: 0; }
  .site-nav ul { display: flex; gap: 1.5rem; }
  .site-nav a:not(.btn) { padding: 0.5rem 0; border: 0; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
  .header-cta { margin: 0; width: auto; min-height: 2.75rem; }
}

/* Portada */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column-reverse; }
.hero-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 55%; }
.hero-inner { padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.5rem) clamp(2rem, 1rem + 3vw, 3rem); }
.hero-title { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.015em; max-width: 12ch; }
.hero-sub { margin-top: 1.4rem; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.hero--plain .hero-inner { padding-block: var(--section); }
@media (min-width: 56rem) {
  .hero:not(.hero--plain) { display: block; min-height: min(calc(100svh - var(--header-h)), 46rem); }
  .hero:not(.hero--plain) .hero-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
  .hero:not(.hero--plain) .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 11 12 / 0.94) 0%, rgb(11 11 12 / 0.75) 42%, rgb(11 11 12 / 0.1) 75%); }
  .hero:not(.hero--plain) .hero-inner { display: flex; align-items: center; min-height: inherit; }
}

/* Vitrina de productos (carrusel de la portada): la mitad derecha en pantallas anchas */
.hero--showcase .hero-inner { display: grid; gap: 3rem; }
@media (min-width: 56rem) {
  .hero.hero--showcase .hero-inner, .hero.hero--showcase:not(.hero--plain) .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 5vh, 4rem); }
  .hero.hero--showcase:not(.hero--plain) { min-height: min(calc(100svh - var(--header-h)), 52rem); }
  .hero.hero--showcase:not(.hero--plain) .hero-media::after { background: linear-gradient(90deg, rgb(11 11 12 / 0.95) 0%, rgb(11 11 12 / 0.86) 50%, rgb(11 11 12 / 0.8) 100%); }
}
.showcase { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.showcase-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.showcase-title { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.showcase-count { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.showcase-count span { color: var(--text); }
.showcase-track { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-track:focus-visible { outline-offset: 6px; }
.showcase-slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.showcase-stage { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 2px; background: rgb(20 20 20 / 0.72); }
.showcase-img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.showcase-stage--photo { background: #141414; }
.showcase-stage--photo .showcase-img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-blank { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; color: var(--muted); }
.showcase-blank-mark { display: none; }
.showcase-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; }
.showcase-text { display: grid; gap: 0.3rem; min-width: 0; flex: 1 1 14rem; }
.showcase-sub { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.showcase-name { font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem); line-height: 1.05; }
.showcase-price { font-size: 0.9375rem; color: var(--muted); }
.showcase-cta { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; color: var(--accent); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.showcase-cta .arrow { transition: transform 260ms var(--ease-out); }
.showcase-cta:hover { color: var(--accent-hover); }
.showcase-cta:hover .arrow { transform: translateX(4px); }
.showcase-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.showcase-controls { display: flex; gap: 0.25rem; margin-right: -0.6rem; }
.ctrl { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color 160ms ease; }
.ctrl:hover { color: var(--text); }
.showcase-dots { display: flex; flex: 1; gap: 0.35rem; max-width: 12rem; }
.showcase-dots button { flex: 1; height: 44px; padding: 0; border: 0; background: transparent; position: relative; cursor: pointer; }
.showcase-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); transition: background 200ms ease, height 200ms ease; }
.showcase-dots button[aria-current="true"]::after { height: 2px; margin-top: -0.5px; background: var(--text); }
@media (min-width: 56rem) {
  .showcase-stage { aspect-ratio: auto; height: clamp(13rem, calc(100svh - 30rem), 28rem); }
}
@media (max-width: 55.99rem) {
  .showcase-stage { aspect-ratio: 1; }
}

/* Servicios */
.services-home { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .services-home { grid-template-columns: 5fr 7fr; } }
.services-intro h2 { font-size: var(--step-xl); }
.service-lines { border-top: 1px solid var(--line); }
.service-lines a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-name { font-family: var(--font-display); font-size: 1.625rem; font-weight: 600; }
.service-price { color: var(--muted); font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.service-lines a:hover .service-name { color: var(--accent); }
.service-cards { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .service-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img, .course-media img, .person-photo img, .course-hero-media img, .about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body { display: grid; gap: 0.75rem; padding: 1.25rem; align-content: start; flex: 1; }
.service-body .btn { justify-self: start; margin-top: 0.5rem; }
.service-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.service-top h2 { font-size: 1.75rem; }

/* Cursos */
.course-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.course-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.course-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.course-link:hover h3 { color: var(--accent); }
.course-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-body { display: grid; gap: 0.75rem; padding: 1.25rem; align-content: start; }
.course-body h3 { font-size: 1.875rem; }
.course-facts { color: var(--muted); }
.course-price { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; margin-top: 0.75rem; }
.course-price strong { font-size: 1.375rem; }
.badge { justify-self: start; display: inline-block; padding: 0.2rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 0.8125rem; font-weight: 700; }
.badge--open { border-color: var(--accent); color: var(--accent); }
.course-hero { display: grid; gap: 2rem; }
.course-hero .badge { margin-bottom: 1rem; }
.course-hero-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
@media (min-width: 56rem) { .course-hero { grid-template-columns: 7fr 5fr; align-items: center; } }
.course-detail { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .course-detail { grid-template-columns: 7fr 4fr; } }
.course-aside .h3 { margin: 2rem 0 1rem; }
.editions { display: grid; gap: 1rem; }
.editions li { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }

/* Datos */
.facts { display: grid; grid-template-columns: minmax(7rem, 0.38fr) 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.875rem; padding-right: 1rem; padding-top: 1.05rem; }
.visit { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .visit { grid-template-columns: 5fr 7fr; } .visit .actions { grid-column: 2; margin-top: 0; } }

/* Galería y equipo */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 56rem) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.works li { position: relative; }
.work-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.works figcaption { margin-top: 0.4rem; }
.works--course { margin-top: 3rem; }
.video-tile { position: relative; display: block; text-decoration: none; }
.video-blank { display: block; aspect-ratio: 4 / 5; background: var(--surface); border-radius: var(--radius); }
.video-label { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; display: flex; gap: 0.5rem; align-items: center; padding: 0.5rem 0.7rem; background: rgb(11 11 12 / 0.85); border-radius: var(--radius); font-weight: 700; font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.chips a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 2.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2rem 1.25rem; }
.team-grid--compact { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.person { display: grid; gap: 0.5rem; align-content: start; }
.person h2, .person h3 { font-size: 1.75rem; }
.person-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); display: grid; place-items: center; margin-bottom: 0.5rem; }
.person-photo span { font-family: var(--font-display); font-size: 4rem; color: var(--accent); }
.about-grid { display: grid; gap: 3rem; }
.about-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
@media (min-width: 56rem) { .about-grid { grid-template-columns: 7fr 5fr; } }

/* Turnos */
.booking { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .booking { grid-template-columns: 7fr 4fr; } }
.booking-form { display: grid; gap: 1.25rem; max-width: 40rem; }
.booking-form .btn { justify-self: start; }
.booking-aside .h3 { margin-bottom: 0.5rem; }
.booking-aside .h3 ~ .h3 { margin-top: 1.5rem; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 700; font-size: 0.9375rem; }
select, input[type="date"] { width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem; background: var(--bg-2); border: 1.5px solid var(--border-control); border-radius: var(--radius); color-scheme: dark; }
.message-preview pre, .message-box { margin: 0.4rem 0 0; padding: 1rem; background: var(--surface); border-left: 3px solid var(--accent); border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.9375rem; white-space: pre-wrap; }
.message-box { margin-top: 2rem; }

/* Demo */
.demo-cta { border-block: 1px solid var(--line); }
.demo-cta h2 { font-size: var(--step-xl); }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; background: var(--bg); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.footer-links { display: grid; gap: 0.25rem; }
.footer-links a { display: inline-block; padding: 0.35rem 0; color: var(--muted); }
.footer-base { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }


/* Agenda de turnos */
.agenda { display: grid; gap: 2rem; max-width: 44rem; }
.agenda-step { display: grid; gap: 0.9rem; }
.agenda-days { margin-top: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; }
.agenda-days a { flex: none; }
.agenda-slots { border: 0; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.agenda-slots legend { padding: 0; margin-bottom: 0.9rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.5rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 700; font-variant-numeric: tabular-nums; }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.note--error { border-color: #c0392b; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.appt-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; margin: 0 0 2rem; max-width: 36rem; }
.appt-facts dt { color: var(--muted); }
.appt-facts dd { margin: 0; }
.appt-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.appt-buttons form { margin: 0; }
.dev-banner { background: var(--bg-2); border-bottom: 1px solid var(--line); text-align: center; font-size: 0.875rem; padding: 0.55rem 1rem; color: var(--muted); }
