/* Layout: calma de salón. Mucho aire, fotos en arco (como los espejos y lámparas del salón),
   una sola columna de lectura y bandas de color lino/perla que separan los momentos. */
:root {
  --lino: #f5f2ec;
  --perla: #ebe7df;
  --piedra: #cfc6bb;
  --arena: #b39a7f;
  --agua: #8fb5b0;
  --grafito: #2b2a27;

  --bg: var(--lino);
  --band: var(--perla);
  --card: #fbfaf7;
  --fg: var(--grafito);
  --muted: #6b655d;
  --line: #ddd6cb;
  --accent: #8a6f52;
  --accent-soft: var(--arena);
  --calm: #4f7c76;
  --calm-bg: #dcebe8;
  --btn-bg: var(--grafito);
  --btn-fg: var(--lino);

  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 4vw, 3.75rem);

  --radius-arch: 999px 999px 6px 6px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1e1c; --band: #262522; --card: #2b2a27; --fg: #ece7de; --muted: #a9a297;
    --line: #3b3935; --accent: #c9ad8c; --accent-soft: #9c856b; --calm: #a9d4cd; --calm-bg: #24403c;
    --btn-bg: #ece7de; --btn-fg: #1f1e1c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1e1c; --band: #262522; --card: #2b2a27; --fg: #ece7de; --muted: #a9a297;
  --line: #3b3935; --accent: #c9ad8c; --accent-soft: #9c856b; --calm: #a9d4cd; --calm-bg: #24403c;
  --btn-bg: #ece7de; --btn-fg: #1f1e1c; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; max-width: 62ch; }
