/* ============================================================
   María Rodríguez Estética Barcelona — Design System
   Fuente: CLAUDE.md v4 · validado contra manual de marca físico
   Home reconstruida con medidas exactas del frame Figma
   "Maria web" → Home — desktop 1280 (nodo 5:204)
   ============================================================ */

:root {
  /* Colores oficiales del manual (fondo / acento decorativo — NUNCA texto) */
  --cream:      #F7F4F2;
  --cream-2:    #F6EEED;
  --beige:      #DED7CD;
  --rose:       #C19190;
  --rose-light: #E6B7B7;
  --gold:       #A98032;
  --taupe:      #BAA597;
  --nude:       #E4C8BA;
  --nude-2:     #CCAA9F;
  --blush:      #F4E5E7;
  --line:       #E7E2DF;

  /* Variantes accesibles derivadas — mismo matiz, luminosidad ajustada para texto */
  --rose-dk:    #A66260;   /* AA 4.6:1 sobre blanco */
  --rose-dk2:   #804847;   /* AAA 7.2:1 sobre blanco */
  --gold-dk:    #936F2B;   /* AA 4.6:1 sobre blanco */
  --taupe-dk:   #8C705D;   /* AA 4.6:1 sobre blanco */

  /* Neutros oscuros — solo tipografía, nunca fondo */
  --dark:       #3D201F;
  --dark-2:     #291515;

  --white:      #FFFFFF;

  /* Tipografía */
  --sans:   'Montserrat', system-ui, sans-serif;
  --script: 'Parisienne', cursive;

  /* z-index scale — no inventar valores fuera de esta escala */
  --z-base:      10;
  --z-dropdown:  50;
  --z-navbar:    100;
  --z-nav-drop:  200;
  --z-modal:     300;
  --z-wa-button: 900;
  --z-botpress:  999;
}

/* ============================================================
   Fuentes — WOFF2 propio, font-display: swap obligatorio
   Coloca los archivos reales en /assets/fonts/
   ============================================================ */
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: url('fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: url('fonts/montserrat-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: url('fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: url('fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: url('fonts/montserrat-italic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Parisienne';
  font-display: swap;
  src: url('fonts/parisienne-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

/* ============================================================
   Reset mínimo
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px; /* mínimo absoluto de cuerpo */
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }

/* ============================================================
   Tipografía — jerarquía fija (CLAUDE.md 3.2)
   Home: valores exactos del frame desktop 1280
   ============================================================ */
h1 { font-weight: 700; font-size: 44px; line-height: 1.2; margin: 0; }
h2 { font-weight: 600; font-size: 32px; line-height: 1.2; margin: 0; }
h3 { font-weight: 500; font-size: 20px; line-height: 1.2; margin: 0; }
p  { margin: 0; }

/* <em> en titulares: Montserrat itálica + rose-dk2, NUNCA Parisienne */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose-dk2);
}

/* Parisienne — EXCLUSIVO monograma "mr" (no se usa en Home: el logo es imagen) */
.monogram {
  font-family: var(--script);
}

/* ============================================================
   Utilidades de texto reutilizadas en varias secciones
   ============================================================ */
.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--rose-dk2);
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold-dk); }
.eyebrow--on-dark { color: var(--white); letter-spacing: 1.4px; }

.label-sm {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--rose-dk2);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.quote {
  font-size: 16px;
  font-style: italic;
  color: var(--dark);
}

/* ============================================================
   Secciones — fondos permitidos (CLAUDE.md 3.5)
   ============================================================ */
.section-cream   { background: var(--cream); }
.section-cream-2 { background: var(--cream-2); }
.section-white   { background: var(--white); }

.photo-placeholder {
  background: var(--rose);
}

/* ============================================================
   Botones — siempre pill shape (CLAUDE.md 3.3)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px; /* pill obligatorio */
  min-height: 52px;     /* mínimo táctil WCAG */
  padding: 0 32px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; }

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold-dk);
  color: var(--gold-dk);
}
/* Excepción: botones sobre foto/hero con scrim oscuro */
.btn-primary--on-dark {
  background: var(--white);
  color: var(--dark);
}
.btn-outline--on-dark {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}

/* ============================================================
   Cards — border-radius fijo, fondo SIEMPRE blanco (CLAUDE.md 3.4)
   ============================================================ */
.card {
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

/* ============================================================
   Accesibilidad — focus visible (CLAUDE.md 4.2)
   ============================================================ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

/* ============================================================
   Layout base
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   Header / Nav — Nav/Header (nodo 5:205) · 1280×85
   ============================================================ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  background: var(--white);
}
.nav {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
}
.nav__logo img { width: 107px; height: 40px; }
/* En desktop el wrapper "desaparece" para que sus hijos (links + CTA)
   sigan siendo hijos flex directos de .nav, igual que en Figma */
.nav__menu {
  display: contents;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

/* Dropdown "Tratamientos" — panel flotante en desktop,
   lista anidada dentro del toggle en móvil (misma marcación,
   la media query de abajo cambia solo la presentación) */
.nav__item--dropdown {
  position: relative;
}
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
}
.nav__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav__dropdown-toggle[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(61, 32, 31, 0.14);
  padding: 10px;
  z-index: var(--z-dropdown);
}
.nav__dropdown.is-open { display: block; }
.nav__dropdown li + li { margin-top: 2px; }
.nav__dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}
.nav__dropdown a:hover { background: var(--cream-2); }

