/* ============================================
   LUCÍA PARRA ESTÉTICA — hoja de estilos general
   Paleta estricta: #EEEEE7 · #EFEFE8 · #FFFFFF · #262221
   Tipografía: Poppins
   ============================================ */

:root {
  --cream:        #EEEEE7;
  --cream-soft:   #EFEFE8;
  --white:        #FFFFFF;
  --charcoal:     #262221;
  --cream-line:   rgba(38, 34, 33, 0.14);
  /* 0.68 es el mínimo que supera el 4.5:1 que pide WCAG AA para el texto
     secundario sobre los dos fondos claros de la paleta. Con 0.62 se
     quedaba en 4.24:1. */
  --charcoal-soft:rgba(38, 34, 33, 0.68);
  /* Los filetes decorativos pueden ser tenues, pero el borde de un campo
     de formulario es la única pista de dónde se escribe: WCAG 1.4.11 le
     exige 3:1. Por eso lleva su propia variable, más marcada. */
  --field-line:   rgba(38, 34, 33, 0.52);
  --cream-muted:  rgba(238, 238, 231, 0.72);
  --hairline-on-dark: rgba(255, 255, 255, 0.14);

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --radius: 2px;
  --shadow: 0 20px 40px -20px rgba(38, 34, 33, 0.35);
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto es imprescindible ahora que los <img> llevan width y height
   propios: sin él, al encoger por max-width la altura se quedaría fija y
   la imagen saldría deformada. Las reglas de .media, más específicas,
   siguen mandando donde hace falta recorte. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--charcoal-soft);
}
.section--dark .eyebrow { color: var(--cream-soft); }
.section--dark .eyebrow::before { background: var(--cream-soft); }

.section {
  padding: 110px 0;
}
.section--soft { background: var(--cream-soft); }
.section--dark {
  background: var(--charcoal);
  color: var(--cream);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
}

p.lead {
  font-size: 17px;
  color: var(--charcoal-soft);
  font-weight: 300;
  margin-top: 18px;
}
.section--dark p.lead { color: var(--cream-soft); }
/* Sobre fondo oscuro de cabecera el texto debe ir en claro para tener contraste */
.page-hero p.lead { color: var(--cream); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.btn--primary:hover {
  background: var(--cream);
  color: var(--charcoal);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover {
  background: var(--charcoal);
  color: var(--cream);
  transform: translateY(-2px);
}
.section--dark .btn--outline {
  color: var(--cream);
  border-color: var(--cream-soft);
}
.section--dark .btn--outline:hover {
  background: var(--cream);
  color: var(--charcoal);
}
.btn--light {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}
.btn--light:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
/* Siempre visible: sin fondo sobre la imagen de cabecera,
   con fondo (animado) al salir de ella */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background-color 0.5s cubic-bezier(.4,0,.2,1),
              backdrop-filter 0.5s cubic-bezier(.4,0,.2,1),
              border-color 0.5s ease,
              box-shadow 0.5s ease,
              color 0.5s ease;
}
/* Sobre la imagen: contenido en claro para que se lea */
.site-header .logo,
.site-header .logo span,
.site-header .nav-links a {
  color: var(--cream);
  transition: color 0.5s ease;
}
.site-header .nav-links a::after { background: var(--cream); }
.site-header .nav-links a:hover,
.site-header .nav-links a.active { color: var(--white); }
.site-header .nav-toggle span {
  background: var(--cream);
  transition: background-color 0.5s ease, transform var(--transition), opacity var(--transition);
}

/* Fuera de la imagen: aparece el fondo y el contenido pasa a oscuro */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--cream-line);
  box-shadow: 0 8px 24px -18px rgba(38,34,33,0.35);
}
.site-header.is-scrolled .logo,
.site-header.is-scrolled .nav-links a {
  color: var(--charcoal);
}
.site-header.is-scrolled .logo span { color: var(--charcoal-soft); }
.site-header.is-scrolled .nav-links a::after { background: var(--charcoal); }
.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a.active { color: var(--charcoal); }
.site-header.is-scrolled .nav-toggle span { background: var(--charcoal); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo span {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 44px;
}
.nav-links {
  display: flex;
  gap: 38px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--charcoal);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 600;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (imagen de fondo, minimalista) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* El rostro está a la izquierda: el encuadre lo respeta y deja
     libre el espacio de la derecha para el texto */
  object-position: 32% center;
}
/* Velo suave: la foto es luminosa. Se refuerza en el lado del texto
   y en los extremos, sin apagar el rostro. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38,34,33,0) 26%, rgba(38,34,33,0.38) 70%, rgba(38,34,33,0.46) 100%),
    linear-gradient(180deg, rgba(38,34,33,0.34) 0%, rgba(38,34,33,0.10) 38%, rgba(38,34,33,0.54) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  padding: 0 32px;
  color: var(--cream);
}
.hero-copy {
  max-width: 520px;
  margin-left: auto;
}
.hero-kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-soft);
  font-weight: 500;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 22px;
}
.hero-tagline {
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.06em;
  color: var(--cream-soft);
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 54px;
  background: rgba(238,238,231,0.4);
  overflow: hidden;
}
.hero-scroll::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Media (imágenes de stock con tono unificado) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-soft);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(60%) contrast(1.08) brightness(1.01);
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(38,34,33,0.2), rgba(38,34,33,0.06));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media:hover img { transform: scale(1.045); }
/* Fotografía definitiva de marca: se muestra con su color natural */
.media--photo img { filter: none; }
.media--photo::after { background: none; }
.media-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  background: rgba(238,238,231,0.92);
  color: var(--charcoal);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius);
}

