/* ═══════════════════════════════════════════════════════════════
   TERAPEANDO — hoja de estilos
   Paleta: rosa pastel + cremita. Diseño cálido, elegante, relajante.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Variables ─────────────────────────────────────────────── */
:root {
  /* Rosas */
  --rose-50:  #FDF4F7;
  --rose-100: #F9E6EC;
  --rose-200: #F3D3DE;
  --rose-300: #E9B9CA;
  --rose-400: #DB9BB0;
  --rose-500: #C67D95;
  --rose-600: #A65F79;

  /* Cremas */
  --cream:      #FDF8F2;
  --cream-100:  #FBF1E6;
  --cream-200:  #F5E6D7;
  --sand:       #E8D5C4;

  /* Tinta */
  --ink:        #4A3B41;
  --ink-soft:   #6E5A61;
  --ink-mute:   #938086;

  --white: #FFFFFF;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Segoe UI', -apple-system, sans-serif;

  /* Formas */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  --shadow-xs: 0 2px 10px rgba(166, 95, 121, .06);
  --shadow-sm: 0 6px 24px rgba(166, 95, 121, .08);
  --shadow:    0 14px 44px rgba(166, 95, 121, .12);
  --shadow-lg: 0 26px 70px rgba(166, 95, 121, .16);

  --ease: cubic-bezier(.22, .68, .28, 1);
  --maxw: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* El atributo hidden tiene que ganarle a cualquier display de este archivo.
   Sin esto, ocultar por JS un elemento con display:flex/grid no funciona. */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: var(--rose-600); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--rose-500); }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--rose-200); color: var(--ink); }

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

/* ── 3. Layout ────────────────────────────────────────────────── */
.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, 780px); }

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; position: relative; }
.section--cream { background: var(--cream-100); }

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section__title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  margin-bottom: .35em;
}

.section__lead {
  font-size: 1.075rem;
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.6;
}

.eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-500);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.section__head .eyebrow { justify-content: center; }
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--rose-300);
}
.eyebrow::after { display: none; }
.section__head .eyebrow::after { display: block; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* ── 4. Botones ───────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--rose-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .93rem;
  font-weight: 400;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn__icon { width: 19px; height: 19px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(198, 125, 149, .32);
}
.btn--primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(198, 125, 149, .42);
}

.btn--ghost {
  background: transparent;
  border-color: var(--rose-300);
  color: var(--rose-600);
}
.btn--ghost:hover {
  background: var(--rose-100);
  border-color: var(--rose-400);
  transform: translateY(-2px);
}

.btn--soft {
  background: var(--rose-100);
  color: var(--rose-600);
  border-color: transparent;
}
.btn--soft:hover {
  background: var(--rose-200);
  color: var(--rose-600);
  transform: translateY(-2px);
}