/* Botón hamburguesa — oculto en desktop */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav__toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle-bar:nth-child(1) { top: 15px; }
.nav__toggle-bar:nth-child(2) { top: 21px; }
.nav__toggle-bar:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   Hero (nodo 5:213) · 1280×620
   ============================================================ */
.hero {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--rose);
}
/* De 641 a ~1180px, una altura fija de 620px con un ancho cada vez más
   estrecho recortaba la foto por los lados hasta perder el motivo
   principal (object-fit: cover). aspect-ratio mantiene el mismo encuadre
   relativo que en desktop en vez de ir recortando más cuanto más angosto. */
@media (min-width: 641px) {
  .hero {
    width: 100%;
    height: auto;
    aspect-ratio: 2.05 / 1;
    min-height: 420px;
    max-height: 680px;
  }
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.26);
}
.hero__scrim--light { background: rgba(0, 0, 0, 0.2); }
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 507px;
  text-align: center;
}
.hero__eyebrow { text-align: center; }
.hero h1 {
  color: var(--white);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
}
.hero h1 em { color: var(--white); font-weight: 400; }
.hero__subtitle {
  font-size: 17px;
  color: var(--white);
  text-align: center;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   Filosofía (nodo 5:230) · 1280×206
   ============================================================ */
.filosofia {
  padding: 80px 40px;
}
.filosofia__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  justify-content: center;
}
.filosofia__item {
  width: 320px;
  font-size: 19px;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
}

/* ============================================================
   Tratamientos (nodo 5:238) · 1280×704
   ============================================================ */
.tratamientos {
  padding: 80px 40px;
}
.tratamientos__header {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 700px;
}
.tratamientos__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
/* Mismo patrón que .resenas__carousel: scroll nativo con snap + puntos
   (ver setupCarousel en site.js). Antes era un marquee CSS automático,
   pero sin hover no había forma de pausarlo/controlarlo en móvil y
   mask-image rompía el scroll táctil en WebKit/iOS — se sustituyó por
   el mecanismo ya probado de reseñas. */
.tratamientos__carousel {
  max-width: 1128px;
  margin: 0 auto;
}
.tratamientos__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.tratamientos__viewport::-webkit-scrollbar { display: none; }
.tratamientos__track {
  display: flex;
  gap: 24px;
}
.tratamientos__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.tratamientos__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--beige);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.tratamientos__dot.is-active {
  background: var(--gold-dk);
  width: 22px;
}
.treatment-card {
  width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.treatment-card:hover {
  box-shadow: 0 12px 28px rgba(61, 32, 31, 0.12);
  transform: translateY(-3px);
}
.treatment-card__img {
  width: 100%;
  height: 273px;
  object-fit: cover;
  border-radius: 8px;
}
.treatment-card__category { margin-top: 6px; }
.treatment-card h3 { color: var(--dark); }
.treatment-card__sub {
  font-size: 14px;
  color: var(--gold-dk);
}
.treatment-card__desc {
  font-size: 14px;
  color: var(--dark);
}
.treatment-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dk);
}

/* ============================================================
   CTA strips (nodos 5:226 / 5:298) · 1280×100
   ============================================================ */
