/* =============================================================
   SKIN REJUVENESS BY BOMEDICAL — Dra. Brenda Lopez Carmona
   Medicina estetica avanzada · San Jeronimo Lidice, CDMX
   Base: plantilla de medicina estetica de la skill creador-de-webs.
   Paleta tomada del consultorio real: crema, hueso, arena, nogal y
   dorado champan. Cero azul clinico, cero blanco frio, cero verde salud.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #FAF6F1;             /* crema — fondo principal, base de todo el sitio */
  --bg-2: #F2EBE2;           /* hueso — fondo de secciones alternas */
  --bg-3: #E5D8C6;           /* arena — papel tapiz / bloques calidos */
  --paper: #FFFFFF;          /* tarjetas y contraste puntual */
  --blush: #F0DEDA;          /* rosa nude muy suave — fondos de tarjetas */
  --taupe: #C9B9A6;          /* bordes, divisores */
  --nogal: #7C4A2C;          /* madera calida — acentos estructurales, no texto */
  --ink: #1E1C1A;            /* carbon — tipografia de titulares (color del logo) */
  --ink-soft: #55504A;       /* gris texto — cuerpo */
  --ink-mute: #857E75;       /* texto mute / labels */
  --accent: #C6A15B;         /* dorado champan — acento principal */
  --accent-2: #A8843F;       /* dorado oscuro — hover */
  --accent-light: #E0C89A;   /* dorado claro — degradados suaves */
  --accent-bg: rgba(198,161,91,0.08);
  --nav-bg: #FAF0DB;         /* crema del fondo de logo.png — color del navbar */
  --gold: #C6A15B;
  --cream: #FAF6F1;
  --line: rgba(30,28,26,0.12);

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Jost', -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 72px;
  --section-pad: 50px;   /* fijo, NO clamp, NO vw — ver gotcha B.13. Reemplaza al viejo --section-py (clamp responsive) */
  --container: min(1200px, 90vw);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: var(--cream); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.section-inner {
  width: var(--container);
  margin: 0 auto;
}
/* SECTION SPACING — NO CAMBIAR (ver gotcha B.13). Padding vertical fijo
   (--section-pad, 50px, nunca clamp()/vw) en CADA sección. Reemplaza al
   antiguo --section-py responsive de la web de referencia (Dra. Lucero
   Roman usaba clamp(4rem, 8vw, 7rem), lo cual variaba con el viewport —
   ver B.13 v1). Acá queda fijo, igual que en el resto de la skill. */
.section {
  padding: var(--section-pad) 0;
}
.section-kicker {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink-mute);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.section-title--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
/* CTA primario: carbon con texto crema. Nunca verde de WhatsApp. */
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
}
.btn-primary:hover {
  background: #2f2b27;
  border-color: #2f2b27;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30,28,26,0.22);
}
/* CTA alternativo: dorado con texto carbon. */
.btn-gold {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--accent);
  font-weight: 600;
}
.btn-gold:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(198,161,91,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

/* =============================================================
   5. NAV
   ============================================================= */
/* El navbar va del mismo color que el fondo del archivo logo.png, para que la
   imagen del logo se funda con la barra y no se vea como un recuadro pegado.
   Si algun dia se cambia el logo, hay que re-muestrear ese color y ajustar
   --nav-bg. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(30,28,26,0.08);
  transition: box-shadow 0.3s;
}
.nav.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
/* Logo de marca. La imagen trae su propio fondo crema, identico al del navbar,
   asi que se funde con la barra sin bordes ni recuadro. */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(198,161,91,0.35);
}


/* =============================================================
   6. HERO — NO CAMBIAR el padding-top (empuja el contenido debajo
   del nav fijo). No usa --section-pad, ver gotcha B.13.
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
/* Fondo de respaldo: si todavia no hay foto real de la doctora / del
   consultorio, el hero muestra el papel tapiz de arena con el motivo de
   rostros a una linea del consultorio, y no una imagen rota. */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url('assets/img/motivo-lineas.svg') repeat,
    linear-gradient(140deg, var(--bg-3) 0%, var(--blush) 55%, var(--bg-2) 100%);
  background-size: 260px 320px, auto;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250,246,241,0.94) 0%, rgba(250,246,241,0.78) 50%, rgba(250,246,241,0.38) 100%);
}
/* Glow dorado suave, como la iluminacion LED en cornisas del consultorio. */
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,161,91,0.22) 0%, rgba(198,161,91,0) 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 50px 0;   /* ver gotcha B.13: aire propio del hero, fijo en px */
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
/* Segundo renglon del eyebrow: la ciudad, en el mismo dorado que la linea
   de arriba, solo separada en su propio renglon. */
