/* ==========================================================================
   Aura · estilos
   1. Tokens   2. Base   3. Layout   4. Componentes   5. Secciones
   6. Animaciones   7. Responsive
   ========================================================================== */

/* 1. Tokens: colores y tipografías de la marca ------------------------------ */
:root {
  color-scheme: dark;

  --fondo: #0d0c0b;
  --fondo-suave: #161412;
  --oscuro: #161412;
  --texto: #f2ede4;
  --texto-suave: #b5aea3;
  --claro: #f2ede4;
  --claro-suave: #b5aea3;
  --acento: #c9a66b;
  --acento-claro: #c9a66b;
  --linea: rgba(242, 237, 228, 0.16);
  --linea-oscura: rgba(242, 237, 228, 0.16);
  --linea-campo: #5a554d;

  --font-title: "Bodoni Moda", "Bodoni MT", Didot, Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius: 0px;
  --header-h: 72px;
  --container: 1240px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

main {
  overflow-x: clip;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
}

h3 {
  font-size: 1.7rem;
}

h1 em,
h2 em {
  color: var(--acento);
}

p {
  margin: 0 0 1em;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

section[id] {
  scroll-margin-top: var(--header-h);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--oscuro);
  color: var(--claro);
}

.skip-link:focus {
  top: 12px;
}

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

.container--narrow {
  max-width: 920px;
}

.section {
  padding-block: 80px;
}

.section--soft {
  background: var(--fondo-suave);
}

.section--dark {
  background: var(--oscuro);
  color: var(--claro);
}

.section--dark p {
  color: var(--claro-suave);
}

.section--dark h2 em {
  color: var(--acento-claro);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head h2:last-child {
  margin-bottom: 0;
}

.section-head > p:last-child {
  margin-bottom: 0;
  color: var(--texto-suave);
  font-size: 1.12rem;
}

.section--dark .section-head > p:last-child {
  color: var(--claro-suave);
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

/* 4. Componentes ----------------------------------------------------------- */
.eyebrow {
  margin-bottom: 20px;
  color: var(--acento);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--acento-claro);
}

.lead {
  max-width: 34em;
  color: var(--texto-suave);
  font-size: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 34px;
  border: 1px solid var(--acento);
  border-radius: var(--radius);
  background: var(--acento);
  color: var(--fondo);
  font: 600 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  background: transparent;
  color: var(--acento);
}

.btn--light {
  border-color: var(--claro);
  background: var(--claro);
  color: var(--fondo);
}

.btn--light:hover {
  background: transparent;
  color: var(--claro);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Enlace con subrayado que se redibuja al pasar el cursor */
.link-more {
  display: inline-block;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-size 0.45s var(--ease);
}

.link-more:hover {
  background-position: 100% 100%;
  background-size: 0 1px;
}

.link-more--light {
  color: var(--claro);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  font: 500 1.35rem/1 var(--font-title);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Fotos en blanco y negro; recuperan el color al pasar el cursor */
main img {
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s;
}

.about-photo:hover img,
.treatment:hover img,
.carousel--gallery li:hover img {
  filter: none;
}

.logo span {
  margin-top: 4px;
  font: 500 0.56rem/1 var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Carrusel: scroll horizontal con anclaje; main.js suma arrastre y flechas */
.carousel {
  display: flex;
  gap: 20px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel > * {
  flex: none;
  scroll-snap-align: start;
}

.carousel.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.js .carousel {
  cursor: grab;
}

.carousel-nav {
  display: none;
  gap: 10px;
}

.js .carousel-nav {
  display: flex;
}

.carousel-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.carousel-nav button:hover {
  border-color: var(--acento);
  background: var(--acento);
  color: var(--fondo);
}

.carousel-nav svg,
.icon-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Marquee: main.js duplica el contenido y agrega .is-ready para animarlo */
.marquee {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee.is-ready .marquee-track {
  animation: marquee var(--marquee-time, 40s) linear infinite;
}

.marquee.is-ready:hover .marquee-track,
.marquee.is-ready:focus-within .marquee-track {
  animation-play-state: paused;
}

html:not(.js) .marquee,
.marquee:not(.is-ready) {
  overflow-x: auto;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 5. Secciones ------------------------------------------------------------- */

/* Encabezado: transparente sobre la foto, sólido al scrollear */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--linea);
  color: var(--claro);
  transition: background-color 0.4s;
}

.site-header.is-scrolled {
  background: rgba(13, 12, 11, 0.88);
  backdrop-filter: blur(12px);
}

.site-header.is-open {
  background: transparent;
  backdrop-filter: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-link {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: opacity 0.3s;
}

.icon-link:hover {
  opacity: 0.6;
}

.nav-toggle {
  display: grid;
  align-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  padding: 0 9px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* Menú a pantalla completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  background: var(--oscuro);
  color: var(--claro);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
}

.menu.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.7s var(--ease), visibility 0s;
}

.menu li {
  overflow: hidden;
  border-bottom: 1px solid var(--linea-oscura);
}

.menu li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  font: 400 clamp(2rem, 6.5vw, 4.2rem) / 1.1 var(--font-title);
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease), color 0.3s, padding-left 0.4s var(--ease);
  transition-delay: 0s;
}

.menu.is-open li a {
  transform: none;
}

.menu.is-open li:nth-child(1) a { transition-delay: 0.12s, 0s, 0s; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.18s, 0s, 0s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.24s, 0s, 0s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.3s, 0s, 0s; }
.menu.is-open li:nth-child(5) a { transition-delay: 0.36s, 0s, 0s; }
.menu.is-open li:nth-child(6) a { transition-delay: 0.42s, 0s, 0s; }

.menu li a:hover {
  padding-left: 14px;
  color: var(--acento-claro);
}

.menu small {
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: 0.2em;
  color: var(--acento-claro);
}

.menu-foot {
  margin: 32px 0 0;
  color: var(--claro-suave);
  font-size: 0.92rem;
}

/* Sin JavaScript no hay menú desplegable: se muestra siempre */
html:not(.js) .site-header {
  position: static;
  background: var(--oscuro);
}

html:not(.js) .nav-toggle {
  display: none;
}

html:not(.js) .menu {
  position: static;
  visibility: visible;
  clip-path: none;
  padding: 0 var(--gutter) 24px;
}

html:not(.js) .menu li a {
  transform: none;
  font-size: 1.5rem;
}

/* Primera pantalla */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: calc(var(--header-h) + 56px) var(--gutter) 56px;
  text-align: center;
}

.hero-eyebrow {
  margin: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 7.6vw, 7.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-sub p {
  max-width: 30em;
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.1rem;
}

.hero-media {
  position: relative;
  flex: 1;
  min-height: 46vh;
  margin-inline: var(--gutter);
  overflow: hidden;
}

.banner-media {
  position: absolute;
  inset: 0;
}

.banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* La foto es más alta que su marco para que el parallax no deje bordes */
.hero-media img,
.banner-media img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.hero-media img {
  top: -25%;
  height: 150%;
  object-position: center 35%;
}

.line {
  display: block;
  padding-bottom: 0.08em;
  overflow: hidden;
}

.line > span {
  display: block;
}

/* Testimonios */
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: min(82vw, 400px);
  min-height: 340px;
  padding: 32px;
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  transition: background-color 0.4s, border-color 0.4s;
}

.quote:hover {
  border-color: var(--acento);
  background: var(--fondo-suave);
}

.quote blockquote {
  margin: 0;
  font: italic 400 1.45rem/1.3 var(--font-title);
}

.quote-who {
  margin: 0;
}

.quote-who strong,
.quote-who span {
  display: block;
}

.quote-who strong {
  font-weight: 500;
}

.quote-who span {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* Sobre la clínica */
.about {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 116%;
  margin-top: -8%;
  object-fit: cover;
  object-position: 62% center;
}

.about-text > p:not(.eyebrow) {
  max-width: 34em;
  color: var(--texto-suave);
}

.stats {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--linea);
}

.stats dt {
  font: 400 clamp(2.6rem, 5vw, 3.8rem) / 1 var(--font-title);
  font-variant-numeric: lining-nums tabular-nums;
}

.stats dd {
  margin-top: 6px;
  color: var(--texto-suave);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Tratamientos */
/* Filas numeradas; en escritorio pasan a una grilla de cuatro columnas */
.treatment {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding-block: 32px;
  border-top: 1px solid var(--linea);
  transition: padding-left 0.5s var(--ease);
}

.treatment:last-child {
  border-bottom: 1px solid var(--linea);
}

.treatment figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  overflow: hidden;
}

.treatment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s;
}

.treatment:hover img {
  transform: scale(1.06);
}

.treatment-num {
  color: var(--acento);
  font: italic 400 1.9rem/1 var(--font-title);
}

.treatment h3 {
  margin: 0;
  font-size: 2.2rem;
}

.treatment p {
  margin: 0;
  color: var(--texto-suave);
}

/* La técnica: dos fotos superpuestas que se mueven a distinta velocidad */
.technique {
  display: grid;
  gap: 56px;
  align-items: center;
}

.technique-photos {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
}

.technique-photo {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  will-change: transform;
}

.technique-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.technique-photo--back {
  inset: 0 28% 16% 0;
}

.technique-photo--front {
  inset: 34% 0 0 44%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.technique-text > p:not(.eyebrow) {
  max-width: 32em;
}

.technique-text .link-more {
  margin-top: 16px;
}

/* Recuperación */
.recovery {
  display: grid;
  gap: 48px;
}

.recovery-head p:not(.eyebrow) {
  max-width: 28em;
  margin-bottom: 28px;
  color: var(--texto-suave);
  font-size: 1.12rem;
}

.benefits li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--linea);
}

.benefits li:last-child {
  border-bottom: 1px solid var(--linea);
}

.benefits span {
  grid-row: span 2;
  padding-top: 8px;
  color: var(--acento);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.benefits h3 {
  margin-bottom: 6px;
}

.benefits p {
  margin: 0;
  color: var(--texto-suave);
}

/* Comparativa */
.compare-wrap {
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.compare th,
.compare td {
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
}

.compare thead th {
  font: 400 1.6rem/1.1 var(--font-title);
  border-bottom-color: var(--acento);
}

.compare tbody th {
  width: 28%;
  color: var(--acento);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.compare tbody tr {
  transition: background-color 0.3s;
}

.compare tbody tr:hover {
  background: rgba(242, 237, 228, 0.04);
}

.compare-note {
  margin: 24px 0 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
  font-style: italic;
}

/* Preguntas frecuentes */
.faq details {
  border-bottom: 1px solid var(--linea);
}

.faq details:first-child {
  border-top: 1px solid var(--linea);
}

.faq summary {
  position: relative;
  padding: 24px 56px 24px 0;
  font: 400 1.6rem/1.2 var(--font-title);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.faq summary:hover {
  color: var(--acento);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  font: 400 1.3rem/1 var(--font-body);
  transition: rotate 0.4s var(--ease);
}

.faq details[open] summary::after {
  rotate: 135deg;
}

/* Apertura animada donde el navegador lo permite */
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

.faq {
  interpolate-size: allow-keywords;
}

.faq-body {
  max-width: 44em;
  padding: 0 56px 26px 0;
  color: var(--texto-suave);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* Reseñas */
.reviews {
  padding-top: 0;
  overflow: hidden;
}

.marquee--big {
  --marquee-time: 28s;
  margin-bottom: 80px;
  padding-block: 28px;
  border-bottom: 1px solid var(--linea-oscura);
  color: var(--claro);
}

.marquee--big span {
  padding-right: 0.6em;
  font: 400 clamp(2.6rem, 8vw, 6.5rem) / 1 var(--font-title);
  white-space: nowrap;
}

.marquee--big .marquee-accent {
  color: var(--acento-claro);
  font-style: italic;
}

.marquee--cards {
  --marquee-time: 60s;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  flex: none;
  width: min(80vw, 380px);
  margin-right: 20px;
  padding: 28px;
  border: 1px solid var(--linea-oscura);
  border-radius: var(--radius);
}

.review p {
  margin: 0;
  color: var(--claro);
  font-size: 1.08rem;
}

.review strong {
  color: var(--acento-claro);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Galería */
.gallery {
  padding-block: 20px;
  background: var(--oscuro);
}

.carousel--gallery {
  gap: 20px;
}

.carousel--gallery li {
  height: clamp(280px, 52vw, 560px);
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel--gallery img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 1.2s var(--ease), filter 0.8s;
}

.carousel--gallery li:hover img {
  transform: scale(1.04);
}

/* Formulario de turno */
.contact {
  display: grid;
  gap: 48px;
  max-width: 920px;
}

.contact-text {
  display: grid;
  justify-items: center;
  text-align: center;
}

.contact-text .lead {
  margin-bottom: 24px;
}

.form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.optional {
  color: var(--texto-suave);
  font-weight: 400;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  background: var(--fondo);
  border: 1px solid var(--linea-campo);
  border-radius: var(--radius);
  color: var(--texto);
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 1px var(--acento);
}

.hp {
  display: none;
}

.form-legal {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.88rem;
}

.form-error {
  margin: 0;
  color: #f0958a;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-success {
  margin: 0;
  padding: 40px 0;
  font: italic 400 1.9rem/1.25 var(--font-title);
}

.form-success:focus {
  outline: none;
}

/* Banner final */
.banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 90vh;
  padding-block: 96px;
  background: var(--oscuro);
  color: var(--claro);
  text-align: center;
  overflow: hidden;
}

.banner-media::after {
  background: rgba(13, 12, 11, 0.62);
}

.banner-inner {
  position: relative;
  max-width: 980px;
}

.banner h2 {
  margin-bottom: 0.7em;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
}

.banner h2 em {
  color: var(--acento-claro);
}

/* Pie de página */
.site-footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--linea);
  background: var(--fondo);
  color: var(--claro);
  font-size: 0.98rem;
}

.footer-inner {
  display: grid;
  gap: 36px;
}

.footer-brand p {
  margin: 18px 0 0;
  color: var(--claro-suave);
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.footer-col h2 {
  margin-bottom: 6px;
  color: var(--acento-claro);
  font: 600 0.74rem/1.4 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--acento-claro);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--linea-oscura);
  color: var(--claro-suave);
  font-size: 0.88rem;
}

/* Página de política de privacidad */
.legal {
  padding: 56px 0 72px;
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.legal h2 {
  margin-top: 1.4em;
  font-size: 1.8rem;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: disc;
}

.legal-meta {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-underline-offset: 4px;
}

/* 6. Animaciones ----------------------------------------------------------- */
/* Solo se oculta contenido si hay JS (clase .js en <html>).
   main.js agrega .is-visible cuando el elemento entra en pantalla;
   --i es el orden dentro del grupo que entra junto y genera el escalonado. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease-out, transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
  will-change: opacity, transform;
}

.js [data-reveal="left"] {
  transform: translateX(-40px);
}

.js [data-reveal="right"] {
  transform: translateX(40px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Titular de la primera pantalla: cada línea sube desde abajo al cargar */
.js [data-lines] .line > span {
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}

.js [data-lines] .line:nth-child(2) > span { transition-delay: 0.12s; }
.js [data-lines] .line:nth-child(3) > span { transition-delay: 0.24s; }

.js.is-loaded [data-lines] .line > span {
  transform: none;
}

.js .hero-eyebrow,
.js .hero-sub {
  opacity: 0;
  transition: opacity 1s ease-out 0.7s;
}

.js.is-loaded .hero-eyebrow,
.js.is-loaded .hero-sub {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal],
  .js [data-lines] .line > span,
  .js .hero-eyebrow,
  .js .hero-sub,
  .menu li a {
    opacity: 1;
    transform: none;
  }

  .marquee {
    overflow-x: auto;
  }
}

/* 7. Responsive ------------------------------------------------------------ */
@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding-block: 120px;
  }

  .icon-link {
    display: grid;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .field--full {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 88px;
    --gutter: 48px;
  }

  .section {
    padding-block: 152px;
  }

  .treatment {
    grid-template-columns: 64px 0.9fr 1.2fr 220px;
    grid-template-areas:
      "num title text photo"
      "num link text photo";
    align-items: center;
    column-gap: 48px;
    padding-block: 36px;
  }

  .treatment:hover {
    padding-left: 16px;
  }

  .treatment figure {
    grid-area: photo;
    aspect-ratio: 11 / 8;
    margin: 0;
  }

  .treatment-num {
    grid-area: num;
  }

  .treatment h3 {
    grid-area: title;
    align-self: end;
  }

  .treatment p {
    grid-area: text;
  }

  .treatment .link-more {
    grid-area: link;
    align-self: start;
  }

  .about {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 96px;
  }

  .technique {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }

  .recovery {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
  }

  .recovery-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }

  .contact {
    gap: 56px;
  }
}