.cta-strip {
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ============================================================
   Equipo (nodo 5:269) · 1280×576
   ============================================================ */
.equipo {
  padding: 88px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.equipo__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
}
.equipo__content p {
  font-size: 16px;
  color: var(--dark);
  max-width: 480px;
}
.equipo__photo {
  width: 560px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  max-width: 100%;
}

/* ============================================================
   Reseñas (nodo 5:279) · 1280×424
   ============================================================ */
.resenas {
  padding: 80px 40px;
}
.resenas__header {
  text-align: center;
  margin: 0 auto 40px;
}
.resenas__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.resenas__carousel {
  max-width: 1128px;
  margin: 0 auto;
}
.resenas__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.resenas__viewport::-webkit-scrollbar { display: none; }
.resenas__track {
  display: flex;
  gap: 24px;
}
.review-card {
  width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
.resenas__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.resenas__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--beige);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.resenas__dot.is-active {
  background: var(--gold-dk);
  width: 22px;
}
.resenas__badge {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.review-card__stars {
  font-size: 14px;
  color: var(--gold-dk);
  letter-spacing: 2px;
}
.review-card__text {
  font-size: 15px;
  color: var(--dark);
}
.review-card__author {
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-dk);
}

/* ============================================================
   Tarjeta regalo CTA (nodo 5:302) · 1280×516
   ============================================================ */
.tarjeta-regalo {
  padding: 88px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.tarjeta-regalo__img {
  width: 260px;
  max-width: 100%;
  height: 338px;
  object-fit: cover;
  border-radius: 12px;
}
.tarjeta-regalo__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 582px;
}
.tarjeta-regalo__content h2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tarjeta-regalo__content p {
  font-size: 15px;
  color: var(--dark);
  max-width: 460px;
}

/* ============================================================
   Ubicación (nodo 5:313) · 1280×519
   ============================================================ */
.ubicacion {
  padding: 88px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.ubicacion__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 520px;
}
.ubicacion__content h2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ubicacion__info-block p {
  font-size: 15px;
  color: var(--dark);
}
.ubicacion__map {
  width: 559px;
  max-width: 100%;
  height: 314px;
  border-radius: 12px;
  overflow: hidden;
}
.ubicacion__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   CTA final (nodo 5:331) · 1280×388
   ============================================================ */
.cta-final {
  padding: 96px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.cta-final h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final p {
  font-size: 16px;
  color: var(--dark);
  max-width: 420px;
}
.cta-final__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   Nosotras — Historia (nodo 5:370) · 1280×596
   ============================================================ */
.historia {
  padding: 88px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.historia__img {
  width: 500px;
  max-width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 12px;
}
.historia__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
}
.historia__content h2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.historia__content p {
  font-size: 15px;
  color: var(--dark);
  max-width: 500px;
}
.historia__role {
  margin-top: -8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-dk);
}

/* ============================================================
   Nosotras — Equipo (nodo 5:380) · 1280×635
   ============================================================ */
.team {
  padding: 80px 40px;
}
.team__header {
  text-align: center;
  margin: 0 auto 40px;
}
.team__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.team__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.team-card {
  width: 280px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-card__img {
  width: 100%;
  height: 267px;
  object-fit: cover;
  border-radius: 8px;
}
.team-card h3 { color: var(--dark); }
.team-card__role {
  font-size: 14px;
  color: var(--rose-dk);
}
.team-card__bio {
  font-size: 14px;
  color: var(--dark);
}
/* 4 team-card de 280px + gaps necesitan ~1192px para caber en una fila;
   entre 641 y 1279px caben 3 pero no 4, así que flex-wrap las partía en
   3+1 según el ancho exacto. Grid de 2 columnas fijas: siempre 2+2. */
@media (min-width: 641px) and (max-width: 1279px) {
  .team__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
  }
  .team-card { width: 100%; }
}

/* ============================================================
   Nosotras — El espacio (nodo 5:399) · 1280×736
   ============================================================ */
.espacio {
  padding: 88px 40px;
}
.espacio__header {
  text-align: center;
  margin: 0 auto 40px;
}
.espacio__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.espacio__carousel {
  max-width: 960px;
  margin: 0 auto;
}
.espacio__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.espacio__viewport::-webkit-scrollbar { display: none; }
.espacio__track {
  display: flex;
  gap: 16px;
}
.espacio__slide {
  width: 280px;
  height: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: cover;
  border-radius: 12px;
}
.espacio__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.espacio__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--beige);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.espacio__dot.is-active {
  background: var(--gold-dk);
  width: 22px;
}
.espacio__text {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--dark);
}

/* ============================================================
   Nosotras — Línea cosmética (nodo 5:410) · 1280×516
   ============================================================ */