.hero-kicker span {
  display: block;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-mute);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(30,28,26,0.15);
  max-width: 540px;
  width: 100%;
  aspect-ratio: 1/1;   /* foto del equipo completo: cuadrada para que entren las cinco */
  background:
    url('assets/img/motivo-lineas.svg') repeat,
    linear-gradient(160deg, var(--bg-3) 0%, var(--taupe) 100%);
  background-size: 200px 250px, auto;
  border: 1px solid rgba(198,161,91,0.35);
}
.hero-img-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
}

/* =============================================================
   7. TRUST STRIP — banda pegada al hero, padding propio fijo en rem
   (no usa --section-pad, no es clamp/vw — cumple igual el gotcha B.13)
   ============================================================= */
.trust-strip {
  background: var(--paper);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}
.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-text {
  display: flex;
  flex-direction: column;
}
.trust-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.trust-text span {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* =============================================================
   9. TESTIMONIALS
   ============================================================= */
.testimonials {
  background: var(--bg-2);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: transform 0.4s var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.testimonial-stars svg {
  width: 18px; height: 18px;
  fill: var(--accent);
  stroke: none;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
}
.testimonial-author strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* =============================================================
   10. TREATMENTS
   ============================================================= */
.treatments {
  background: var(--bg-2);
}
/* La grilla de tratamientos usa un contenedor mas ancho que el resto de
   la pagina para que las 8 tarjetas entren de a 4 por fila y aun asi sean
   grandes. Fijo en px/vw, sin clamp(). */
.treatments .section-inner { width: min(1440px, 94vw); }
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
/* Cards de foto a sangre (referencia: Lima A Esthetic): la imagen ocupa
   toda la tarjeta y un degradado carbon la cubre desde abajo para que el
   texto blanco siempre se lea. La card entera es el enlace a la
   micro-landing del tratamiento; no hay boton "ver el tratamiento". */
.treatment-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 8px 24px rgba(30,28,26,0.10);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 46px rgba(30,28,26,0.18);
}
.treatment-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.treatment-card__img { position: absolute; inset: 0; }
.treatment-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.treatment-card:hover .treatment-card__img img { transform: scale(1.06); }
.treatment-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,28,26,0.95) 0%, rgba(30,28,26,0.86) 22%, rgba(30,28,26,0.5) 42%, rgba(30,28,26,0.08) 62%, rgba(30,28,26,0) 78%);
}
.treatment-card__index {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  z-index: 2;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}
.treatment-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.3rem 1.35rem;
}
.treatment-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  color: #FFF;
  margin-bottom: 0.35rem;
}
.treatment-card p {
  font-size: 0.83rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

/* =============================================================
   11. ABOUT
   ============================================================= */
.about {
  background: var(--bg-2);
}
.about .section-kicker,
.about .section-title {
  text-align: left;
  margin-left: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-img img {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.about-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.about-role {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.about-bio {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-creds {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.about-creds li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.about-creds svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Resto del equipo, debajo de la Dra. Brenda */
.team {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}
.team-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  margin-bottom: 2.2rem;
}
.team-title em {
  font-style: italic;
  color: var(--accent);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.team-card {
  margin: 0;
}
.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  display: block;
}
.team-card figcaption {
  margin-top: 0.9rem;
  text-align: center;
}
.team-card figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
}
.team-card figcaption span {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* =============================================================
   12. WHY ME
   ============================================================= */
.why-me {
  background: var(--bg);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease-out);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: 0 12px 40px rgba(198,161,91,0.08);
}
.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.why-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.why-card p {
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* =============================================================
   13. FAQ
   ============================================================= */
.faq {
  background: var(--bg-2);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--accent); }
.faq-q-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}
.faq-q-icon::before,
.faq-q-icon::after {
  content: '';
  position: absolute;
  background: var(--ink-mute);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.faq-q-icon::before {
  width: 14px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q-icon::after {
  width: 2px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.is-open .faq-q-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}
.faq-a-inner {
  padding: 0 0 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* =============================================================
   14. CONTACT
   ============================================================= */
.contact {
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.contact-item p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.contact-item a {
  color: var(--accent);
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--accent-2); }
.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}
.contact-social a svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.contact-social a:hover {
  background: var(--accent);
}
.contact-social a:hover svg { color: #fff; }
.contact-map iframe {
  width: 100%;
  border-radius: 16px;
}

/* =============================================================
   15. CTA FINAL — usa --section-pad igual que el resto (antes usaba
   --section-py). NO CAMBIAR.
   ============================================================= */
.cta-final {
  background: var(--bg-2);
  padding: var(--section-pad) 0;
}
.cta-final-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
.cta-final-title em { font-style: italic; color: var(--accent); }
.cta-final-sub {
  font-size: 1rem;
  color: var(--ink-mute);
  margin-bottom: 2rem;
}
.cta-final-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   16. FOOTER — padding fijo propio, no usa --section-pad (es el
   final de la pagina, corta ahi). NO CAMBIAR.
   ============================================================= */
.footer {
  background: var(--ink);
  color: rgba(250,246,241,0.7);
  padding: 3rem 0 2rem;
}
.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-light);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.88rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-social__title {
  flex-basis: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(250,246,241,0.9);
  margin-bottom: 0.2rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(250,246,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}
.footer-social a svg {
  width: 20px;
  height: 20px;
  color: rgba(250,246,241,0.7);
}
.footer-social a:hover {
  border-color: var(--accent-light);
  background: rgba(198,161,91,0.15);
}
.footer-social a:hover svg { color: var(--accent-light); }
.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(250,246,241,0.35);
  padding-top: 2rem;
  border-top: 1px solid rgba(250,246,241,0.08);
  margin-top: 1rem;
}

/* =============================================================
   17. WHATSAPP FLOAT
   ============================================================= */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  /* Dorado sobre carbon: el verde de marca de WhatsApp queda fuera de paleta. */
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(198,161,91,0.45);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover {
  transform: scale(1.1);
  background: var(--ink);
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(30,28,26,0.3);
}

/* =============================================================
   18. REVEAL ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance animation */
.hero-text,
.hero-img-card {
  opacity: 0;
  transform: translateY(40px);
}
.hero-text.hero-animate-in {
  animation: heroFadeIn 1s var(--ease-out) forwards;
}
.hero-img-card.hero-animate-in {
  animation: heroFadeIn 1.2s var(--ease-out) forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-text.hero-animate-in,
.hero-img-card.hero-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   19. RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-img-wrap { order: -1; }
  .hero-img-card { max-width: 440px; }

  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }


  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }


  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about .section-kicker, .about .section-title { text-align: center; margin-left: auto; }
  .about-img { max-width: 400px; margin: 0 auto; }
  .about-creds { align-items: center; }
  /* 5 integrantes: en flex para que la fila incompleta quede centrada (3 + 2) */
  .team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .team-card { width: calc((100% - 2rem) / 3); }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-links { align-items: center; }

  /* En celular y tablet el navbar tiene dos filas: arriba el logo y Agendar,
     abajo los 4 links principales siempre visibles (un menu escondido tras un
     icono casi no se toca). Se esconde al bajar y reaparece al subir
     (main.js -> initNav). --nav-h crece para que el hero lo respete. */
  :root { --nav-h: 94px; }
  .nav { transition: box-shadow 0.3s, transform 0.35s var(--ease-out); }
  .nav.is-hidden { transform: translateY(-100%); }
  .nav-inner {
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 0;
  }
  .nav-logo { height: 58px; }
  .nav-logo img { height: 40px; }
  .nav-links {
    order: 3;
    width: 100%;
    height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid rgba(30,28,26,0.08);
  }
  .nav-links a { font-size: 0.8rem; letter-spacing: 0.02em; }
  .nav-links a::after { bottom: -3px; }
  .nav-links a:nth-child(n+5) { display: none; }
  .nav-cta { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
}

@media (max-width: 540px) {
  .trust-strip-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .trust-item { justify-content: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .btn { padding: 0.75rem 1.6rem; font-size: 0.9rem; }
  .hero-img-card { max-width: 100%; }
  .team-card { width: calc((100% - 1rem) / 2); }
}

/* =============================================================
   20. Reduced motion (intrusive only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   21. COMPONENTES PROPIOS DE SKIN REJUVENESS
   Bloques que no venian en la plantilla base y que pide el brief:
   metodo en 3 pasos, precios "desde", pruebas geneticas, catalogo
   completo por categoria, promo del mes, embarazo, instalaciones,
   horarios y bloque legal del footer.
   ============================================================= */

/* ---- Eyebrow y titulo alineados a la izquierda (secciones de 2 columnas) ---- */
.kicker-left { text-align: left; }
.title-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ---- 21.1 EL METODO (3 pasos) ---- */
.method { background: var(--bg); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.method-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.25rem 2rem 2rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.method-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  box-shadow: 0 14px 40px rgba(198,161,91,0.16);
}
.method-step__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.method-step__num::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: var(--accent);
  margin-top: 0.75rem;
}
.method-step h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.method-step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---- 21.2 PIE DE LA TARJETA DE TRATAMIENTO ----
   Una sola linea dentro del degradado: el precio a la izquierda y
   "Ver el tratamiento" pegado a la derecha, alineados por su linea base.
   El CTA es un <span>, no un enlace: la card entera ya es el <a>, asi
   que el clic funciona en cualquier punto de la tarjeta. */
.treatment-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.treatment-card__price {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.treatment-card__price s {
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-left: 0.3rem;
}
.treatment-card__cta {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(224,200,154,0.6);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.treatment-card:hover .treatment-card__cta {
  color: #FFF;
  border-color: var(--accent-light);
}
/* La nota de promo va arriba del precio, no en la misma linea. */
.treatment-card__sale-note {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.treatment-card__sale-note + .treatment-card__foot { margin-top: 0.25rem; }
/* Cuatro por fila es lo que se pidio para desktop; abajo de 1100px la
   tarjeta quedaria demasiado angosta y baja a 3, 2 y 1. */
@media (max-width: 1100px) { .treatments-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .treatments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .treatments-grid { grid-template-columns: 1fr; } }

.treatments-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 2rem;
}

/* ---- 21.3 PRUEBAS GENETICAS (bloque diferencial full-width) ---- */
/* El fondo es el papel tapiz REAL del consultorio, recortado de la foto de la
   doctora (assets/img/doctor-hero.jpg) y convertido en un mosaico que repite
   sin costuras. Encima va un velo crema para que el texto se lea. Si algun dia
   se cambia la foto, el mosaico sigue sirviendo: es un archivo aparte. */
.genetics {
  background:
    linear-gradient(rgba(250,246,241,0.58), rgba(250,246,241,0.58)),
    url("assets/img/tapiz-web.jpg") no-repeat center / cover;
  border-top: 1px solid rgba(124,74,44,0.18);
  border-bottom: 1px solid rgba(124,74,44,0.18);
}
.genetics-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.genetics .section-kicker { color: var(--nogal); }
.genetics .section-title { color: var(--ink); }
.genetics .section-title em { color: var(--nogal); }
.genetics p {
  font-size: 1.02rem;
  color: #4a3a2c;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ---- 21.4 CATALOGO COMPLETO (acordeon por categoria) ---- */
.catalog { background: var(--bg); }
.catalog-list {
  max-width: 880px;
  margin: 0 auto;
}
.cat-item { border-bottom: 1px solid var(--line); }
.cat-item:first-child { border-top: 1px solid var(--line); }
.cat-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s;
}
.cat-q:hover { color: var(--accent-2); }
.cat-q-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}
.cat-q-icon::before,
.cat-q-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.cat-q-icon::before {
  width: 14px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cat-q-icon::after {
  width: 2px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cat-item.is-open .cat-q-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.cat-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.cat-a-inner { padding: 0 0 1.5rem; }
.cat-a-inner ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
}
.cat-a-inner li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}
.cat-a-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.catalog-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---- 21.5 PROMO DEL MES (banda editable) ---- */
.promo {
  background: var(--ink);
  color: var(--cream);
}
.promo-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.promo-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.1rem;
}
.promo h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.promo h2 em { font-style: italic; color: var(--accent-light); }
.promo p {
  font-size: 0.98rem;
  color: rgba(250,246,241,0.72);
  line-height: 1.75;
  max-width: 46ch;
}
.promo-price {
  text-align: center;
  border: 1px solid rgba(198,161,91,0.4);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  background: rgba(198,161,91,0.08);
}
.promo-price__old {
  display: block;
  font-size: 1rem;
  color: rgba(250,246,241,0.5);
  text-decoration: line-through;
  margin-bottom: 0.2rem;
}
.promo-price__new {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
}
.promo-price .btn { width: 100%; justify-content: center; }

/* ---- 21.6 MITO VS VERDAD ----
   Tarjetas de foto a sangre que giran en 3D: al frente el mito, al dorso
   la respuesta. Hover en desktop, tap en tactil (main.js -> initMyths). */
.myths { background: var(--blush); }
.myths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.myth { perspective: 1500px; min-height: 340px; cursor: pointer; outline: none; }
.myth__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  transition: transform 0.85s var(--ease-out);
  transform-style: preserve-3d;
}
@media (hover: hover) {
  .myth:hover .myth__inner { transform: rotateY(180deg); }
}
.myth:focus-visible .myth__inner,
.myth.is-flipped .myth__inner { transform: rotateY(180deg); }
/* Cada cara se oculta con visibility a mitad del giro (0.09s es cuando
   la curva pasa los 90deg), ademas del backface-visibility: asi el mito y
   la verdad nunca se ven encimados, ni en iOS (donde el opacity del
   reveal aplana el 3D). */
.myth__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(30,28,26,0.12);
  transition: visibility 0s linear 0.09s;
}
.myth__face--back { visibility: hidden; }
@media (hover: hover) {
  .myth:hover .myth__face--front { visibility: hidden; }
  .myth:hover .myth__face--back { visibility: visible; }
}
.myth:focus-visible .myth__face--front,
.myth.is-flipped .myth__face--front { visibility: hidden; }
.myth:focus-visible .myth__face--back,
.myth.is-flipped .myth__face--back { visibility: visible; }
.myth__face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.myth__face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,28,26,0.94) 8%, rgba(30,28,26,0.72) 48%, rgba(30,28,26,0.4) 100%);
}
.myth__face--back { transform: rotateY(180deg); }
.myth__face--back::after {
  background: linear-gradient(to top, rgba(30,28,26,0.96) 8%, rgba(30,28,26,0.9) 60%, rgba(30,28,26,0.74) 100%);
}
.myth__face > *:not(img) { position: relative; z-index: 2; }
.myth__tag {
  align-self: flex-start;
  order: -1;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(240,222,218,0.5);
  color: var(--blush);
}
.myth__tag--true { border-color: rgba(224,200,154,0.6); color: var(--accent-light); }
.myth__text {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
  color: #FBF7F2;
}
.myth__face--back .myth__text {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(251,247,242,0.88);
  font-weight: 300;
}
.myth__hint {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251,247,242,0.55);
}
.myths-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-style: italic;
}
/* =============================================================
   BOOKING
   ============================================================= */