/* ---------- Insignia flotante sobre imagen ---------- */
.media-badge-wrap { position: relative; }
.media-badge {
  position: absolute;
  right: -18px;
  bottom: -22px;
  z-index: 3;
  background: var(--charcoal);
  color: var(--cream);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-badge strong { display: block; font-size: 30px; font-weight: 600; }
.media-badge span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-soft); }

/* ---------- Pilares (Quiénes somos / Tratamientos / Medicina) ---------- */
.pillar {
  display: flex;
  flex-direction: column;
}
.pillar .media { aspect-ratio: 4/5; margin-bottom: 28px; }
/* Son h2 por jerarquía (cuelgan del h1 de la portada), pero conservan
   el tamaño que tenían como h3: el nivel es semántico, no visual. */
.pillar h3,
.pillar .pillar-title { font-size: 22px; font-weight: 500; margin-bottom: 14px; }
.pillar p { font-size: 14.5px; color: var(--charcoal-soft); flex-grow: 1; }
.pillar .card-link { margin-top: 22px; }

/* ---------- Page hero (páginas interiores) ---------- */
.page-hero {
  padding: 168px 0 90px;
  background: var(--charcoal);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(238,238,231,0.12);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero.has-image { padding: 210px 0 110px; }
.page-hero.has-image::after { display: none; }
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Sin desaturar: el velo oscuro superior ya unifica el tono */
  filter: none;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,34,33,0.62) 0%, rgba(38,34,33,0.68) 60%, rgba(38,34,33,0.88) 100%);
}
.page-hero h1 {
  color: var(--cream);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 500;
  max-width: 620px;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-soft);
  opacity: 0.75;
  margin-top: 22px;
}

/* ---------- Grid genérico ---------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tarjetas de tratamientos ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  padding: 40px 34px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card--media {
  padding: 0;
  overflow: hidden;
}
.card--media .media {
  aspect-ratio: 6/5;
  border-radius: 0;
}
.card--media .card-body {
  padding: 30px 28px 34px;
}
.section--dark .card--media {
  background: var(--charcoal);
  border-color: rgba(238,238,231,0.14);
}
.section--dark .card--media h3 { color: var(--cream); }
.section--dark .card--media p { color: var(--cream-soft); }
.section--dark .card-link { color: var(--cream); }
.card--highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border-color: var(--white);
}
.card--highlight .eyebrow { color: var(--charcoal-soft); }
.card--highlight h3 { color: var(--charcoal); }
.card--highlight p { color: var(--charcoal-soft); }
.card--highlight .card-link { color: var(--charcoal); }

.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--charcoal-soft); font-size: 14.5px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
}
/* La flecha avanza al pasar por encima, también desde el enlace padre */
.card-link-arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.card-link:hover .card-link-arrow,
.card:hover .card-link-arrow,
.pillar:hover .card-link-arrow { transform: translateX(6px); }

/* ---------- Tratamientos (página tratamientos) ---------- */
.cat-nav {
  position: sticky;
  top: 88px;
  z-index: 400;
  background: var(--white);
  border-bottom: 1px solid var(--cream-line);
}
.section[id] { scroll-margin-top: 152px; }
.cat-nav-inner {
  display: flex;
  gap: 38px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}