.cosmetica {
  padding: 88px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.cosmetica__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 540px;
}
.cosmetica__content h2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cosmetica__content p {
  font-size: 15px;
  color: var(--dark);
  max-width: 480px;
}
.cosmetica__prompt {
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-dk2);
}
button.cosmetica__prompt {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.cosmetica__prompt:hover { opacity: 0.8; }
.cosmetica__img {
  width: 480px;
  max-width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
}

/* ============================================================
   Tarjeta Regalo — Packaging (nodo 5:448) · 1280×567
   ============================================================ */
.packaging {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.packaging__img {
  width: 260px;
  max-width: 100%;
  height: 338px;
  object-fit: cover;
  border-radius: 12px;
}
.packaging__text-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.packaging__text {
  max-width: 560px;
  text-align: center;
  font-size: 15px;
  color: var(--dark);
}

/* ============================================================
   Tarjeta Regalo — Cómo funciona (nodo 5:452) · 1280×444
   ============================================================ */
.como-funciona {
  padding: 80px 40px;
}
.como-funciona__header {
  text-align: center;
  margin: 0 auto 40px;
}
.como-funciona__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.como-funciona__grid {
  max-width: 1068px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.step-card {
  width: 340px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-card__number {
  font-size: 22px;
  font-weight: 700;
  color: var(--rose-dk2);
}
.step-card h3 { font-size: 17px; color: var(--dark); }
.step-card__desc {
  font-size: 14px;
  color: var(--dark);
}

/* ============================================================
   Tarjeta Regalo — CTA "¿Para quién es?" (nodo 5:471) · 1280×290
   ============================================================ */
.para-quien {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.para-quien h2 { font-size: 26px; }
.para-quien p {
  font-size: 15px;
  color: var(--dark);
  max-width: 406px;
}
.para-quien .btn { margin-top: 8px; }

/* ============================================================
   Ficha de tratamiento (tratamiento.html?s=slug) — Tipo A
   Fuente: Figma "Tratamiento (plantilla) — Indiba — desktop 1280"
   (nodo 5:487)
   ============================================================ */

/* Hero de ficha de tratamiento: título más largo que en Home/Nosotras,
   Figma usa 34px en vez de los 44px por defecto de h1 */
#tr-hero-title { font-size: 34px; }

/* Intro / "¿Es este tratamiento para ti?" (nodo 5:497) · 1280×355 */
.tr-intro {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.tr-intro__text {
  max-width: 720px;
  font-size: 16px;
  color: var(--dark);
}
.tr-intro__img {
  width: 496px;
  max-width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 6px;
}

/* Fila de imágenes debajo de los servicios (p.ej. "Embellece tu mirada") */
.tr-service-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.tr-service-images img {
  width: 380px;
  max-width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

/* Beneficios (nodo 5:504) · 1280×336 */
.tr-benefits { padding: 80px 40px; }
.tr-benefits__header { text-align: center; margin: 0 auto 36px; }
.tr-benefits__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.tr-benefits__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.benefit-card {
  width: 270px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-card h3 { font-size: 17px; color: var(--dark); }
.benefit-card p { font-size: 14px; color: var(--dark); }

/* Indicaciones (nodo 5:518) · 1280×339
   Nota: en el Figma estas tarjetas llevan fondo --cream-2, pero
   CLAUDE.md 3.4/10 exige que toda card sea blanca sin excepción —
   se usa .card (blanco + borde) en vez del fondo de color del diseño. */
.tr-indications { padding: 80px 40px; }
.tr-indications__header { text-align: center; margin: 0 auto 36px; }
.tr-indications__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.tr-indications__grid {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.indication-card {
  width: 360px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.indication-card h3 { font-size: 16px; color: var(--dark); }
.indication-card p { font-size: 14px; color: var(--dark); }

/* Tarifas (nodo 5:530) · 1280×944 */
.tr-pricing { padding: 80px 40px; }
.tr-pricing__header {
  max-width: 746px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tr-pricing__note { font-size: 14px; color: var(--dark); }
.tr-pricing__groups {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pricing-group__category {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
}
.price-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: none; }
.price-row__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.price-row__name { font-size: 15px; font-weight: 500; color: var(--dark); }
.price-row__duration { font-size: 14px; color: var(--dark); margin-left: 6px; }
.price-row__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-dk);
  white-space: nowrap;
}
.price-row__subtitle {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-dk2);
  margin-top: 4px;
}
.price-row__bono {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--gold);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dk);
}
.tr-pricing__prompt,
.tr-faqs__prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  text-align: center;
}
.tr-pricing__prompt button,
.tr-faqs__prompt button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--rose-dk2);
}

/* FAQs (nodo 5:571) · 1280×758 */
.tr-faqs { padding: 64px 40px; }
.tr-faqs__header { text-align: center; margin: 0 auto 32px; }
.tr-faqs__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.tr-faqs__list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon {
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
  font-size: 14px;
  color: var(--dark);
  padding-bottom: 16px;
  margin: 0;
}

/* Fallback: ficha aún sin contenido completo */
.tr-fallback {
  padding: 96px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.tr-fallback p { font-size: 16px; color: var(--dark); max-width: 480px; }

/* [hidden] pierde contra un selector de una sola clase con su propio
   "display" (empate de especificidad resuelto por orden de aparición) —
   estas secciones se muestran/ocultan por JS según los datos disponibles,
   así que el atributo hidden debe ganar siempre que esté presente. */
.tr-intro[hidden],
.tr-benefits[hidden],
.tr-indications[hidden],
.tr-pricing[hidden],
.tr-faqs[hidden],
.tr-cta[hidden],
.tr-fallback[hidden] {
  display: none;
}

/* ============================================================
   Tratamiento — subsección con bullets/párrafos + tarifa
   (LPG Facial/Corporal, Adipologie Facial/Corporal)
   ============================================================ */
.tr-subsection { padding: 70px 40px; }
.tr-subsection__header { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.tr-subsection__header h2 {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.tr-subsection__body {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tr-subsection__body p { font-size: 15px; color: var(--dark); }
.tr-subsection__image {
  display: block;
  width: 618px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 618 / 576;
  margin: 32px auto 0;
  border-radius: 12px;
  object-fit: cover;
}
.tr-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tr-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--dark);
}
.tr-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--rose-dk2);
  font-weight: 700;
}
.tr-subsection .price-row { padding-top: 4px; }

/* Tratamiento — tags de zonas/categorías (I-Shape "Zonas de tratamiento") */
.tr-tags-section { padding: 56px 40px; text-align: center; }
.tr-tags-section .eyebrow { text-align: center; }
.tr-tags {
  max-width: 720px;
  margin: 16px auto 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tr-tag {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

/* Tratamiento — galería con caption (I-Shape) */
.tr-gallery-section { padding: 70px 40px; }
.tr-gallery {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.tr-gallery figure {
  margin: 0;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tr-gallery img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
}
.tr-gallery figcaption {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
}

/* ============================================================
   Categoría (Tipo B) — tabs de tarifas + bloques de subcategoría
   Sistema de tabs sin JS: radios ocultos + labels + paneles,
   mostrados vía :checked ~ (data-tab/data-panel genéricos, hasta
   5 pestañas + "ver todos"). Reutilizable en Corporales/Faciales/Láser.
   ============================================================ */
.tr-category-intro { padding: 56px 40px 0; }

.tr-tabs {
  padding: 40px 40px 80px;
  background: var(--white);
}
.tr-tabs__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tr-tabs__bar {
  max-width: 900px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.tr-tabs__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  background: var(--cream-2);
}
.tr-tabs__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-dk2);
  background: var(--white);
  border-radius: 999px;
  padding: 1px 7px;
}
.tr-tabs__all {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-dk2);
  cursor: pointer;
}
.tr-tabs__radio:focus-visible + .tr-tabs__label,
.tr-tabs__radio:focus-visible ~ .tr-tabs__bar .tr-tabs__all:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}
.tr-tabs__panels { max-width: 900px; margin: 0 auto; }
.tr-tabs__panel { display: none; }
.tr-tabs__radio[data-tab="1"]:checked ~ .tr-tabs__panels .tr-tabs__panel[data-panel="1"],
.tr-tabs__radio[data-tab="2"]:checked ~ .tr-tabs__panels .tr-tabs__panel[data-panel="2"],
.tr-tabs__radio[data-tab="3"]:checked ~ .tr-tabs__panels .tr-tabs__panel[data-panel="3"],
.tr-tabs__radio[data-tab="4"]:checked ~ .tr-tabs__panels .tr-tabs__panel[data-panel="4"],
.tr-tabs__radio[data-tab="5"]:checked ~ .tr-tabs__panels .tr-tabs__panel[data-panel="5"] {
  display: block;
}
.tr-tabs__radio[data-tab="all"]:checked ~ .tr-tabs__panels .tr-tabs__panel {
  display: block;
}
/* En "ver todos" los paneles quedaban uno pegado al otro sin ninguna
   marca visual de que son categorías distintas — se leía como una
   lista continua. Esta línea + espacio solo aparece en modo "todos"
   (en modo pestaña individual, cada panel ya se ve solo). */
.tr-tabs__radio[data-tab="all"]:checked ~ .tr-tabs__panels .tr-tabs__panel + .tr-tabs__panel {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--line);
}
.tr-tabs__radio[data-tab="1"]:checked ~ .tr-tabs__bar .tr-tabs__label[data-tab-label="1"],
.tr-tabs__radio[data-tab="2"]:checked ~ .tr-tabs__bar .tr-tabs__label[data-tab-label="2"],
.tr-tabs__radio[data-tab="3"]:checked ~ .tr-tabs__bar .tr-tabs__label[data-tab-label="3"],
.tr-tabs__radio[data-tab="4"]:checked ~ .tr-tabs__bar .tr-tabs__label[data-tab-label="4"],
.tr-tabs__radio[data-tab="5"]:checked ~ .tr-tabs__bar .tr-tabs__label[data-tab-label="5"] {
  background: var(--gold);
  color: var(--white);
}
.tr-tabs__radio[data-tab="all"]:checked ~ .tr-tabs__bar .tr-tabs__all {
  color: var(--gold-dk);
  text-decoration: underline;
}

.category-block + .category-block { margin-top: 40px; }
.category-block__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--rose-dk2);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.category-block .price-row:first-of-type { padding-top: 0; }
.price-row__link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-dk2);
}