.booking {
  background: var(--ink);
  color: #f8f8f6;
}
.booking .section-kicker {
  color: var(--gold);
}
.booking .section-title {
  color: #f8f8f6;
}
.booking .section-title em {
  color: var(--gold);
}
.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.booking-widget {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.booking-widget-header {
  margin-bottom: 1.5rem;
}
.booking-widget-header h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.booking-widget-header p {
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.booking-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.booking-month-label {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}
.booking-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}
.booking-nav:hover { background: var(--bg-2); }
.booking-nav:disabled { opacity: 0.3; cursor: default; }
.booking-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
.booking-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}
.booking-days button {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.booking-days button:hover:not(:disabled):not(.is-selected) {
  background: var(--bg-2);
}
.booking-days button:disabled {
  opacity: 0.25;
  cursor: default;
}
.booking-days button.is-today {
  border: 2px solid var(--accent);
  font-weight: 700;
}
/* Hoy no se puede reservar, pero se sigue viendo marcado */
.booking-days button.is-today:disabled {
  opacity: 0.6;
}
.booking-days button.is-selected {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.booking-slots-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.booking-optional {
  font-weight: 400;
  color: var(--ink-mute);
}
.booking-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.slot {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.slot:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(184,148,63,0.08);
}
.slot:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: default;
}
.slot.is-selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.slot--busy {
  opacity: 0.3;
  text-decoration: line-through;
  cursor: default;
}
.booking-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.booking-input:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-full { width: 100%; }
.booking-confirm {
  margin-top: 0.25rem;
}
.booking-success {
  text-align: center;
  padding: 2rem 0;
}
.booking-success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.booking-success-sub {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-top: 0.5rem;
}
.booking-demo-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-top: 1rem;
}
.booking-contact {
  position: relative;
}
.booking-contact-inner {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
}
.booking-contact-kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.booking-contact-inner h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.booking-contact-inner p {
  font-size: 0.95rem;
  color: rgba(248,248,246,0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.booking-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.3s;
  margin-bottom: 0.75rem;
}
.booking-wa-btn:hover { background: #1fb855; }
.booking-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f8f8f6;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.3s;
  margin-bottom: 1.5rem;
}
.booking-phone-btn:hover { background: rgba(255,255,255,0.08); }
.booking-info-item {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.booking-info-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.booking-info-item span {
  font-size: 0.8rem;
  color: rgba(248,248,246,0.6);
}

@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   RESULTADOS (ANTES/DESPUES)
   ============================================================= */
.results {
  background: var(--bg);
}
.results .section-inner {
  width: min(1395px, 94vw);
}
/* 5 resultados en una sola fila, chicos, usando todo el ancho. En pantallas
   medianas pasa a 3 arriba y 2 abajo, con la fila incompleta centrada. */
.results-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.results-grid .result-card { width: calc((100% - 5rem) / 5); }
@media (max-width: 1100px) {
  .results-grid .result-card { width: calc((100% - 2.5rem) / 3); }
}
.result-card {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.result-name {
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Antes/despues con divisor deslizable. Recuadro vertical 4:5, igual para
   los cinco. Las fotos van completas (sin recortar) y cada una se acomoda
   dentro del recuadro con tres valores en su style del HTML:
     --zoom  mas grande = mas cerca (1 = la foto justo cubre el recuadro;
             menos de 1 deja bordes vacios)
     --x     mueve la foto a la derecha (+) o a la izquierda (-)
     --y     mueve la foto hacia abajo (+) o hacia arriba (-)
   Asi se alinea el antes con el despues para que el divisor no la haga
   "saltar". El despues queda siempre detras y el antes se recorta segun
   --pos (main.js -> initBA). */
.ba-slider {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  outline: none;
}
.ba-slider:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
/* La foto se dibuja entera, centrada y cubriendo el recuadro: las verticales
   ocupan todo el ancho y las horizontales (class="ba-foto-ancha") todo el
   alto. --x y --y son % del tamano de la propia foto. */
.ba-before img,
.ba-after img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%) translate(var(--x, 0%), var(--y, 0%)) scale(var(--zoom, 1));
  -webkit-user-drag: none;
}
.ba-before img.ba-foto-ancha,
.ba-after img.ba-foto-ancha {
  width: auto;
  height: 100%;
}
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle-line {
  width: 2px;
  flex: 1;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}
.ba-handle-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ba-handle-circle svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
/* Firma de la doctora, por encima de las dos fotos y quieta: no se mueve con
   el divisor, asi cualquier captura sale firmada. Discreta: no debe competir
   con el resultado que se esta mostrando, asi que va abajo, casi a la altura
   de las etiquetas Antes/Despues, para no tapar la cara. */
.ba-slider .ba-watermark {
  position: absolute;
  top: 85%;
  left: 50%;
  width: 46%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-18deg);
  opacity: 0.55;
  z-index: 4;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-label {
  position: absolute;
  bottom: 12px;
  z-index: 6;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ba-label--before {
  left: 12px;
  background: var(--ink);
  color: #fff;
}
.ba-label--after {
  right: 12px;
  background: var(--accent);
  color: #fff;
}
.results-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: 1.75rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .results-grid .result-card { width: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 540px) {
  .results-grid .result-card { width: 100%; }
}

/* ---- Banda puente al catalogo completo ----
   Todo apilado y centrado: titulo, bajada y boton en el eje del medio, con el
   boton pegado al texto en vez de mandado al extremo derecho. ---- */
.treatments-more {
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding: 44px 0;
  text-align: center;
}
.treatments-more__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: min(720px, 90vw);
}
.treatments-more h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.treatments-more p {
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin: 0;
  max-width: 46ch;
}
.treatments-more .btn {
  padding: 1.05rem 2.5rem;
  font-size: 1.02rem;
}

/* ---- SUBPAGINA: todos los tratamientos ---- */
/* Hero a dos columnas: el titulo respira a la izquierda y la bajada mas el
   CTA ocupan la derecha, asi el bloque se estira a lo ancho en escritorio
   en vez de quedar comprimido en una caja angosta. En movil se apila. */
.tp-hero-inner--wide {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: end;
}
.tp-hero-inner--wide h1 { margin-bottom: 0; }
.tp-hero-aside {
  padding-bottom: 0.4rem;
  border-left: 1px solid rgba(30,28,26,0.12);
  padding-left: 2.5rem;
}
.tp-hero-aside .tp-lead { margin-bottom: 1.5rem; }

.catalog-page { background: var(--bg); }

/* Maquetado en columnas (no grid): cada tarjeta ocupa exactamente lo que mide
   su contenido y la siguiente arranca pegada debajo. Con grid quedaban huecos
   porque todas las celdas de una fila se estiran a la mas alta. */
.cat-cards {
  column-count: 3;
  column-gap: 1.5rem;
}
.cat-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.75rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198,161,91,0.5);
  box-shadow: 0 14px 44px rgba(0,0,0,0.09);
}
.cat-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.cat-card__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.cat-card__head h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0;
}
.cat-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cat-card li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 1.15rem;
  position: relative;
  line-height: 1.5;
}
.cat-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.catalog-page__note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.catalog-page__note a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