.cat-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.cat-nav a:hover,
.cat-nav a.is-active {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

.cat-head {
  max-width: 680px;
  margin-bottom: 72px;
}

/* Filete divisorio entre bloques de categoría.
   Se alinea con el ancho del contenido, no con el de la pantalla.
   El selector parte de .cat-nav para no afectar a las secciones de otras páginas. */
.cat-nav ~ .section[id] { position: relative; }
.cat-nav ~ .section[id] + .section[id]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 64px), calc(var(--maxw) - 64px));
  height: 1px;
  background: var(--cream-line);
  /* Se dibuja de dentro hacia fuera cuando el bloque entra en pantalla */
  transform: translateX(-50%) scaleX(0);
  transition: transform 1.1s cubic-bezier(.4,0,.2,1);
}
.cat-nav ~ .section[id].divider-in::before { transform: translateX(-50%) scaleX(1); }

.treatments {
  display: flex;
  flex-direction: column;
  gap: 90px;
}
.treatment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.treatment--reverse .treatment-media { order: 2; }
.treatment-media { aspect-ratio: 4/3; }
.treatment-body h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  margin-bottom: 16px;
}
.treatment-body p {
  font-size: 15.5px;
  color: var(--charcoal-soft);
  margin-bottom: 26px;
}
.benefits {
  border-top: 1px solid var(--cream-line);
  padding-top: 22px;
}
.benefits li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--charcoal);
}
.benefits li:last-child { margin-bottom: 0; }
.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 1px;
  background: var(--charcoal);
}
.section--dark .benefits { border-top-color: var(--hairline-on-dark); }
.section--dark .benefits li { color: var(--cream); }
.section--dark .benefits li::before { background: var(--cream); }

/* Aviso legal dentro de una ficha de tratamiento */
.treatment-nota {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--charcoal-soft);
}

/* Listas de zonas y opciones en formato etiqueta
   (depilación, manicura y pedicura, zonas de ácido hialurónico) */
.zones {
  border-top: 1px solid var(--cream-line);
  padding-top: 24px;
}
.zone-group + .zone-group { margin-top: 22px; }
.zone-group h4 {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  font-weight: 600;
  margin-bottom: 12px;
}
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Cuando las dos listas conviven, separa las etiquetas del siguiente filete */
.zones + .benefits { margin-top: 26px; }
.zone-list li {
  font-size: 13px;
  line-height: 1.3;
  padding: 8px 14px;
  border: 1px solid var(--cream-line);
  border-radius: 0;
  color: var(--charcoal);
  transition: var(--transition);
}
.zone-list li:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

/* ---------- Valores / iconos ---------- */
.value {
  text-align: left;
}
.value .num {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--charcoal-soft);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.value h3 { font-size: 19px; margin-bottom: 12px; }
.value p { font-size: 14.5px; color: var(--charcoal-soft); }

/* ---------- Sobre nosotros: imagen ---------- */
.about-media { aspect-ratio: 1/1; min-height: 460px; }

/* ---------- Equipo ---------- */
.team-card { text-align: left; }
.team-card .media {
  aspect-ratio: 4/5;
  margin-bottom: 20px;
}
.team-card h4 { font-size: 17px; font-weight: 500; }
.team-card span {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  display: block;
  margin-top: 6px;
  margin-bottom: 12px;
}
.team-card p { font-size: 14px; color: var(--charcoal-soft); }

/* ---------- Marca colaboradora ---------- */
.brand-grid { align-items: center; gap: 80px; }
/* 5:7 ≈ proporción nativa del cartel (724×1024): apenas se recorta */
.brand-media { aspect-ratio: 5/7; }
.brand-media img { object-position: center top; }
.media picture { display: block; width: 100%; height: 100%; }
/* mesoestetic se escribe siempre en minúscula */
.brand-name { text-transform: lowercase; }
.brand-points {
  margin-top: 30px;
  border-top: 1px solid var(--cream-line);
}
.brand-points li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--cream-line);
  font-size: 14.5px;
  color: var(--charcoal-soft);
}
.brand-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 23px;
  width: 10px;
  height: 1px;
  background: var(--charcoal);
}
/* Sobre fondo oscuro */
.section--dark .brand-points { border-top-color: var(--hairline-on-dark); }
.section--dark .brand-points li {
  color: var(--cream-soft);
  border-bottom-color: var(--hairline-on-dark);
}
.section--dark .brand-points li::before { background: var(--cream); }
.section--dark .brand-name { color: var(--cream); }

