/* =============================================================
   Dra. Ramos — Medicina Estética
   Sistema de diseño · estático (Cloudflare Pages)
   Paleta: identidad real de la marca (espresso · crema · champagne).
   No es el "AI cream default": es la identidad existente de la doctora,
   tomada de su material publicado (Instagram @dra_ramos).
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Paleta "Crema & Café" — neutra, cálida, premium (blancos cálidos, beige, café claro).
     Mantengo los nombres de token (--espresso/--cream/--gold) por compatibilidad. */

  /* Superficies oscuras (taupe cálido neutro — más claro y menos saturado) */
  --espresso: #4b463e;
  --espresso-2: #585249;
  --espresso-3: #6b6457;

  /* Superficies claras (blanco cálido / beige / crema) */
  --cream: #f8f4ed;
  --cream-2: #efe8da;
  --cream-3: #e5dcc9;

  /* Acento café (un solo acento, bloqueado).
     --gold = café medio legible sobre claro (AA); --gold-2 = café claro/caramelo sobre oscuro. */
  --gold: #7a5c3f;
  --gold-2: #d3b88f;
  --gold-soft: #e1cdab;

  /* Tinta */
  --ink: #2e2419;
  --ink-2: #6a5d4c;     /* texto secundario sobre claro (AA) */
  --on-dark: #f4eee3;   /* texto sobre café */
  --on-dark-2: #cdbfa9; /* texto secundario sobre café (AA) */

  /* Líneas */
  --line: #ddd0bb;
  --line-dark: rgba(230, 214, 180, 0.16);

  /* Forma */
  --radius: 6px;
  --radius-pill: 999px;

  /* Tipografía */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Movimiento (curvas con carácter — Emil) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 74px;

  /* z-index semántico */
  --z-base: 1;
  --z-sticky: 50;
  --z-nav: 100;
  --z-fab: 120;
  --z-overlay: 200;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--gold-2); color: var(--espresso); }

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

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }

.display {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
}
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
.lead {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
}
.eyebrow-none {} /* (sin eyebrows por decisión de marca) */
.italic { font-style: italic; }
.accent { color: var(--gold); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3rem + 8vw, 8rem); }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem); }
.center { text-align: center; }
.measure { max-width: 65ch; }

.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.section-head .lead { margin-top: 1.1rem; }
.center .section-head { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.22s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.3s var(--ease-out); }

.btn--gold { background: var(--gold-2); color: #2a2018; border-color: var(--gold-2); }
.btn--solid { background: var(--espresso); color: var(--on-dark); border-color: var(--espresso); }
.btn--outline-dark { color: var(--ink); border-color: var(--ink); }
.btn--outline-light { color: var(--on-dark); border-color: rgba(243, 236, 224, 0.45); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.7em 1.15em; font-size: 0.875rem; }

@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(59, 47, 37, 0.55); }
  .btn--solid:hover { background: var(--espresso-3); border-color: var(--espresso-3); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(59, 47, 37, 0.5); }
  .btn--outline-dark:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(46, 36, 25, 0.5); }
  .btn--outline-light:hover { background: rgba(244, 238, 227, 0.12); border-color: var(--on-dark); transform: translateY(-2px); }
  .btn:hover svg { transform: translateX(2px); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  background: rgba(75, 70, 62, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(75, 70, 62, 0.95);
  border-bottom-color: var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* Marca / logo */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--on-dark); }