/* Tarjeta de precios múltiples (Presoterapia-style: varias duraciones/precios) */
.custom-price-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.custom-price-card:last-child { border-bottom: none; }
.custom-price-card h4 { font-size: 16px; font-weight: 600; color: var(--dark); margin: 0 0 8px; }
.custom-price-card__desc { font-size: 14px; color: var(--dark); margin-bottom: 14px; }
.custom-price-card__indications {
  font-size: 13px;
  color: var(--taupe-dk);
  line-height: 1.5;
  margin-bottom: 16px;
}
.custom-price-card__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rose-dk2);
  margin-bottom: 3px;
}
.custom-price-card__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.custom-price-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--dark);
}
.custom-price-card__row strong { font-size: 15px; font-weight: 700; color: var(--gold-dk); }
.custom-price-card__bonos { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-price-card__bonos span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dk);
}

/* Prompt "pregúntale al asistente" / cross-link a otra ficha */
.tr-ask-assistant {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--rose-dk2);
}

.tr-ask-assistant button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.tr-crosslink {
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tr-crosslink h3 { font-size: 17px; color: var(--dark); }
.tr-crosslink p { font-size: 14px; color: var(--dark); max-width: 480px; }

.tr-cierre {
  padding: 48px 40px;
  text-align: center;
}
.tr-cierre p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  font-style: italic;
  color: var(--dark);
}
.tr-cierre__image {
  display: block;
  width: min(100%, 430px);
  height: 300px;
  margin: 0 auto 24px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center center;
}