/* ---------- Reseñas de Google ---------- */
.reviews-summary {
  margin-top: 26px;
}
.reviews-summary-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
}
.reviews-score {
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--charcoal);
}
.reviews-stars {
  color: var(--charcoal);
  font-size: 15px;
  letter-spacing: 2px;
}
.reviews-count {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.reviews-grid:empty { display: none; }

.review {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-soft);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-meta { display: flex; flex-direction: column; min-width: 0; }
.review-author {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-date {
  font-size: 12.5px;
  color: var(--charcoal-soft);
  margin-top: 2px;
}
.review-stars {
  color: var(--charcoal);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--charcoal-soft);
  /* Recorta reseñas muy largas para que las tarjetas no se descuadren */
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-notice {
  text-align: center;
  font-size: 14px;
  color: var(--charcoal-soft);
  padding: 22px 0;
}
.reviews-cta {
  text-align: center;
  margin-top: 46px;
}

/* ---------- Testimonios ---------- */
.testimonial {
  padding: 0 12px;
  text-align: center;
  border-left: 1px solid var(--cream-line);
}
.grid-3 .testimonial:first-child { border-left: none; }
.testimonial p.quote {
  font-size: 15.5px;
  font-style: normal;
  color: var(--charcoal);
  margin-bottom: 22px;
  line-height: 1.7;
}
.testimonial .stars {
  color: var(--charcoal);
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.testimonial .who {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.testimonial .who span {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--charcoal-soft);
  margin-top: 3px;
}

/* ---------- Slider (opiniones) ----------
   Carrusel de scroll nativo con puntos de anclaje: el deslizamiento
   táctil lo resuelve el navegador y los botones solo mueven el scroll,
   así que sigue funcionando aunque falle el JS. */
.slider { position: relative; }
.slider-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 32px) / 3);
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-viewport:focus-visible {
  outline: 1px solid var(--charcoal);
  outline-offset: 6px;
}
.slide {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
}
/* El borde separador de .testimonial es para la retícula, no para el slider */
.slide.testimonial { border-left: 1px solid var(--cream-line); }
.slide .quote { flex: 1; }
.slide .who { margin-top: auto; }

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 40px;
}
.slider-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--cream-line);
  border-radius: 50%;
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}
.slider-btn:hover:not(:disabled) {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}
.slider-btn:disabled { opacity: 0.3; cursor: default; }

.slider-dots { display: flex; gap: 10px; }
.slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--cream-line);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.is-active { background: var(--charcoal); transform: scale(1.35); }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); font-size: clamp(26px,3vw,38px); margin-bottom: 18px; }
.cta-band p { color: var(--cream-soft); max-width: 520px; margin: 0 auto 34px; }

/* Variante clara, para cuando la sección anterior ya es oscura */
.cta-band--light { background: var(--cream-soft); color: var(--charcoal); }
.cta-band--light h2 { color: var(--charcoal); }
.cta-band--light p { color: var(--charcoal-soft); }

/* ---------- Contacto ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}
.contact-info-item {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--cream-line);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .ic svg { width: 20px; height: 20px; }
.contact-info-item h3,
.contact-info-item h4 { font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.contact-info-item p { font-size: 14px; color: var(--charcoal-soft); }
.social-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cream-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-row a:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}
.social-row svg { width: 17px; height: 17px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  padding: 44px;
  border-radius: var(--radius);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--field-line);
  background: var(--cream);
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: var(--transition);
}
.field textarea { resize: vertical; min-height: 120px; }
/* El foco necesita verse sin depender solo del cambio de borde de 1px,
   que era casi imperceptible. Se refuerza con un anillo exterior. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
  border-color: var(--charcoal);
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--charcoal);
  background: var(--white);
}

/* ---------- Foco visible en todo el sitio ----------
   Sobre las fotos de cabecera el anillo por defecto del navegador
   apenas se distingue, así que se define uno propio con contraste. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 1px;
}
.site-header a:focus-visible,
.section--dark a:focus-visible,
.section--dark button:focus-visible,
.page-hero a:focus-visible,
.hero a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--cream);
}
.field-note {
  font-size: 12px;
  color: var(--charcoal-soft);
  margin-top: 14px;
}

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; }
.legal h2 {
  font-size: 19px;
  font-weight: 500;
  margin: 44px 0 14px;
}
.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--charcoal-soft);
  margin-bottom: 12px;
}
.legal ul { margin-bottom: 18px; }
.legal li { padding-left: 18px; position: relative; }
.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--charcoal-soft);
}
.legal strong { color: var(--charcoal); font-weight: 500; }
.legal a { text-decoration: underline; }
.legal-fecha {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-line);
  font-size: 13px;
}

/* Casilla de consentimiento */
.field--check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.field--check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--charcoal);
}
.field--check label {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.field--check a { text-decoration: underline; }

/* Sólo para lectores de pantalla: describe la tabla sin ocuparse en pantalla */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Los días pasan a <th scope="row"> por semántica; visualmente
   siguen siendo la primera columna de siempre */
.hours-table th {
  text-align: left;
  font-weight: 300;
  font-size: inherit;
  color: inherit;
}

/* Campo trampa antispam: fuera de la vista pero sin display:none,
   que algunos robots detectan. Tampoco lo anuncia el lector de pantalla. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Aviso de resultado del envío */
.form-feedback {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  border-left: 2px solid var(--charcoal);
  background: var(--cream);
  color: var(--charcoal);
}
.form-feedback.is-error {
  border-left-color: #9c3a2f;
  color: #9c3a2f;
}

.map-frame {
  margin-top: 24px;
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--cream-line);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }

.hours-table {
  margin-top: 18px;
  width: 100%;
}
.hours-table tr { border-bottom: 1px solid var(--cream-line); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: 12px 0;
  font-size: 14px;
}
.hours-table td:first-child { color: var(--charcoal); font-weight: 500; }
.hours-table td:last-child { text-align: right; color: var(--charcoal-soft); }

/* ---------- FAQ ---------- */
/* ---------- Botón flotante de WhatsApp ----------
   z-index 430: por encima de la barra de categorías (400) pero por debajo
   del velo (490) y de la cabecera con su panel de menú (500), para que no
   se superponga al menú abierto en móvil. */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 430;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.wa-float svg { width: 27px; height: 27px; }
.wa-float:hover { transform: translateY(-4px); }
.wa-float:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 4px; }

/* ---------- Pedir cita (bloque de contacto rápido) ---------- */
.booking { margin-top: 56px; }
.booking-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 30px 32px;
  border: 1px solid var(--hairline-on-dark);
  border-radius: var(--radius);
  color: var(--cream);
  transition: var(--transition);
}
.booking-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-6px);
}
.booking-ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--hairline-on-dark);
  border-radius: 50%;
  transition: var(--transition);
}
.booking-ic svg { width: 19px; height: 19px; }
.booking-option:hover .booking-ic {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--charcoal);
}
.booking-option h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}
.booking-dato {
  font-size: 14.5px;
  color: var(--cream);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hairline-on-dark);
  transition: var(--transition);
}
.booking-option:hover .booking-dato { border-bottom-color: var(--cream); }
.booking-nota {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cream-muted);
}