.btn--sm { padding: .62rem 1.3rem; font-size: .84rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── 5. Navegación ────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.nav.is-stuck {
  background: rgba(253, 248, 242, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(233, 185, 202, .45), var(--shadow-xs);
  padding: .6rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.nav__logo:hover { color: var(--rose-600); }
/* El isotipo es apaisado (2:1), así que se fija el ALTO y el ancho sale solo */
.nav__logo-mark { height: 34px; flex: none; display: block; }
.nav__logo-mark img { height: 100%; width: auto; display: block; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
/* El "online" del logo, en la tipografía de texto y más chico */
.nav__logo-text em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: .46em;
  letter-spacing: .22em;
  text-transform: lowercase;
  color: var(--rose-500);
  margin-left: .45em;
  vertical-align: .12em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__menu a:not(.btn) {
  color: var(--ink-soft);
  font-size: .93rem;
  position: relative;
  padding: .25rem 0;
}
.nav__menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--rose-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__menu a:not(.btn):hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__menu a.is-active { color: var(--rose-600); }

.nav__toggle {
  display: none;
  width: 44px; height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ── 6. Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(5rem, 9vw, 8rem);
  background: linear-gradient(165deg, var(--rose-50) 0%, var(--cream-100) 55%, var(--cream) 100%);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.blob--1 { width: 460px; height: 460px; background: var(--rose-200); top: -140px; right: -80px; animation: float 18s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: var(--cream-200); bottom: -120px; left: -100px; animation: float 22s ease-in-out infinite reverse; }
.blob--3 { width: 260px; height: 260px; background: var(--rose-100); top: 42%; left: 44%; animation: float 26s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, -28px) scale(1.07); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.4rem, 1.5rem + 3.9vw, 4.3rem);
  margin-bottom: .45em;
  letter-spacing: -.005em;
}
.hero__title em {
  font-style: italic;
  color: var(--rose-500);
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 2%; right: 2%; bottom: .06em;
  height: .28em;
  background: var(--rose-200);
  opacity: .5;
  border-radius: 100px;
  z-index: -1;
}

.hero__text {
  font-size: 1.1rem;
  max-width: 33em;
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.6rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.7rem;
  font-size: .87rem;
  color: var(--ink-mute);
}
.hero__badges li { display: flex; align-items: center; gap: .5rem; }
.hero__badges span { color: var(--rose-400); }

/* Retrato */
.hero__figure { display: flex; justify-content: center; }
.portrait { position: relative; width: min(100%, 420px); }
.portrait img,
.portrait__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 220px 220px var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
/* Marco decorativo concéntrico alrededor del retrato */
.portrait::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid var(--rose-300);
  border-radius: 238px 238px 62px 62px;
  opacity: .55;
  pointer-events: none;
}

.portrait__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: linear-gradient(160deg, var(--rose-100), var(--cream-200));
  color: var(--rose-600);
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-align: center;
}
.portrait__placeholder small {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--ink-mute);
  opacity: .8;
}
.portrait__placeholder--alt { border-radius: var(--radius-lg); aspect-ratio: 3 / 4; }

.portrait__card {
  position: absolute;
  left: -12%;
  bottom: -4%;
  background: var(--white);
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 148px;
}
.portrait__card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}
.portrait__card span { font-size: .76rem; color: var(--ink-mute); }
.portrait__card .stars { justify-content: center; margin-top: .3rem; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: clamp(50px, 6vw, 90px); }

/* ── 7. Sobre mí ──────────────────────────────────────────────── */
.values { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.values li { display: flex; gap: 1rem; align-items: flex-start; }
.values__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-500);
  font-size: 1.1rem;
}
.values strong { color: var(--ink); font-weight: 500; display: block; }
.values p { margin: .1rem 0 0; font-size: .95rem; color: var(--ink-mute); }