/* Hub de Masajes — 2 bloques */
.masajes-blocks {
  padding: 88px 40px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.masajes-block {
  width: 460px;
  max-width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.masajes-block h3 { font-size: 22px; font-weight: 500; color: var(--dark); }
.masajes-block p { font-size: 14px; color: var(--dark); }

/* Rituales — cada ritual es un price-row extendido con prosa */
.tr-rituals { padding: 80px 40px; }
.tr-rituals__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.price-row__prose { font-size: 15px; color: var(--dark); margin-top: 14px; }
.price-row__prose + .price-row__prose { margin-top: 10px; }
.price-row__note {
  font-size: 14px;
  color: var(--dark);
  margin-top: 12px;
}
.price-row__note a { color: var(--rose-dk2); font-weight: 500; }

/* ============================================================
   Footer (nodo 5:342) · 1280×227
   ============================================================ */
footer[role="contentinfo"] {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__brand img { width: 107px; height: 40px; }
.footer__brand p { font-size: 14px; color: var(--dark); }
.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__legal a { font-size: 14px; color: var(--dark); }
.footer__copyright { font-size: 14px; color: var(--dark); }

/* ============================================================
   Responsive — breakpoints por debajo del desktop 1280
   (la sección 8 de este archivo aplica solo al frame Figma
   "Home — desktop 1280"; estos ajustes cubren tablet y móvil
   para que nada se corte y el menú se comporte como un
   toggle de hamburguesa)
   ============================================================ */

/* ---- Tablet (≤1023px): nav se colapsa a hamburguesa, secciones
        con foto pasan a una sola columna ---- */
@media (max-width: 1023px) {
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--z-nav-drop);
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background: var(--white);
    padding: 24px 40px 32px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(61, 32, 31, 0.12);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .nav__links a { font-size: 16px; }
  .nav__menu > .btn-primary { width: 100%; }
  .nav__toggle { display: block; }

  /* Dropdown "Tratamientos" pasa de panel flotante a lista anidada
     dentro del propio menú hamburguesa */
  .nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
  }
  .nav__dropdown {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    box-shadow: none;
    border: none;
    background: var(--cream);
    margin-top: 8px;
    padding: 6px;
    min-width: 0;
  }

  .filosofia__grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .filosofia__item { width: 100%; max-width: 420px; }

  .equipo, .tarjeta-regalo, .ubicacion, .historia, .cosmetica { flex-direction: column; }
  .equipo__content, .tarjeta-regalo__content, .ubicacion__content, .historia__content, .cosmetica__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .equipo__content p, .tarjeta-regalo__content p, .historia__content p, .cosmetica__content p { max-width: 100%; }
  .tarjeta-regalo__content h2, .ubicacion__content h2, .historia__content h2, .cosmetica__content h2 { justify-content: center; }
  .ubicacion__info-block { text-align: left; }
  .ubicacion__map { width: 100%; }
  /* width:100% con height fija (la del desktop) recortaba estas fotos por
     arriba/abajo en tablet (ej. iPad Air vertical, 820px): el contenedor
     se volvía mucho más ancho que alto sin que la foto lo acompañara.
     aspect-ratio mantiene el encuadre original a cualquier ancho. */
  .tarjeta-regalo__img { width: min(200px, 60vw); height: auto; aspect-ratio: 260 / 338; }
  .historia__img { width: 100%; height: auto; aspect-ratio: 500 / 560; }
  .cosmetica__img { width: 100%; height: auto; aspect-ratio: 480 / 340; }
  .equipo__photo { width: 100%; height: auto; aspect-ratio: 560 / 400; }
  .packaging__img { width: min(200px, 60vw); height: auto; aspect-ratio: 260 / 338; }
  .como-funciona__grid { max-width: 100%; }
  .step-card { width: 100%; max-width: 420px; }

  .tr-benefits__grid, .tr-indications__grid { max-width: 100%; }
  .benefit-card { width: 100%; max-width: 400px; }
  .indication-card { width: 100%; max-width: 460px; }
  .tr-pricing__header, .tr-pricing__groups { max-width: 100%; }

  .tr-subsection__header, .tr-subsection__body { max-width: 100%; }
  .tr-tags { max-width: 100%; }
  .tr-gallery { max-width: 100%; }

  .tr-tabs { padding: 32px 20px 64px; }
  .tr-tabs__bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-inline: -20px;
    padding-inline: 20px;
    /* Sin mask-image: en WebKit/iOS, mask-image sobre un contenedor con
       scroll bloquea el scroll táctil nativo (mismo bug que en
       .tratamientos__viewport, ver arriba). */
  }
  .tr-tabs__bar::-webkit-scrollbar { display: none; }
  .tr-tabs__label { flex-shrink: 0; white-space: nowrap; }
  .tr-tabs__all { flex-shrink: 0; white-space: nowrap; margin-left: 8px; }
  .custom-price-card__row { flex-wrap: wrap; gap: 2px; }
}

/* ---- Móvil (≤640px): padding más ajustado, tipografía menor,
        tarjetas de carrusel dimensionadas para no cortarse ---- */
