/* =========================================================
   Jaazi Barber — sistema visual
   Base: espresso / hueso / cobre. Serif editorial + sans UI.
   ========================================================= */

:root {
  --ink: #171210;
  --ink-soft: #241c18;
  --bone: #f4eee5;
  --paper: #fcf9f3;
  --tone: #e7dccc;
  --muted: #6e6055;
  --muted-dark: #a89686;
  --copper: #b1784a;
  --copper-deep: #8c5730;
  --copper-light: #d2a077;
  --danger: #a03a2a;
  --line: rgba(23, 18, 16, 0.14);
  --line-strong: rgba(23, 18, 16, 0.28);
  --line-dark: rgba(244, 238, 229, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 72px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

/* Contenido según el modo de la agenda (compartida o local). */
[data-when="api"] { display: none; }
html[data-mode="api"] [data-when="api"] { display: inline; }
html[data-mode="api"] [data-when="local"] { display: none; }

main:focus { outline: none; }

body.menu-open { overflow: hidden; }

::selection { background: var(--copper); color: #fff; }

:focus-visible {
  outline: 2px solid var(--copper-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.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: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bone);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía de apoyo ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a4a27; /* 5.1:1 sobre --bone (AA en 11px); en fondos oscuros .on-dark la retorna a --copper-light */
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--center { justify-content: center; }

.lede {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}

.on-dark { color: var(--bone); }
.on-dark .eyebrow { color: var(--copper-light); }
.on-dark .lede { color: var(--muted-dark); }

.fineprint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Botones ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 160ms var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 220ms var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn--light {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  --btn-bd: var(--bone);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-bd: rgba(244, 238, 229, 0.32);
}
.btn--sm {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 11px;
}
.btn--block { width: 100%; }
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; }
  .btn--ghost:hover { --btn-bg: rgba(23, 18, 16, 0.05); }
  .btn--ghost-light:hover { --btn-bg: rgba(244, 238, 229, 0.08); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background-color 220ms ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bone) 97%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  padding-top: 3px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: #5f5349;
  text-transform: uppercase;
}
html[data-theme="dark"] .brand__sub { color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  position: relative;
  padding-block: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--ink); }
  .nav__link:hover::after { transform: scaleX(1); }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu-toggle__bars {
  position: relative;
  width: 22px;
  height: 12px;
}
.menu-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 220ms var(--ease), top 220ms var(--ease), opacity 160ms ease;
}
.menu-toggle__bars i:first-child { top: 1px; }
.menu-toggle__bars i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child {
  top: 6px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child {
  top: 6px;
  transform: rotate(-45deg);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 140ms var(--ease);
}
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  transition: opacity 180ms ease, transform 240ms var(--ease);
}
.theme-toggle__moon {
  opacity: 0;
  transform: rotate(-30deg) scale(0.82);
}
html[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(30deg) scale(0.82);
}
html[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    border-color: var(--ink);
  }
}
.theme-toggle:active { transform: scale(0.94); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 36px var(--gutter) 40px;
  background: var(--bone);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.mobile-menu__link span {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--copper-deep);
}
.mobile-menu__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--muted);
}
.mobile-menu .btn { margin-top: 4px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  margin-top: 6px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 4.4vw, 64px);
  padding-block: clamp(36px, 5.5vw, 72px);
}
.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.75rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: clamp(18px, 2vw, 26px);
  max-width: 12ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--copper-light);
}
.hero .lede {
  max-width: 36ch;
  color: var(--muted-dark);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 34px);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.hero__meta dt {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 5px;
}
.hero__meta dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--bone);
}
.hero__meta .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__meta .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper-light);
  flex: none;
}

.hero__media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}
picture { display: contents; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.82) contrast(1.06);
  clip-path: inset(0 0 0 100%);
  animation: heroReveal 1100ms var(--ease) 140ms forwards;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(23, 18, 16, 0.62) 0%, rgba(23, 18, 16, 0) 42%);
  pointer-events: none;
}
.hero__stamp {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 20px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, 0.72);
}

@keyframes heroReveal {
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Secciones ---------- */

.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.hairline { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(20px, 5vw, 64px);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  max-width: 18ch;
}
.section-head > p {
  justify-self: end;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Servicios ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service { border-bottom: 1px solid var(--line); }
.service__link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 22px 4px 22px 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 180ms ease, padding-left 220ms var(--ease);
}
.service__num {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--copper-deep);
  padding-top: 5px;
  align-self: start;
}
.service__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.service__desc {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}
.service__price {
  text-align: right;
  white-space: nowrap;
}
.service__price b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}
.service__price span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.service__arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  opacity: 0.5;
  transition: transform 220ms var(--ease), opacity 180ms ease, color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .service__link:hover {
    background: var(--paper);
    padding-left: 10px;
  }
  .service__link:hover .service__arrow {
    transform: translateX(4px);
    opacity: 1;
    color: var(--copper-deep);
  }
}