.about__figure { margin: 0; }
.about__img img,
.about__img .portrait__placeholder {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.about__figure figcaption {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.55;
  color: var(--rose-600);
  padding-left: 1.4rem;
  border-left: 2px solid var(--rose-300);
}
.about__figure figcaption span { font-size: 2rem; line-height: 0; opacity: .5; }

/* ── 8. Tarjetas de servicios ─────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  padding: 2.3rem 2rem 2rem;
  box-shadow: var(--shadow-xs);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--rose-100), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--rose-200);
}
.card:hover::after { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--rose-100), var(--cream-200));
  color: var(--rose-600);
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.card p { font-size: .96rem; margin-bottom: 1.2rem; }

.card__list { display: grid; gap: .45rem; font-size: .87rem; color: var(--ink-mute); }
.card__list li { display: flex; align-items: center; gap: .55rem; }
.card__list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rose-300);
  flex: none;
}

.card--featured {
  background: linear-gradient(165deg, var(--rose-50), var(--white) 60%);
  border-color: var(--rose-200);
  box-shadow: var(--shadow-sm);
}
.card__tag {
  position: absolute;
  top: 1.3rem; right: 1.3rem;
  background: var(--rose-400);
  color: var(--white);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 100px;
}

/* ── 9. Línea de tiempo (SIN USO) ──────────────────────────────
   La sección "Formación" se quitó del sitio. Estos estilos quedan
   por si más adelante se quiere volver a agregar una trayectoria.
   ─────────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 100px; top: 14px; bottom: 12px;
  width: 1px;
  background: linear-gradient(var(--rose-200), var(--rose-300), transparent);
}

.timeline__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--rose-500);
  text-align: right;
  padding-top: .15rem;
}

.timeline__body { position: relative; }
.timeline__body::before {
  content: '';
  position: absolute;
  left: -21.5px; top: .6rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--rose-400);
  box-shadow: 0 0 0 5px var(--cream-100);
}
.timeline__body h3 { font-size: 1.4rem; margin-bottom: .15rem; }
.timeline__place {
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: .4rem;
}
.timeline__body p:last-child { margin-bottom: 0; font-size: .95rem; }

.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.credential {
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius);
  padding: 1.7rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.credential strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--rose-500);
  line-height: 1.1;
}
.credential span { font-size: .84rem; color: var(--ink-mute); }

/* ── 10. Testimonios ──────────────────────────────────────────── */
.section--testimonials {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--rose-50), transparent 70%),
    var(--cream);
}

.stars { display: flex; gap: .16rem; color: var(--rose-400); }
.stars svg { width: 15px; height: 15px; }
.stars--sm svg { width: 12px; height: 12px; }
.stars--lg svg { width: 24px; height: 24px; }

.rating-summary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-top: 1.6rem;
  padding: 1.1rem 2.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--rose-100);
}
.rating-summary p { margin: 0; font-size: .88rem; color: var(--ink-mute); }
.rating-summary strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 500;
}

.testimonials {
  columns: 3;
  column-gap: 1.6rem;
}

/* Selección de la home: una fila pareja en lugar de mampostería.

   La cantidad de columnas la fija el JS en --cols (1, 2 o 3, según cuántas
   reseñas haya). NO usar repeat(auto-fit, minmax(280px, 380px)): cuando el
   máximo es una medida fija, el navegador calcula cuántas columnas entran
   usando ESE máximo, y terminaban entrando 2 en lugar de 3.

   El tope de 380px evita que una sola reseña ocupe todo el ancho; como es
   un máximo, las tarjetas se achican solas si el espacio no alcanza. */
.testimonials--row {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 380px));
  justify-content: center;
  gap: 1.6rem;
  align-items: stretch;
}

/* Si no entran tres en fila, van las tres en una sola columna:
   nunca 2 arriba y 1 suelta abajo. */
@media (max-width: 940px) {
  .testimonials--row { grid-template-columns: minmax(0, 420px); }
}
.testimonials--row .testimonial {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;

  /* Cuántas líneas de reseña se muestran en la portada antes de recortar.
     Subilo o bajalo acá y se ajusta todo: el alto de las tarjetas sale de esto. */
  --lineas-resena: 6;
}

/* El texto vive en una caja de alto fijo. Las reseñas largas se recortan;
   las cortas quedan centradas en vez de dejar un hueco abajo. Así las tres
   tarjetas de la fila miden lo mismo aunque los textos sean muy dispares. */
.testimonials--row .testimonial__body {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  min-height: calc(var(--lineas-resena) * 1.72em);
  margin-bottom: 1.4rem;
}
.testimonials--row .testimonial__text {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: var(--lineas-resena);
  line-clamp: var(--lineas-resena);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Degradado y enlace, solo cuando la reseña quedó cortada */
.testimonials--row .testimonial.is-clamped .testimonial__body::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3.2em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white) 82%);
  pointer-events: none;
}

.testimonial__more { display: none; }
.testimonials--row .testimonial.is-clamped .testimonial__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .84rem;
  color: var(--rose-600);
  margin: -.9rem 0 1.1rem;
  transition: gap .3s var(--ease);
}
.testimonials--row .testimonial.is-clamped .testimonial__more:hover { gap: .6rem; }