@media (max-width: 640px) {
  .nav { padding-inline: 20px; }
  .filosofia,
  .tratamientos,
  .cta-strip,
  .equipo,
  .resenas,
  .tarjeta-regalo,
  .ubicacion,
  .cta-final,
  .footer,
  .historia,
  .team,
  .espacio,
  .cosmetica,
  .packaging,
  .como-funciona,
  .para-quien,
  .tr-intro,
  .tr-benefits,
  .tr-indications,
  .tr-pricing,
  .tr-faqs,
  .tr-fallback,
  .tr-subsection,
  .tr-tags-section,
  .tr-gallery-section,
  .masajes-blocks {
    padding-inline: 20px;
  }
  .filosofia, .resenas, .tratamientos, .team, .como-funciona, .tr-benefits, .tr-indications, .tr-faqs, .tr-tags-section, .masajes-blocks { padding-block: 56px; }
  .masajes-block { padding: 24px; }
  .masajes-block .btn { white-space: normal; text-align: center; }
  .equipo, .tarjeta-regalo, .ubicacion, .historia, .espacio, .cosmetica, .packaging, .tr-intro, .tr-pricing, .tr-subsection, .tr-gallery-section { padding-block: 64px; }
  .cta-final, .para-quien, .tr-fallback { padding-block: 64px; }

  /* min-height más bajo que antes: con 560px fijo, la foto (formato
     apaisado 2:1) quedaba recortada casi al centro y se perdía el
     contexto (pincel, pestañas). Con menos alto forzado, el texto sigue
     entrando de sobra y se ve mucha más composición de la foto. */
  .hero { height: auto; min-height: 420px; padding-block: 48px; }
  .hero__inner { padding-inline: 16px; }
  /* Línea Cosmética: foto en formato "flat lay" muy ancho (frasco +
     gotero a los lados, la mancha de sérum en el centro). Con el
     min-height general se recortaba a una franja central que perdía
     el gotero. Menos alto + encuadre más a la izquierda mantiene el
     bote y la caída del sérum, que es lo que cuenta la foto. */
  .hero--cosmetica { min-height: 300px; }
  .hero--cosmetica .hero__img { object-position: 30% 50%; }
  /* Foto macro (pestañas + brocha + mascarilla): el recorte centrado por
     defecto en móvil dejaba solo textura de piel y la brocha, sin ningún
     punto de referencia reconocible. Desplazar hacia la izquierda deja
     ojo/pestañas + brocha dentro del encuadre, que sí se lee como
     "aplicando un tratamiento facial". */
  .hero--home .hero__img { object-position: 15% 50%; }
  .hero h1 { font-size: 32px; }
  .hero__subtitle { font-size: 15px; }

  .tratamientos__header h2,
  .resenas__header h2,
  .cta-final h2,
  .tarjeta-regalo__content h2,
  .ubicacion__content h2,
  .historia__content h2,
  .team__header h2,
  .espacio__header h2,
  .cosmetica__content h2,
  .como-funciona__header h2,
  .tr-benefits__header h2,
  .tr-indications__header h2,
  .tr-faqs__header h2,
  .tr-subsection__header h2 { font-size: 22px; }
  .para-quien h2 { font-size: 22px; }

  .treatment-card { width: min(240px, 68vw); padding: 20px; }
  .treatment-card__img { height: 160px; }

  .review-card { width: min(320px, 82vw); }

  /* Igual que en el breakpoint de tablet: height fija sin width/aspect-ratio
     recortaba estas fotos en móvil también — misma corrección aquí. */
  .equipo__photo { width: 100%; height: auto; aspect-ratio: 560 / 400; }
  .tarjeta-regalo__img { width: min(200px, 60vw); height: auto; aspect-ratio: 260 / 338; }
  .ubicacion__map { width: 100%; height: auto; aspect-ratio: 559 / 314; }
  .historia__img { width: 100%; height: auto; aspect-ratio: 500 / 560; }
  .cosmetica__img { width: 100%; height: auto; aspect-ratio: 480 / 340; }
  .team__grid { display: flex; }
  .team-card { width: min(280px, 82vw); }
  .espacio__slide { width: min(280px, 82vw); height: 280px; }

  .packaging__img { width: min(200px, 60vw); height: auto; aspect-ratio: 260 / 338; }

  .tr-gallery figure { width: min(280px, 82vw); }
  .tr-gallery img { width: min(280px, 82vw); height: 280px; }

  .tr-intro__img { width: 100%; height: auto; aspect-ratio: 496 / 380; }
  .tr-service-images img { width: min(320px, 82vw); height: 240px; }
}

/* ============================================================
   Línea Cosmética — catálogo de productos con tarjeta flip
   Desktop: hover voltea la tarjeta. Táctil/teclado: el botón "+"
   (frontal) y "✕" (trasera) alternan la clase is-flipped, que
   hace lo mismo que el hover — así el estado por click persiste
   aunque el ratón se aleje, y funciona igual en pantallas táctiles.
   ============================================================ */
.productos-tabs .tr-tabs__panels { max-width: 1240px; }

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.product-card {
  perspective: 1200px;
  -webkit-perspective: 1200px;
  aspect-ratio: 380 / 497;
  /* El recorte de esquinas vive aquí, en el elemento que NO gira,
     y no en cada cara. overflow:hidden combinado con
     backface-visibility en el mismo elemento con transform 3D es
     un bug documentado de WebKit (Safari/iOS): la cara trasera se
     ve espejada por encima de la frontal incluso sin voltear. */
  border-radius: 12px;
  overflow: hidden;
}