.brand__mark { width: 38px; height: 38px; color: var(--gold-2); flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name-main { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: 0.01em; }
.brand__name-sub {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--on-dark-2); font-weight: 400; margin-top: 2px;
}

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  color: var(--on-dark-2);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) {
  .nav__links a:hover { color: var(--on-dark); }
  .nav__links a:hover::after { transform: scaleX(1); }
}
.nav__links a[aria-current="page"] { color: var(--on-dark); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--on-dark);
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after { transform: translateY(5.5px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(0); }

/* ---------- Hero (imagen de fondo + texto encima) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(40, 34, 26, 0.5) 0%, rgba(40, 34, 26, 0.12) 32%, rgba(40, 34, 26, 0.55) 64%, rgba(40, 34, 26, 0.86) 100%);
}
.hero__inner { width: 100%; }
.hero__eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.2rem);
  line-height: 1.05;
  color: #fff;
  max-width: 17ch;
  text-shadow: 0 2px 30px rgba(20, 16, 10, 0.35);
}
.hero__title .italic { color: var(--gold-2); }
.hero__text {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  line-height: 1.6;
  text-shadow: 0 1px 16px rgba(20, 16, 10, 0.35);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hero__trust b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: #fff; }
.hero__trust span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

/* ---------- Filosofía / statement ---------- */
.philosophy { background: var(--cream); }
.philosophy__title { font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem); max-width: 18ch; }
.philosophy__title .accent { font-style: italic; }
.philosophy__text { margin-top: 1.5rem; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.75rem, 2rem + 3vw, 4rem);
  border-top: 1px solid var(--line);
}
.value { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(1.25rem, 1vw, 1.75rem); border-left: 1px solid var(--line); }
.value:first-child { border-left: none; padding-left: 0; }
.value__icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1rem; }
.value h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.value p { color: var(--ink-2); font-size: 0.96rem; line-height: 1.6; }

/* ---------- Servicios ---------- */
.services { background: var(--cream-2); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 1rem + 1vw, 1.9rem);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.service-card__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream-3); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.4rem 1.4rem; }
.service-card__body h3 { font-size: 1.3rem; }
.service-card__desc { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.94rem; line-height: 1.58; flex: 1; }

.service-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.price-now { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.price-was { font-size: 0.92rem; color: var(--ink-2); text-decoration: line-through; }
.price-note { font-size: 0.82rem; color: var(--ink-2); letter-spacing: 0.01em; }
.price-quote { font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--gold); }
.service-card__cta { margin-top: 1.25rem; }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(46, 36, 25, 0.5); }
  .service-card:hover .service-card__media img { transform: scale(1.05); }
}
.service-card { cursor: pointer; }
.service-card:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.service-card__more {
  margin-top: 1.25rem;
  align-self: flex-start;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: color 0.2s ease;
}
.service-card__more::after { content: "→"; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__more { color: var(--ink); }
  .service-card:hover .service-card__more::after { transform: translateX(3px); }
}

/* ---------- Modal de tratamiento ---------- */
.tmodal {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 4vw, 2.5rem);
  background: rgba(40, 34, 26, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.tmodal.is-open { opacity: 1; pointer-events: auto; }
.tmodal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: min(880px, 100%);
  max-height: 90vh;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.35s var(--ease-out);
}
.tmodal.is-open .tmodal__panel { transform: none; }
.tmodal__media { background: var(--cream-3); min-height: 280px; }
.tmodal__media img { width: 100%; height: 100%; object-fit: cover; }
.tmodal__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); overflow-y: auto; }
.tmodal__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.tmodal__price { margin-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.tmodal__desc { margin-top: 1.4rem; color: var(--ink-2); line-height: 1.7; }
.tmodal__desc p { margin-bottom: 0.85rem; }
.tmodal__wa { margin-top: 1.25rem; }
.tmodal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(248, 244, 237, 0.85);
  color: var(--ink);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease;
}
.tmodal__close::before, .tmodal__close::after { content: ""; position: absolute; width: 17px; height: 1.6px; background: currentColor; }
.tmodal__close::before { transform: rotate(45deg); }
.tmodal__close::after { transform: rotate(-45deg); }
@media (hover: hover) { .tmodal__close:hover { background: var(--cream); } }
@media (max-width: 680px) {
  .tmodal__panel { grid-template-columns: 1fr; max-height: 92vh; }
  .tmodal__media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .tmodal, .tmodal__panel { transition: opacity 0.2s ease; }
  .tmodal__panel { transform: none; }
}