/* En la fila, el dato de contexto va a una sola línea: si una reseña tiene
   un detalle largo, su pie baja y deja de alinearse con las otras dos.
   El detalle completo se ve igual en testimonios.html. */
.testimonials--row .testimonial__meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial {
  break-inside: avoid;
  margin-bottom: 1.6rem;
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem 1.7rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.testimonial__quote {
  position: absolute;
  top: .4rem; right: 1.4rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--rose-100);
  pointer-events: none;
  user-select: none;
}

.testimonial > .stars { margin-bottom: .85rem; }

.testimonial__text {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  position: relative;
}

.testimonial__foot {
  display: flex;
  align-items: center;
  gap: .85rem;
  border-top: 1px solid var(--rose-100);
  padding-top: 1.1rem;
}
.testimonial__avatar {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--rose-200), var(--cream-200));
  color: var(--rose-600);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.testimonial__who { min-width: 0; }
.testimonial__name { color: var(--ink); font-weight: 400; font-size: .96rem; display: block; }
.testimonial__meta { display: block; font-size: .77rem; color: var(--ink-mute); letter-spacing: .04em; line-height: 1.5; }

.testimonials__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: 2.4rem;
}

/* ── 11. Preguntas frecuentes ─────────────────────────────────── */
.faq { display: grid; gap: .8rem; }

.faq__item {
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-xs); border-color: var(--rose-200); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 3.4rem 1.25rem 1.6rem;
  font-size: 1.03rem;
  color: var(--ink);
  position: relative;
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--rose-600); }

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 1.6rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--rose-500);
  border-bottom: 1.5px solid var(--rose-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }

.faq__body { padding: 0 1.6rem 1.5rem; }
.faq__body p { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.faq__body p + p { margin-top: .85rem; }
.faq__item[open] .faq__body { animation: fadeDown .4s var(--ease); }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── 12. Contacto ─────────────────────────────────────────────── */
.section--contact {
  background: linear-gradient(180deg, var(--cream) 0%, var(--rose-50) 100%);
}

.contact {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__list { display: grid; gap: 1rem; margin: 2rem 0; }
.contact__list li { display: flex; align-items: center; gap: .9rem; font-size: .97rem; }
.contact__icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--rose-500);
  box-shadow: var(--shadow-xs);
}

.contact__social { display: flex; gap: .7rem; }
.contact__social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--rose-500);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.contact__social a:hover { transform: translateY(-3px); background: var(--rose-400); color: var(--white); }
.contact__social svg { width: 20px; height: 20px; }

.contact__form {
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow);
}
.contact__form h3 { font-size: 1.7rem; margin-bottom: 1.4rem; }