/* ---------- Estudio ---------- */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}
.studio__media { position: relative; }
.studio__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  filter: saturate(0.85) contrast(1.02);
}
.studio__cap {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio__body h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  max-width: 15ch;
}
.studio__body .lede { margin-top: 18px; }
.studio__body p + p { margin-top: 14px; }
.studio__body .btn { margin-top: 28px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Reseñas ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.review {
  margin: 0;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.4vw, 30px);
}
.review + .review { border-left: 1px solid var(--line); }
.review__stars {
  display: block;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--copper-deep);
}
.review blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  line-height: 1.35;
  letter-spacing: -0.012em;
}
.review figcaption {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Trabajo ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}
.work {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--tone);
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 18, 16, 0.08);
  border-radius: inherit;
  pointer-events: none;
}
.work figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(15, 12, 10, 0.82));
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.work figcaption span {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-light);
}
@media (hover: hover) and (pointer: fine) {
  .work:hover img { transform: scale(1.035); }
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .work figcaption { padding: 30px 11px 10px; font-size: 10px; }
  .work figcaption span { font-size: 8px; }
}
.work__more {
  margin-top: 18px;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.work__more a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 720px) {
  .work__more { text-align: left; }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.faq__intro p { margin-top: 16px; color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--copper-deep);
  transition: transform 220ms var(--ease-io);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__body {
  padding: 0 40px 22px 0;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--muted);
}
.faq__item[open] .faq__body { animation: faqIn 240ms var(--ease) both; }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.cta-band::after {
  content: "J";
  position: absolute;
  right: -3%;
  bottom: -34%;
  font-family: var(--font-display);
  font-size: clamp(18rem, 30vw, 30rem);
  line-height: 1;
  color: var(--bone);
  opacity: 0.05;
  pointer-events: none;
}
.cta-band__body { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  max-width: 16ch;
}
.cta-band h2 em { font-style: italic; color: var(--copper-light); }
.cta-band p { margin-top: 16px; max-width: 40ch; color: var(--muted-dark); font-size: 0.95rem; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(56px, 7vw, 96px);
  padding-block: 56px 28px;
  background: var(--ink);
  color: var(--bone);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 44px;
}
.footer__brand .brand { color: var(--bone); }
.footer__brand .brand__mark { background: var(--bone); color: var(--ink); }
.footer__brand .brand__sub { color: var(--muted-dark); }
.footer__tagline {
  margin-top: 18px;
  max-width: 28ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-dark);
}
.footer h3 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 14px;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer a {
  text-decoration: none;
  color: var(--bone);
  transition: color 160ms ease;
}
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer__list li { color: rgba(244, 238, 229, 0.82); }
@media (hover: hover) and (pointer: fine) {
  .footer a:hover { color: var(--copper-light); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 11px;
  color: var(--muted-dark);
}
.footer__bottom p { color: inherit; }

/* ---------- Toasts ---------- */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 430px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--bone);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 18px 40px rgba(23, 18, 16, 0.24);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms var(--ease);
  pointer-events: auto;
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); }
.toast button {
  flex: none;
  padding: 4px 2px;
  background: none;
  border: 0;
  color: var(--copper-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Reveals ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Formularios base ---------- */

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label,
.field__label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__optional {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(177, 120, 74, 0.18);
}
textarea.input { resize: vertical; min-height: 92px; }
.input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fbf2ee;
}
.field__error {
  font-size: 12px;
  line-height: 1.4;
  color: var(--danger);
}
.field__hint { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ---------- Legal ---------- */

.legal {
  max-width: 72ch;
  padding-bottom: clamp(48px, 7vw, 96px);
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal__meta {
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.legal p + p { margin-top: 12px; }
.legal ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 20px;
}
.legal li::marker { color: var(--copper-deep); }
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--copper-deep); }
.legal strong { font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .hero { grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); }
  .hero__media { min-height: 480px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .site-header__actions .btn--sm { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero { grid-template-columns: 1fr; }
  .hero__body { order: 1; padding: 32px 24px 28px; }
  .hero h1 { max-width: 14ch; }
  .hero__media { order: 2; min-height: 360px; }
  .hero__media::before {
    background: linear-gradient(180deg, rgba(23, 18, 16, 0.55) 0%, rgba(23, 18, 16, 0) 34%);
  }
  .hero__stamp { display: none; }
  .hero__meta { gap: 14px; }

  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .section-head > p { justify-self: start; }

  .studio { grid-template-columns: 1fr; }
  .studio__media img { aspect-ratio: 16 / 11; }
  .studio__body { order: -1; }

  .reviews { grid-template-columns: 1fr; }
  .review + .review { border-left: 0; }

  .faq { grid-template-columns: 1fr; }
  .faq__intro { position: static; }

  .cta-band { grid-template-columns: 1fr; align-items: start; gap: 26px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero__body { padding: 26px 20px 24px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 0.13em; gap: 8px; }
  .hero .eyebrow::before { width: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__meta { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .hero__meta > div:last-child { grid-column: 1 / -1; }
  .hero__media { min-height: 300px; }

  .service__link {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-areas:
      "num body price"
      "num body price";
    gap: 10px;
    padding-block: 18px;
  }
  .service__num { grid-area: num; }
  .service__body { grid-area: body; }
  .service__price { grid-area: price; }
  .service__arrow { display: none; }
  .service__desc { font-size: 0.82rem; }

  .stats { gap: 10px; }
  .stat span { font-size: 9px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 32px 22px; }
  .toast-region { bottom: 14px; }
}

@media (max-width: 420px) {
  .eyebrow__extra { display: none; }
}

/* ---------- Modo oscuro ---------- */

html[data-theme="dark"] {
  --ink: #f1e9dd;
  --ink-soft: #e6dccd;
  --bone: #12100e;
  --paper: #1d1714;
  --tone: #2a211b;
  --muted: #a99a8b;
  --muted-dark: #b8a998;
  --copper: #c38b5c;
  --copper-deep: #dfab79;
  --copper-light: #e9c39a;
  --danger: #e58b78;
  --line: rgba(241, 233, 221, 0.15);
  --line-strong: rgba(241, 233, 221, 0.32);
  color-scheme: dark;
}

html[data-theme="dark"] .eyebrow { color: #d9a97e; }
html[data-theme="dark"] .on-dark .eyebrow { color: var(--copper-light); }
html[data-theme="dark"] ::selection { color: #171210; }

/* Las tres superficies ancla siguen siendo oscuras. */
html[data-theme="dark"] .hero,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .site-footer {
  background: #0b0908;
  color: #f1e9dd;
}
html[data-theme="dark"] .hero,
html[data-theme="dark"] .cta-band {
  box-shadow: inset 0 0 0 1px rgba(241, 233, 221, 0.07);
}
html[data-theme="dark"] .site-footer {
  border-top: 1px solid rgba(241, 233, 221, 0.08);
}
html[data-theme="dark"] .hero__meta dd { color: #f1e9dd; }
html[data-theme="dark"] .cta-band::after { color: #f1e9dd; opacity: 0.04; }
html[data-theme="dark"] .footer a,
html[data-theme="dark"] .footer__brand .brand { color: #f1e9dd; }
html[data-theme="dark"] .footer__brand .brand__mark { background: #f1e9dd; color: #171210; }

/* Botones sobre fondo oscuro. */
html[data-theme="dark"] .btn--light {
  --btn-bg: #f1e9dd;
  --btn-fg: #171210;
  --btn-bd: #f1e9dd;
}
html[data-theme="dark"] .btn--ghost-light {
  --btn-fg: #f1e9dd;
  --btn-bd: rgba(241, 233, 221, 0.32);
}
html[data-theme="dark"] .btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; }
html[data-theme="dark"] .btn--ghost:hover { --btn-bg: rgba(241, 233, 221, 0.08); }

html[data-theme="dark"] .work::after { border-color: rgba(241, 233, 221, 0.12); }

html[data-theme="dark"] .toast {
  background: #2a211b;
  color: #f1e9dd;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Agenda: fichas seleccionadas pasan a claro, así que su texto se invierte. */
html[data-theme="dark"] .date:has(input:checked) .date__dow,
html[data-theme="dark"] .date:has(input:checked) .date__mon { color: rgba(23, 18, 16, 0.62); }
html[data-theme="dark"] .date:has(input:checked) .date__note { color: #7a4a27; }
html[data-theme="dark"] .stepper li.is-done .stepper__num { color: #171210; }
html[data-theme="dark"] .choice:has(input:checked) {
  border-color: var(--copper-light);
  box-shadow: inset 0 0 0 1px var(--copper-light);
}
html[data-theme="dark"] .choice:has(input:checked) .choice__mark { border-color: var(--copper-light); }

html[data-theme="dark"] .form-error {
  background: rgba(229, 139, 120, 0.1);
  border-color: rgba(229, 139, 120, 0.32);
  color: #f0a99a;
}
html[data-theme="dark"] .form-error::before { background: #e58b78; color: #171210; }
html[data-theme="dark"] .cancel-confirm {
  background: rgba(229, 139, 120, 0.1);
  border-color: rgba(229, 139, 120, 0.28);
}
html[data-theme="dark"] .cancel-confirm p { color: #f0a99a; }
html[data-theme="dark"] .cancel-confirm .danger {
  background: #a03a2a;
  border-color: #a03a2a;
  color: #fff;
}
html[data-theme="dark"] .cancel-confirm .danger:hover { background: #8a2f21; border-color: #8a2f21; }
html[data-theme="dark"] .appt__link--danger:hover { color: #f0a99a; }

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus,
html[data-theme="dark"] textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bone) inset;
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; clip-path: inset(0 0 0 0); }
  .faq__item[open] .faq__body { animation: none; }
  .mobile-menu { transition: opacity 120ms ease; transform: none; }
  .btn:active { transform: none; }
  .theme-toggle, .theme-toggle svg { transition: none; }
  .toast { transform: none; }
  .btn:hover svg,
  .service__link:hover .service__arrow,
  .work:hover img,
  .nav__link:hover::after { transform: none; }
  .btn svg,
  .service__link,
  .service__arrow,
  .work img,
  .nav__link::after { transition: none; }
}