/* ---------- Banda de campaña (espresso) ---------- */
.quote-band {
  background: var(--espresso);
  color: var(--on-dark);
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  max-width: 16ch;
  margin-inline: auto;
  text-wrap: balance;
}
.quote-band blockquote .accent { color: var(--gold-2); font-style: italic; }
.quote-band cite {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.quote-band cite::before, .quote-band cite::after { content: ""; width: 28px; height: 1px; background: var(--gold-2); }

/* ---------- Quiénes somos (teaser) ---------- */
.about { background: var(--cream); }
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.about__figure { position: relative; }
.about__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.about__creds {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.about__creds li { display: flex; align-items: center; gap: 0.7rem; color: var(--ink-2); font-size: 0.92rem; }
.about__creds svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.about__cta { margin-top: 2rem; }

/* ---------- Contacto / ubicación ---------- */
.contact { background: var(--cream-2); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}
.contact__info { display: flex; flex-direction: column; }
.contact__list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__item svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.contact__item h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin-bottom: 0.2rem; }
.contact__item p, .contact__item a { font-size: 1.02rem; color: var(--ink); }
.contact__item a:hover { color: var(--gold); }
.contact__socials { display: flex; gap: 0.75rem; margin-top: auto; padding-top: 2rem; }
.contact__socials a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out);
}
.contact__socials a svg { width: 20px; height: 20px; }
@media (hover: hover) { .contact__socials a:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); } }
.contact__cta { margin-top: 2rem; }
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  background: var(--cream-3);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.25) contrast(1.02); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark-2); padding-block: clamp(3.5rem, 2.5rem + 4vw, 5rem) 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 3vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand .brand { margin-bottom: 1.1rem; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--on-dark); max-width: 28ch; line-height: 1.4; }
.footer__col h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; margin-bottom: 1.1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a, .footer__col p { font-size: 0.94rem; color: var(--on-dark-2); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--on-dark); }
.footer__socials { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.footer__socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--on-dark-2); transition: background-color .2s ease,color .2s ease; }
.footer__socials a svg { width: 18px; height: 18px; }
@media (hover: hover) { .footer__socials a:hover { background: var(--espresso-3); color: var(--on-dark); } }

.footer__legal {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--on-dark-2);
  opacity: 0.85;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.82rem;
}
.footer__bottom a:hover { color: var(--on-dark); }

/* ---------- Botón flotante WhatsApp ---------- */
.fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: var(--z-fab);
  width: 58px; height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-2);
  color: #2a2018;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px -8px rgba(34, 26, 19, 0.55);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
}
.fab svg { width: 30px; height: 30px; }
.fab:active { transform: scale(0.94); }
@media (hover: hover) { .fab:hover { background: var(--gold-soft); transform: translateY(-2px); } }

/* ---------- Páginas internas (encabezado) ---------- */
.page-hero {
  background: var(--espresso);
  color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(3rem, 5vw, 5rem));
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}
.page-hero__crumb { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 1.1rem; }
.page-hero__crumb a:hover { color: var(--gold-2); }
.page-hero h1 { color: var(--on-dark); font-size: clamp(2.3rem, 1.6rem + 3vw, 3.8rem); }
.page-hero p { margin-top: 1.1rem; color: var(--on-dark-2); max-width: 60ch; font-size: 1.1rem; }

/* Prosa (legal / contenido) */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.5rem; margin-bottom: 0.9rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.prose p { color: var(--ink-2); margin-bottom: 1.1rem; }
.prose ul.bullets { margin: 0 0 1.2rem; padding-left: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.prose ul.bullets li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .note { font-size: 0.9rem; color: var(--ink-2); border-left: none; background: var(--cream-2); padding: 1rem 1.25rem; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--ink);
}
.faq__icon { width: 22px; height: 22px; flex: none; position: relative; color: var(--gold); transition: transform 0.3s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; }
.faq__icon::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 16px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-out); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { color: var(--ink-2); padding-bottom: 1.5rem; max-width: 66ch; }

/* ---------- Servicios: switch Faciales/Corporales ---------- */
.services__switchbar { display: flex; justify-content: center; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.services__switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--cream-3);
  border-radius: var(--radius-pill);
}
.services__switch button {
  padding: 0.6em 1.7em;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.3s var(--ease-out);
}
.services__switch button[aria-selected="true"] { background: var(--espresso); color: var(--on-dark); }
.service-card[hidden] { display: none; }