.field { display: block; margin-bottom: 1.1rem; }
.field > span {
  display: block;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem 1.05rem;
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-sm);
  background: var(--rose-50);
  font-family: inherit;
  font-size: .97rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: .65; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(219, 155, 176, .17);
}
.field.has-error input, .field.has-error textarea { border-color: #D98A8A; }

.form__note {
  font-size: .8rem;
  color: var(--ink-mute);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.55;
}
.form__note.is-ok { color: var(--rose-600); }
.form__note.is-error { color: #C0706F; }

/* ── 12b. PÁGINA DE RESEÑAS (testimonios.html) ────────────────── */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(165deg, var(--rose-50) 0%, var(--cream-100) 60%, var(--cream) 100%);
  text-align: center;
}
.page-head__bg { position: absolute; inset: 0; pointer-events: none; }
.page-head__inner { position: relative; z-index: 1; }

.page-head .eyebrow { justify-content: center; }
.page-head .eyebrow::after { display: block; }

.page-head__title {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  margin-bottom: .4em;
}
.page-head__lead {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--ink-mute);
  font-size: 1rem;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .87rem;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-bottom: 1.6rem;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.backlink:hover { gap: .8rem; color: var(--rose-600); }

/* Panel de puntaje con distribución */
.rating-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 620px;
  margin: 2.6rem auto 0;
  padding: 1.7rem 2rem;
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
/* Cuando no se dibujan las barras, el panel se achica y queda centrado */
.rating-panel--solo {
  grid-template-columns: 1fr;
  max-width: 300px;
  padding: 1.6rem 1.8rem;
}

.rating-panel__score { text-align: center; }
.rating-panel__score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.rating-panel__score .stars { justify-content: center; margin: .45rem 0 .3rem; }
.rating-panel__score span { font-size: .8rem; color: var(--ink-mute); }

.rating-panel__bars { display: grid; gap: .38rem; }
.rating-bar {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: var(--ink-mute);
}
.rating-bar__label { color: var(--rose-500); white-space: nowrap; }
.rating-bar__track {
  height: 7px;
  border-radius: 100px;
  background: var(--rose-100);
  overflow: hidden;
}
.rating-bar__fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--rose-300), var(--rose-400));
  transition: width .8s var(--ease);
}
.rating-bar__count { text-align: right; }

/* Barra de herramientas: buscador + orden */
.section--reviews { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

.reviews-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}
.search__icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--rose-400);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: .78rem 1rem .78rem 2.9rem;
  border: 1px solid var(--rose-200);
  border-radius: 100px;
  background: var(--white);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.search input::placeholder { color: var(--ink-mute); opacity: .7; }
.search input:focus {
  outline: none;
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(219, 155, 176, .17);
}
.search input::-webkit-search-cancel-button { cursor: pointer; }

.sort { display: flex; align-items: center; gap: .6rem; }
.sort > span {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.sort select {
  padding: .62rem 1rem;
  border: 1px solid var(--rose-200);
  border-radius: 100px;
  background: var(--white);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
}
.sort select:focus {
  outline: none;
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(219, 155, 176, .17);
}

.reviews-count {
  font-size: .84rem;
  color: var(--ink-mute);
  margin: 0 0 1.8rem;
}
.reviews-empty {
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  padding: 2.5rem 0;
  margin: 0;
}

/* Aviso previo al formulario */
.review-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-left: 3px solid var(--rose-400);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
}
.review-note__icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-500);
}
.review-note p { margin: 0; font-size: .9rem; line-height: 1.65; }
.review-note strong { color: var(--ink); font-weight: 500; }

/* Formulario de reseña */
.review-form {
  background: var(--white);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow);
}
.review-form .field > span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: .75;
}
.field__counter {
  display: block;
  text-align: right;
  font-size: .74rem;
  color: var(--ink-mute);
  margin-top: .3rem;
}

/* Selector de estrellas */
.rating-input {
  border: 0;
  margin: 0 0 1.6rem;
  padding: 1.2rem 1.3rem;
  background: var(--rose-50);
  border-radius: var(--radius);
  text-align: center;
}
.rating-input legend {
  float: left;
  width: 100%;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .7rem;
  text-align: center;
}
.rating-input__stars {
  clear: both;              /* la legend va flotada: sin esto las estrellas se le pegan al lado */
  display: flex;
  justify-content: center;
  gap: .25rem;
  margin-bottom: .5rem;
}
.rating-input__stars.has-error { animation: shake .4s var(--ease); }
@keyframes shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.star-btn {
  background: none;
  border: 0;
  padding: .25rem;
  cursor: pointer;
  color: var(--rose-200);
  line-height: 0;
  border-radius: 8px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.star-btn svg { width: 34px; height: 34px; }
.star-btn:hover { transform: scale(1.14); }
.star-btn.is-on { color: var(--rose-400); }

.rating-input__label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rose-600);
  min-height: 1.6em;
}