.product-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  /* Fuerza su propia capa de composición: sin esto, Safari/iOS a
     veces pinta la cara trasera espejada encima de la frontal
     desde el primer render, antes de cualquier interacción. */
  transform: translateZ(0) rotateY(0deg);
  -webkit-transform: translateZ(0) rotateY(0deg);
}

.product-card.is-flipped .product-card__inner {
  transform: translateZ(0) rotateY(180deg);
  -webkit-transform: translateZ(0) rotateY(180deg);
}
/* El volteo por hover queda solo para ratón de verdad: en táctil,
   WebKit a veces simula :hover al tocar, lo que choca con el click
   que alterna is-flipped y deja la tarjeta parpadeando entre
   estados. En táctil manda solo el tap (is-flipped). */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__inner {
    transform: translateZ(0) rotateY(180deg);
    -webkit-transform: translateZ(0) rotateY(180deg);
  }
}

.product-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.product-card__face--front { display: flex; flex-direction: column; }
.product-card.is-flipped .product-card__face--front {
  visibility: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__face--front {
    visibility: hidden;
  }
}

.product-card--no-image {
  display: none;
}

.product-card__photo {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.product-card__photo.photo-placeholder {
  display: none;
  background: var(--rose);
  flex: 1;
}

.product-card__plus {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  color: var(--dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(61, 32, 31, 0.18);
  z-index: 1;
}
.product-card__plus:hover { background: var(--gold); color: var(--white); }

.product-card__info { padding: 16px 18px; }
.product-card__info h3 { font-size: 16px; font-weight: 600; color: var(--dark); margin: 0 0 4px; }
.product-card__info p { font-size: 14px; color: var(--taupe-dk); margin: 0; }

.product-card__face--back {
  display: flex;
  flex-direction: column;
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
  padding: 24px 22px;
  overflow-y: auto;
  /* Refuerzo además de backface-visibility: en algunas versiones de
     Safari/iOS backface-visibility:hidden no oculta bien la cara
     trasera antes de voltear (se ve espejada encima de la frontal).
     visibility:hidden no depende de esa propiedad y es infalible. */
  visibility: hidden;
}
.product-card.is-flipped .product-card__face--back {
  visibility: visible;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__face--back {
    visibility: visible;
  }
}
.product-card__close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  border: none;
  background: var(--cream-2);
  color: var(--dark);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.product-card__face--back h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 0 0 4px; }
.product-card__ideal {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rose-dk2);
  background: var(--blush);
  padding: 3px 9px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.product-card__benefit {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.product-card__detail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--taupe-dk);
  margin: 0 0 4px;
}
.product-card__detail { font-size: 13px; color: var(--taupe-dk); line-height: 1.5; margin: 0 0 14px; }
.product-card__tip {
  font-size: 13px;
  font-style: italic;
  color: var(--gold-dk);
  background: var(--cream);
  border-radius: 8px;
  padding: 10px 12px;
  margin: auto 0 0;
}

/* Micro-interacción táctil: el "+" pulsa unas veces al cargar
   para dar a entender que la tarjeta es interactiva, ya que en
   pantallas táctiles no existe hover que lo insinúe solo. */
@media (hover: none) {
  .product-card__plus { animation: product-card-pulse 1.4s ease-in-out 0.8s 3; }
}
@keyframes product-card-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .product-card__inner { transition: none; }
  .product-card__plus { animation: none; }
}

@media (max-width: 1023px) {
  .productos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .productos-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  /* Altura fija (no aspect-ratio): a este ancho, el texto de la cara
     trasera (activos clave, cómo usarlo) envuelve en más líneas y con
     420px de alto se cortaba a media frase en los productos con más
     ingredientes. 600px cubre el caso más largo con margen. */
  .product-card { width: 100%; height: 600px; }
}

/* ============================================================
   Páginas legales — Aviso legal / Privacidad / Cookies
   Columna de lectura larga, mismo design system, sin componentes
   de marketing (cards, hero con foto, etc).
   ============================================================ */
.legal-hero {
  padding: 64px 40px 32px;
  text-align: center;
}
.legal-hero .eyebrow { display: block; margin-bottom: 10px; }
.legal-hero__updated { font-size: 14px; color: var(--taupe-dk); margin-top: 10px; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 88px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; color: var(--dark); margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; }
.legal-content li { font-size: 15px; color: var(--dark); margin-bottom: 6px; }
.legal-content a { color: var(--rose-dk2); font-weight: 500; }
.legal-content strong { font-weight: 600; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 14px;
}
.legal-content th, .legal-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-content th { font-weight: 600; color: var(--dark); background: var(--cream); }
.legal-content td { color: var(--dark); }
.legal-content__note {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.legal-content__note p { font-size: 14px; color: var(--taupe-dk); margin: 0; }

@media (max-width: 640px) {
  .legal-hero { padding: 48px 24px 24px; }
  .legal-content { padding: 40px 24px 64px; }
  .legal-content table, .legal-content thead, .legal-content tbody, .legal-content th, .legal-content td, .legal-content tr {
    display: block;
  }
  .legal-content thead { display: none; }
  .legal-content tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legal-content td { border-bottom: none; padding: 4px 0; }
  .legal-content td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--taupe-dk); text-transform: uppercase; }
}