.faq-item {
  border-bottom: 1px solid var(--cream-line);
  padding: 26px 0;
}
.faq-item h4 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.faq-item p { font-size: 14.5px; color: var(--charcoal-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream-soft);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(238,238,231,0.14);
}
.footer-grid h4 {
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a {
  font-size: 14px;
  color: var(--cream-soft);
  transition: var(--transition);
}
.footer-grid ul li a:hover { color: var(--cream); }
.footer-logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-grid p { font-size: 14px; color: var(--cream-soft); max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 12.5px;
  color: rgba(238,238,231,0.55);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utilidades responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero::before, .hero::after { opacity: 0.5; }
  .treatment { gap: 36px; }
  .slider-viewport { grid-auto-columns: calc((100% - 32px) / 2); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    /* Con el panel cerrado hay que sacarlo del orden de tabulación:
       solo con translateX los enlaces seguían siendo enfocables y el
       foco se iba a elementos invisibles fuera de la pantalla.
       La visibilidad se retrasa hasta que termina el deslizamiento. */
    visibility: hidden;
    transition: transform var(--transition), visibility 0s linear 0.35s;
    z-index: 550;
  }
  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition), visibility 0s;
  }
  .nav-links a { font-size: 16px; }
  /* El panel móvil es siempre oscuro: los enlaces se mantienen claros */
  .site-header .nav-links a,
  .site-header.is-scrolled .nav-links a,
  .site-header.is-scrolled .nav-links a:hover,
  .site-header.is-scrolled .nav-links a.active { color: var(--cream); }
  .site-header .nav-links a::after,
  .site-header.is-scrolled .nav-links a::after { background: var(--cream-soft); }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .testimonial { border-left: none; border-top: 1px solid var(--cream-line); padding: 24px 0 0; }
  .grid-3 .testimonial:first-child { border-top: none; padding-top: 0; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 25px; height: 25px; }
  .slider-viewport { grid-auto-columns: 100%; gap: 20px; }
  /* En el slider la tarjeta conserva su caja: la regla de arriba es para la retícula */
  .slide.testimonial { border: 1px solid var(--cream-line); padding: 34px 26px; }
  .slider-nav { margin-top: 32px; gap: 18px; }
  .section { padding: 76px 0; }
  /* En vertical no queda espacio libre lateral: el texto vuelve al centro */
  .hero { padding: 150px 0 90px; min-height: 88vh; text-align: center; }
  .hero-copy { margin: 0 auto; max-width: 100%; }
  .hero-bg::after {
    background:
      radial-gradient(ellipse 95% 46% at 50% 56%, rgba(38,34,33,0.46) 0%, rgba(38,34,33,0) 76%),
      linear-gradient(180deg, rgba(38,34,33,0.42) 0%, rgba(38,34,33,0.24) 34%, rgba(38,34,33,0.66) 100%);
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .treatment { grid-template-columns: 1fr; gap: 28px; }
  .treatment--reverse .treatment-media { order: 0; }
  .treatments { gap: 62px; }
  .cat-head { margin-bottom: 48px; }
  .cat-nav-inner { gap: 20px; justify-content: flex-start; }
  .cat-nav { top: 76px; }
  .section[id] { scroll-margin-top: 130px; }
  .hero-scroll { display: none; }
  /* El recorte lateral es mayor: mantiene el rostro dentro del encuadre */
  .hero-bg img { object-position: 26% center; }
  .about-media { min-height: 340px; }
  /* Marca colaboradora: la imagen abre la sección a sangre. En móvil se
     usa la versión apaisada y la caja adopta su proporción nativa
     (808×632), así se ve entera y sin recortar. */
  #marca { padding-top: 0; }
  .brand-grid { gap: 34px; }
  .brand-media {
    aspect-ratio: 808 / 632;
    margin: 0 -32px;
  }
  .brand-media img { object-position: center; }
  .media-badge { right: 12px; bottom: -18px; padding: 16px 20px; }
  .media-badge strong { font-size: 24px; }
  .page-hero.has-image { padding-top: 150px; }
}

/* ---------- Overlay para menú móvil ----------
   z-index 490: el velo tiene que quedar POR DEBAJO de la cabecera (500).
   La cabecera es un contexto de apilamiento propio (position fixed con
   z-index y backdrop-filter), así que el panel del menú y el botón
   hamburguesa, que viven dentro de ella, no pueden subir por encima de 500
   por mucho z-index que se les ponga. Con un velo más alto se colocaba
   encima del panel y se comía las pulsaciones: el menú se cerraba al tocar
   un enlace pero no se navegaba a ninguna parte. */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38,34,33,0.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 490;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Las fichas de tratamiento no suben: la foto entra por su propio lado,
   reforzando el zigzag del bloque. El artículo solo funde. */
.treatment.reveal { transform: none; }
.treatment .treatment-media,
.treatment .treatment-body {
  transition: transform 0.85s cubic-bezier(.4,0,.2,1), opacity 0.85s ease;
}
.treatment.reveal:not(.is-visible) .treatment-media { transform: translateX(-44px); opacity: 0; }
.treatment.reveal:not(.is-visible) .treatment-body { transform: translateX(22px); opacity: 0; }
.treatment--reverse.reveal:not(.is-visible) .treatment-media { transform: translateX(44px); }
.treatment--reverse.reveal:not(.is-visible) .treatment-body { transform: translateX(-22px); }

/* ---------- Parallax de cabeceras ----------
   El margen extra arriba y abajo da recorrido a la imagen sin que asome
   el fondo. Solo se aplica cuando el JS activa el efecto. */
.hero-bg.is-parallax,
.page-hero-bg.is-parallax {
  top: -16%;
  bottom: -16%;
  will-change: transform;
}

/* ---------- Movimiento reducido ----------
   Respeta a quien pide menos animación en los ajustes del sistema:
   todo aparece en su sitio, sin recorridos ni fundidos largos. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .treatment.reveal:not(.is-visible) .treatment-media,
  .treatment.reveal:not(.is-visible) .treatment-body {
    opacity: 1;
    transform: none;
  }
  .cat-nav ~ .section[id]::before { transform: translateX(-50%) scaleX(1); }
}