@media (max-width: 1100px) {
  .cat-cards { column-count: 2; }
}
@media (max-width: 900px) {
  .tp-hero-inner--wide { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
  .tp-hero-inner--wide h1 { margin-bottom: 0.5rem; }
  .tp-hero-aside { border-left: 0; padding-left: 0; }
}
@media (max-width: 700px) {
  .cat-cards { column-count: 1; }
}

/* ---- Enlace al catalogo completo desde el home ---- */

/* ---- 21.7 EL ESPACIO (texto + video vertical) ---- */
.space { background: var(--bg); }
.space .section-kicker,
.space .section-title {
  text-align: left;
  margin-left: 0;
}
.space-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}
.space-lead {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.6rem;
  max-width: 52ch;
}
.space-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.space-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.space-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.space-video {
  position: relative;
  margin: 0;
  aspect-ratio: 9/16;
  max-height: 620px;
  border-radius: 20px;
  overflow: hidden;
  background:
    url("assets/img/motivo-lineas.svg") repeat,
    linear-gradient(150deg, var(--bg-3) 0%, var(--taupe) 100%);
  background-size: 190px 235px, auto;
  border: 1px solid rgba(198,161,91,0.28);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.space-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* El atributo controlslist="nofullscreen ..." solo DESACTIVA esos botones, los
   sigue dibujando en gris. Para que desaparezcan hay que ocultarlos a mano.
   Estos selectores son propios de Chrome/Edge/Safari; Firefox no los entiende,
   ahi el boton de pantalla completa sigue visible y no hay forma de sacarlo.
   Quedan solo play/pausa, linea de reproduccion, tiempo y volumen. */
.space-video video::-webkit-media-controls-fullscreen-button,
.space-video video::-webkit-media-controls-overflow-button,
.space-video video::-webkit-media-controls-toggle-closed-captions-button {
  display: none !important;
}

@media (max-width: 900px) {
  .space-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .space-video {
    max-height: 70vh;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---- 21.8 OPINIONES: enlaces de prueba social ---- */
.reviews-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.reviews-links .btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.reviews-count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: 1.2rem;
}

/* ---- 21.9 UBICACION Y HORARIOS ---- */
.hours-block {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.4rem 0;
}
.hours-row span:last-child { color: var(--ink-mute); }
.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.payment-tags span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  background: var(--paper);
}

/* ---- 21.10 CTA FINAL ---- */
.cta-final {
  background:
    url("assets/img/motivo-lineas.svg") repeat,
    linear-gradient(135deg, var(--ink) 0%, #2b2622 100%);
  background-size: 300px 370px, auto;
  color: var(--cream);
}
.cta-final .cta-final-title { color: var(--cream); }
.cta-final .cta-final-title em { color: var(--accent-light); }
.cta-final .cta-final-sub { color: rgba(250,246,241,0.7); }
.cta-final-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(250,246,241,0.55);
}

/* ---- 21.11 FOOTER: credenciales y legales ---- */
.footer-creds {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(250,246,241,0.55);
}
.footer-creds strong {
  display: block;
  color: var(--accent-light);
  font-weight: 500;
}
.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(250,246,241,0.4);
  border-top: 1px solid rgba(250,246,241,0.08);
  padding-top: 1.75rem;
  margin-top: 1.5rem;
  max-width: 75ch;
}
.footer-legal a { color: rgba(250,246,241,0.6); text-decoration: underline; }
.footer .footer-copy { border-top: 0; padding-top: 1rem; margin-top: 0; }