ul { margin: 0; padding-left: 1.1em; display: grid; gap: 0.35em; max-width: 62ch; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { background: var(--band); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.stack { display: grid; gap: 20px; align-content: start; }
.eyebrow { font-size: var(--step--1); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.lede { font-size: var(--step-1); color: var(--fg); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Cabecera con el logotipo de texto del kit de marca */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.wordmark { text-decoration: none; display: grid; justify-items: center; line-height: 1; }
.wordmark .the { font-family: var(--display); font-style: italic; color: var(--accent-soft); font-size: 1.05rem; }
.wordmark .name { font-family: var(--body); letter-spacing: 0.34em; font-size: 1.05rem; margin-right: -0.34em; font-weight: 400; }
.wordmark .city { font-size: 0.56rem; letter-spacing: 0.32em; color: var(--muted); margin-top: 6px; margin-right: -0.32em; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 0.9rem; letter-spacing: 0.06em; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 6px; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  padding: 12px 22px; border-radius: 999px; font: 500 0.92rem/1 var(--body); letter-spacing: 0.06em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--piedra); }
.btn.small { padding: 9px 16px; font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Foto en arco: el gesto visual de la marca */
.arch { border-radius: var(--radius-arch); overflow: hidden; background: var(--band); aspect-ratio: 3 / 4; max-width: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Portada */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: var(--step-4); }
.hero .quote { font-family: var(--display); font-style: italic; font-size: var(--step-2); color: var(--accent); }
.hero .arch { aspect-ratio: 4 / 5; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--muted); padding: 0; list-style: none; }
.facts li::before { content: "·"; margin-right: 8px; color: var(--accent-soft); }
.facts li:first-child::before { content: none; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .arch { max-width: 420px; width: 100%; justify-self: center; order: -1; aspect-ratio: 1 / 1; }
}

/* Recomendador: ¿qué necesita tu pelo? */
.need-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.need-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: none; border-top: 1px solid var(--line); }
.need-list li { border-bottom: 1px solid var(--line); }
.need-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 16px 4px; text-decoration: none; transition: background 0.2s ease; }
.need-list a:hover { background: var(--card); }
.need-list .if { font-size: var(--step-0); }
.need-list .then { font-family: var(--display); font-size: var(--step-2); color: var(--accent); text-align: right; white-space: nowrap; }
.need-list .then span { font-family: var(--body); font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
@media (max-width: 820px) { .need-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .need-list a { grid-template-columns: 1fr; } .need-list .then { text-align: left; } }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.service-card { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.service-card .arch { aspect-ratio: 4 / 5; transition: transform 0.4s ease; }
.service-card:hover .arch { transform: translateY(-4px); }
.service-card .kind { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.service-card h3 { font-size: var(--step-2); }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-card .more { font-size: 0.85rem; letter-spacing: 0.06em; text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 5px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } .service-card .arch { aspect-ratio: 1 / 1; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { display: grid; gap: 12px; }

/* Antes y después */
.ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ba figure { margin: 0; display: grid; gap: 10px; }
.ba img { width: 100%; aspect-ratio: 906 / 600; object-fit: cover; border-radius: 6px; }
.ba figcaption { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 380px) { .ba { grid-template-columns: 1fr; } }

/* Cómo agendar: es una secuencia real, por eso va numerada */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: none; counter-reset: paso; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: paso; border-top: 1px solid var(--piedra); padding-top: 18px; }
.steps li::before { content: counter(paso); font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--accent-soft); }
.steps strong { font-weight: 500; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* El salón */
.salon { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.salon-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.salon-photos .arch:first-child { aspect-ratio: 3 / 5; }
.salon-photos .arch:last-child { aspect-ratio: 3 / 4; }
@media (max-width: 820px) { .salon { grid-template-columns: 1fr; } }

/* Datos del salón (NAP) */
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.info > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.info h3 { font-size: 1.35rem; }
.info address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.note { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 820px) { .info { grid-template-columns: 1fr; } }

/* Página de servicio */
.svc-hero .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.svc-hero .arch { aspect-ratio: 4 / 5; }
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; border-top: 1px solid var(--line); }
.spec > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.spec dt { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; }
.detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.detail > div { display: grid; gap: 14px; align-content: start; min-width: 0; }
.care { background: var(--calm-bg); color: var(--fg); border-radius: 6px; padding: 18px 20px; display: grid; gap: 6px; }
.care strong { color: var(--calm); font-weight: 500; letter-spacing: 0.04em; }
@media (max-width: 820px) {
  .svc-hero .wrap { grid-template-columns: 1fr; }
  .svc-hero .arch { max-width: 380px; width: 100%; aspect-ratio: 1 / 1; }
  .detail, .spec { grid-template-columns: 1fr; }
}

/* Página de servicios: un bloque largo por servicio */
[id] { scroll-margin-top: 96px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.jump .eyebrow { width: 100%; margin-top: 6px; }
.jump a { text-decoration: none; border: 1px solid var(--piedra); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; transition: border-color 0.2s ease, color 0.2s ease; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.facts4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.facts4 > div { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--piedra); padding-top: 16px; min-width: 0; }
.facts4 h3 { font-size: 1.35rem; }
.facts4 p { color: var(--muted); font-size: 0.95rem; }
.group-head { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.group-head .wrap { padding-block: 28px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.group-head h2 { font-size: var(--step-4); }
.svc { padding-block: clamp(48px, 7vw, 88px); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.svc-aside { display: grid; gap: 20px; position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.svc-aside .arch { aspect-ratio: 4 / 5; }
.svc-aside .spec { grid-template-columns: 1fr; }
.svc-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.svc-main h2 { font-size: var(--step-4); }
.sub { display: grid; gap: 12px; }
.sub h3 { font-size: 1.35rem; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 0.9rem; }
.ingr { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ingr > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4px 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ingr dt { font-weight: 500; }
.ingr dd { margin: 0; color: var(--muted); }
.ritual { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: none; counter-reset: r; border-top: 1px solid var(--line); }
.ritual li { counter-increment: r; display: grid; grid-template-columns: 2.2rem minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ritual li::before { content: counter(r); font-family: var(--display); font-size: 1.5rem; color: var(--accent-soft); line-height: 1; }
.ritual strong { font-weight: 500; }
.ritual span { color: var(--muted); }
@media (max-width: 560px) { .ritual li { grid-template-columns: 2.2rem minmax(0, 1fr); } .ritual span { grid-column: 2; } }
.warn { border: 1px solid var(--accent-soft); border-radius: 6px; padding: 16px 20px; display: grid; gap: 4px; }
.warn strong { color: var(--accent); font-weight: 500; letter-spacing: 0.04em; }
@media (max-width: 820px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-aside .arch { max-width: 380px; width: 100%; aspect-ratio: 1 / 1; }
  .ingr > div { grid-template-columns: 1fr; }
}

/* Preguntas frecuentes */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Cierre con llamada a la acción */
.cta-band .wrap { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: clamp(56px, 8vw, 96px); }
.cta-band p { color: var(--muted); }

/* Pie */
.site-footer { border-top: 1px solid var(--line); font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; align-items: start; }
.site-footer .mark { width: 92px; height: 92px; border-radius: 50%; background: #fbfaf7; padding: 4px; }
.site-footer h2 { font-family: var(--body); font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.legal { border-top: 1px solid var(--line); padding-block: 18px; font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; z-index: 30;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--calm); color: var(--bg); box-shadow: 0 6px 20px rgba(43, 42, 39, 0.22);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

.prose { display: grid; gap: 16px; }
.center { text-align: center; justify-items: center; }

/* ===== Colores y letra v2 (inspirados en Amaria) sobre la estructura v1: blanco, negro, bandas salvia / beige / nude, letra grotesca ===== */
:root {
  --bg: #ffffff;
  --band: #f0ede5;
  --sage: #e5ece9;
  --nude: #e6d6cb;
  --card: #fbf8f5;
  --fg: #111111;
  --muted: #5c5a57;
  --line: #e4e0d9;
  --accent: #7a6450;
  --accent-soft: #b39a7f;
  --btn-bg: #111111;
  --btn-fg: #ffffff;
  --foot-bg: #111111;
  --foot-fg: #f2efe9;
  --foot-muted: #a8a49d;
  --display: "Hanken Grotesk", "HK Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "HK Grotesk", "Helvetica Neue", Arial, sans-serif;
  --script: "Cormorant Garamond", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --band: #1f1e1b; --sage: #1b2321; --nude: #2a221e; --card: #22211e; --fg: #f2efe9; --muted: #aaa59d;
    --line: #34322e; --accent: #d1b597; --btn-bg: #f2efe9; --btn-fg: #111111; --foot-bg: #0b0b0a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --band: #1f1e1b; --sage: #1b2321; --nude: #2a221e; --card: #22211e; --fg: #f2efe9; --muted: #aaa59d;
  --line: #34322e; --accent: #d1b597; --btn-bg: #f2efe9; --btn-fg: #111111; --foot-bg: #0b0b0a; color-scheme: dark;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); }
.svc-main h2, .group-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); }
h1 em, h2 em { font-style: normal; color: inherit; }
.hero .quote { font-family: var(--script); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); color: var(--accent); letter-spacing: 0; }
.eyebrow { letter-spacing: 0.18em; font-weight: 600; font-size: 0.75rem; }
.band.sage { background: var(--sage); }
.band.nude { background: var(--nude); }

/* Botones: negros y redondeados */
.btn { font-weight: 600; letter-spacing: 0.02em; }
.btn.ghost { border-color: var(--fg); }

/* Lista "qué necesita tu pelo" */
.need-list .then { font-family: var(--body); font-weight: 600; font-size: 1.15rem; color: var(--fg); }
.need-list a:hover { background: rgba(255, 255, 255, 0.45); }
.steps li::before, .ritual li::before { font-family: var(--body); font-weight: 600; color: var(--accent); }

/* Pie de página negro */
.site-footer { background: var(--foot-bg); color: var(--foot-fg); border-top: 0; }
.site-footer h2 { color: var(--foot-muted); }
.site-footer .note, .site-footer .hours dt { color: var(--foot-muted); }
.legal { border-top-color: #2c2b29; color: var(--foot-muted); }
.site-footer .mark { background: #ffffff; }
.wa-float { background: #111111; color: #ffffff; }

/* Logo: "the" en cursiva y BEAUTY BAR en la letra grotesca */
.wordmark .the { font-family: var(--script); }
.wordmark .name { font-family: var(--body); font-weight: 500; }

/* Botón de WhatsApp de la cabecera: texto claro sobre el botón negro */
.nav a.btn, .nav a.btn:hover { color: var(--btn-fg); text-decoration: none; }

/* Portada de impacto: tres fotos a todo lo ancho, texto blanco encima */
.hero-full { position: relative; min-height: clamp(520px, 82vh, 860px); display: grid; align-items: end; overflow: hidden; background: #1a1918; color: #ffffff; }
.hero-media { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: hero-in 1.4s ease both; }
.hero-media img:nth-child(2) { animation-delay: 0.15s; }
.hero-media img:nth-child(3) { animation-delay: 0.3s; }
@keyframes hero-in { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0) 35%, rgba(17,17,17,0.72) 100%); }
.hero-copy { position: relative; z-index: 1; width: 100%; padding-block: 48px clamp(40px, 7vw, 80px); }
.hero-copy .wrap { display: grid; gap: 14px; justify-items: start; }
.hero-copy .eyebrow { color: rgba(255,255,255,0.82); }
.hero-quote { font-family: var(--script); font-style: italic; font-weight: 500; font-size: clamp(2.6rem, 1.6rem + 5vw, 5.2rem); line-height: 1; margin: 0; max-width: none; }
.hero-copy h1 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); font-weight: 500; letter-spacing: 0.01em; color: rgba(255,255,255,0.92); }
.hero-copy .actions { margin-top: 10px; }
.btn.light { background: #ffffff; color: #111111; border-color: #ffffff; }
.btn.ghost.light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.8); }
@media (max-width: 720px) {
  .hero-media { grid-template-columns: 1fr; }
  .hero-media img:not(:first-child) { display: none; }
  .hero-full { min-height: clamp(480px, 78vh, 720px); }
}

/* Quiénes somos, justo después de la portada */
.intro-grid { display: grid; gap: 18px; max-width: 860px; }
.intro-text { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.55; max-width: none; }

/* Antes y después en grande: una pareja por fila, con etiquetas */
.ba { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); max-width: 960px; margin-inline: auto; }
.ba figure { position: relative; gap: 12px; }
.ba img { aspect-ratio: 906 / 600; object-fit: contain; background: var(--card); border-radius: 6px; }
.ba figure::before, .ba figure::after {
  position: absolute; top: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92); color: #111111;
}
.ba figure::before { content: "Antes"; left: 14px; }
.ba figure::after { content: "Después"; left: calc(50% + 14px); }
.ba figcaption { text-align: center; font-size: 0.95rem; }

/* Texto de la portada más abajo en la foto */
.hero-copy { padding-block: 48px clamp(18px, 2.5vw, 30px); }
.hero-full::after { background: linear-gradient(180deg, rgba(17,17,17,0) 45%, rgba(17,17,17,0.75) 100%); }

/* Portada con una sola foto horizontal */
.hero-media.single { grid-template-columns: 1fr; gap: 0; }
.hero-media.single img { object-position: 55% 40%; animation-duration: 2.2s; }
.hero-media.single img:not(:first-child) { display: none; }
@media (max-width: 720px) { .hero-media.single img { object-position: 74% 30%; } }

/* Fotos con bordes rectos en toda la web (sin arco) */
.arch, .svc-aside .arch, .service-card .arch { border-radius: 2px; }

/* Hoja de diagnóstico */
.diag { display: grid; gap: 24px; max-width: 760px; }
.diag fieldset { border: 0; margin: 0; padding: 24px; background: var(--bg); border-radius: 4px; display: grid; gap: 22px; min-width: 0; }
.diag legend { font-family: var(--display); font-weight: 600; font-size: 1.35rem; padding: 0; float: left; width: 100%; }
.diag legend + * { clear: both; }
.field { display: grid; gap: 10px; min-width: 0; }
.field > label, .field .q { font-weight: 500; }
.diag input[type="text"], .diag input[type="tel"], .diag textarea { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%; }
.diag input[type="text"]:focus, .diag input[type="tel"]:focus, .diag textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; transition: background 0.15s ease, border-color 0.15s ease; }
.choice:hover span { border-color: var(--fg); }
.choice input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { font-size: 0.88rem; color: var(--muted); }
.form-error { color: #9b2c1f; font-weight: 500; }
.sent { font-size: 0.95rem; }
@media (max-width: 480px) { .diag fieldset { padding: 18px 16px; } }

/* Teléfono: cabecera compacta (logo arriba, menú en una línea; WhatsApp queda en el botón flotante) */
@media (max-width: 640px) {
  .site-header .wrap { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 8px; padding-block: 10px 8px; }
  .wordmark .the { font-size: 0.95rem; }
  .wordmark .name { font-size: 0.95rem; letter-spacing: 0.3em; margin-right: -0.3em; }
  .wordmark .city { font-size: 0.5rem; margin-top: 4px; }
  .nav { gap: 18px; justify-content: center; flex-wrap: nowrap; }
  .nav a { font-size: 0.88rem; }
  .nav a.btn { display: none; }
}

/* Arreglos de la revisión en teléfono */
.ba img { height: auto; }
.wa-float { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 20px rgba(17, 17, 17, 0.25); }
@media (max-width: 640px) {
  .facts { display: grid; gap: 4px; }
  .facts li::before { content: "·"; margin-right: 8px; }
  .facts li:first-child::before { content: "·"; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .service-card .arch { aspect-ratio: 4 / 5; }
  .service-card h3 { font-size: 1.15rem; }
  .service-card p { font-size: 0.85rem; }
  .service-card .kind { font-size: 0.66rem; letter-spacing: 0.12em; }
  .service-card .more { display: none; }
}

/* Diagnóstico: edad y autorización */
.diag input[type="number"] { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%; max-width: 160px; }
.diag input[type="number"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--bg); border-radius: 4px; padding: 18px 20px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--btn-bg); }