/* Casilla de consentimiento */
.check {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin: 1.4rem 0 1.6rem;
  font-size: .87rem;
  line-height: 1.6;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: .15rem;
  accent-color: var(--rose-500);
  cursor: pointer;
}
.check.has-error span { color: #C0706F; }

/* Mensaje de éxito */
.review-success {
  background: var(--white);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeDown .5s var(--ease);
}
.review-success__icon {
  display: inline-grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--rose-100), var(--cream-200));
  color: var(--rose-500);
  margin-bottom: 1.1rem;
}
.review-success__icon svg { width: 34px; height: 34px; }
.review-success h3 { font-size: 1.8rem; margin-bottom: .4rem; }
.review-success p { max-width: 46ch; margin: 0 auto 1.6rem; }

/* Llamada final */
.cta-final { text-align: center; }
.cta-final p { max-width: 52ch; margin-inline: auto; }
.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: 1.8rem;
}

/* ── 13. Pie ──────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(253, 248, 242, .72);
  padding: 3.5rem 0 2.5rem;
  font-size: .9rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand .nav__logo-mark { height: 34px; }
.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  display: block;
  line-height: 1.2;
}
.footer__brand p { margin: 0; font-size: .82rem; opacity: .7; }

.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer__nav a { color: rgba(253, 248, 242, .72); font-size: .88rem; }
.footer__nav a:hover { color: var(--rose-300); }

.footer__legal {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(253, 248, 242, .14);
  font-size: .78rem;
  line-height: 1.7;
  opacity: .72;
}
.footer__legal strong { color: var(--rose-300); font-weight: 400; }

/* ── 14. WhatsApp flotante ────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #5FCB7E, #3FA45F);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(63, 164, 95, .38);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); color: var(--white); box-shadow: 0 14px 34px rgba(63, 164, 95, .5); }

/* ── 15. Animaciones de aparición ─────────────────────────────── */
/* Solo se ocultan si hay JavaScript: si está desactivado, todo se ve normal. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay   { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }

/* ── 16. Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .testimonials { columns: 2; }
}

@media (max-width: 620px) {
  .rating-panel {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.4rem 1.3rem;
  }
  .reviews-toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .sort { justify-content: space-between; }
  .sort select { flex: 1; margin-left: .8rem; }
  .star-btn svg { width: 30px; height: 30px; }
  .review-note { flex-direction: column; gap: .7rem; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }

  /* El logo y el botón quedan siempre por encima del panel desplegado */
  .nav__logo, .nav__toggle { position: relative; z-index: 2; }
  .nav.is-open { background: var(--cream); }

  .nav__menu {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 5.6rem 1.6rem 2rem;
    max-height: 100dvh;
    overflow-y: auto;
    background: var(--cream);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    transition: transform .45s var(--ease);
    text-align: center;
  }
  .nav__menu.is-open { transform: none; }
  .nav__menu a:not(.btn) {
    padding: .85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rose-100);
  }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 1.1rem; align-self: center; }

  .hero { padding-top: 7rem; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .portrait { width: min(100%, 300px); }
  .portrait__card { left: auto; right: -4%; bottom: -6%; }
  .hero__actions, .hero__badges { justify-content: center; }
  .hero__text { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .eyebrow::after { display: block; }

  .grid-2, .contact { grid-template-columns: 1fr; }
  .about__figure { order: -1; }

  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .testimonials { columns: 1; }

  .timeline { padding-left: 0; }
  .timeline::before { left: 6px; }
  .timeline__item { grid-template-columns: 1fr; gap: .35rem; padding-left: 2.2rem; }
  .timeline__year { text-align: left; }
  .timeline__body::before { left: -2.2rem; top: -1.6rem; }

  .card { padding: 1.9rem 1.5rem; }
  .rating-summary { padding: 1rem 1.4rem; }
  .whatsapp-fab { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}

/* ── 17. Accesibilidad / impresión ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .whatsapp-fab, .hero__bg, .testimonials__actions { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