/* ---- 21.12 SUBPAGINAS DE TRATAMIENTO ---- */
/* Fondo: el papel tapiz del consultorio (assets/img/tapiz.jpg, version
   comprimida tapiz-web.jpg). Va con cover y sin repeticion: una sola copia
   escalada al bloque, asi nunca aparece una juntura entre baldosas. Encima,
   un velo crema para que el titulo se lea. */
.tp-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 50px;
  background:
    linear-gradient(rgba(250,246,241,0.62), rgba(250,246,241,0.62)),
    url("assets/img/tapiz-web.jpg") no-repeat center / cover;
  border-bottom: 1px solid var(--line);
}
.tp-hero-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.tp-crumbs {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}
.tp-crumbs a { color: var(--accent-2); }
.tp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.tp-hero h1 em { font-style: italic; color: var(--accent-2); }
.tp-lead {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  max-width: 52ch;
}
.tp-hero-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 60px rgba(30,28,26,0.14);
  border: 1px solid rgba(198,161,91,0.3);
}
.tp-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-body { background: var(--bg); }
.tp-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}
.tp-prose h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2rem 0 0.8rem;
}
.tp-prose h2:first-child { margin-top: 0; }
.tp-prose p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.tp-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tp-prose ul li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.tp-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tp-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
}
.tp-aside h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.tp-aside > p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.tp-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.tp-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.tp-facts li strong { color: var(--ink); font-weight: 600; }
.tp-facts li span { color: var(--ink-mute); text-align: right; }
.tp-aside .btn { width: 100%; justify-content: center; }
.tp-related { background: var(--bg-2); }
.tp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tp-related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.tp-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-light);
  box-shadow: 0 10px 30px rgba(198,161,91,0.14);
}
.tp-related-card span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 0.5rem;
}

/* ---- 21.13 RESPONSIVE de los bloques propios ---- */
@media (max-width: 960px) {
  .method-grid { grid-template-columns: 1fr; }
  .promo-inner { grid-template-columns: 1fr; }
  .myths-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-item--wide { grid-column: span 2; aspect-ratio: 16/9; }
  .cat-a-inner ul { grid-template-columns: 1fr; }
  .tp-hero-inner { grid-template-columns: 1fr; }
  .tp-grid { grid-template-columns: 1fr; }
  .tp-aside { position: static; }
  .tp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .facilities-grid { grid-template-columns: 1fr; }
  .facility-item, .facility-item--wide { grid-column: span 1; aspect-ratio: 4/3; }
  .cat-q { font-size: 1.08rem; }
  .promo-price__new { font-size: 2.4rem; }
  .hours-row { flex-direction: column; gap: 0; }
  .tp-related-grid { grid-template-columns: 1fr; }
  .myths-grid { grid-template-columns: 1fr; }
}

/* La FAQ va justo despues de Opiniones, que ya es --bg-2. Se le da el
   blanco de tarjeta para que las dos secciones no se lean como un solo
   bloque continuo del mismo color. */
.faq { background: var(--paper); }