/* ---------- Resultados: comparador antes/después ---------- */
.results { background: var(--cream); }
.ba {
  position: relative;
  --pos: 50%;
  width: 100%;
  max-width: 440px;
  margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) auto 0;
  aspect-ratio: 3 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label {
  position: absolute; top: 1rem; z-index: 2;
  padding: 0.35em 0.9em;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(40, 34, 26, 0.55);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ba__label--before { left: 1rem; }
.ba__label--after { right: 1rem; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none; z-index: 2; }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 3;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--espresso);
  font-size: 0.95rem; letter-spacing: 1px;
  pointer-events: none;
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.results__note { margin-top: 1.75rem; font-size: 0.85rem; color: var(--ink-2); max-width: 56ch; margin-inline: auto; }
.results__cta { margin-top: 2rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20, 18, 22, 0.93);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 100%; max-height: 88vh; width: auto; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark);
  border: 1px solid rgba(241, 238, 240, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(241, 238, 240, 0.08);
  transition: background-color 0.2s ease;
}
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; width: 20px; height: 1.6px; background: currentColor; }
.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }
@media (hover: hover) { .lightbox__close:hover { background: rgba(241, 238, 240, 0.16); } }

/* CTA final reutilizable */
.cta-strip { background: var(--espresso); color: var(--on-dark); text-align: center; }
.cta-strip h2 { color: var(--on-dark); }
.cta-strip p { color: var(--on-dark-2); margin: 1rem auto 2rem; max-width: 52ch; }

/* ---------- Reveal (motion progresivo) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Entrada del hero (al cargar) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: heroIn 0.9s var(--ease-out) backwards; }
  .hero__title { animation-delay: 0.05s; }
  .hero__text { animation-delay: 0.16s; }
  .hero__cta { animation-delay: 0.27s; }
  .hero__signature { animation-delay: 0.38s; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--gold-2); color: var(--espresso);
  padding: 0.7rem 1.1rem; border-radius: var(--radius);
  z-index: var(--z-overlay);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  /* La navegación tiene 6 ítems: se colapsa a hamburguesa antes para no apretarse */
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: var(--z-nav);
    background: rgba(75, 70, 62, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    padding: 1.25rem var(--gutter) 2rem;
    display: grid;
    gap: 0.35rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  }
  .mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a {
    color: var(--on-dark);
    font-size: 1.05rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .mobile-menu a:last-of-type { border-bottom: none; }
  .mobile-menu .btn { margin-top: 1rem; min-height: 50px; }
}
@media (min-width: 1025px) { .mobile-menu { display: none; } }

@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .value { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-inline: 0; }
  .value:first-child { border-top: none; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.25rem; padding-bottom: 1.75rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-top: 1.25rem; }
}

/* =============================================================
   Pulido móvil (el sitio se ve casi siempre en celular)
   ============================================================= */
html { -webkit-tap-highlight-color: transparent; }
@media (max-width: 760px) {
  /* Objetivos táctiles cómodos */
  .btn { min-height: 48px; }
  .btn--sm { min-height: 44px; }
  .nav__actions { gap: 0.5rem; }

  .hero { min-height: 680px; }
  .hero__cta .btn { flex: 1 1 auto; }

  /* Tratamientos: 2 por fila para acortar la página */
  .services__grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .service-card__body { padding: 0.85rem 0.8rem 0.95rem; }
  .service-card__title { font-size: 1.02rem; line-height: 1.15; }
  .service-card__desc {
    font-size: 0.8rem; line-height: 1.45; margin-top: 0.4rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .service-card__price { margin-top: 0.8rem; padding-top: 0.75rem; gap: 0.35rem; flex-wrap: wrap; }
  .price-now { font-size: 1.18rem; }
  .price-was, .price-note { font-size: 0.72rem; }
  .price-quote { font-size: 0.98rem; }
  .service-card__cta { margin-top: 0.8rem; }
  .service-card__cta.btn--sm { padding: 0.65em 0.4em; font-size: 0.8rem; min-height: 42px; }

  /* Footer más compacto */
  .site-footer { padding-block: 2.5rem 4.25rem; }
  .footer__tag { font-size: 1rem; }
  .footer__col h4 { margin-bottom: 0.65rem; }
  .footer__col ul { gap: 0.5rem; }
  .footer__legal { margin-top: 1rem; font-size: 0.72rem; line-height: 1.6; }

  /* Mapa más bajo en móvil */
  .contact__map, .contact__map iframe { min-height: 300px; }
}
@media (max-width: 760px) {
  .hero__bg img {
    object-fit: contain;
    object-position: center top;
  }

  .hero {
    background: #2b241d;
  }
}