/* =============================================================
   Dra. Cristina Ionescu — Medicina Estética y Nutrición
   Sistema de diseño · "Editorial médico cálido"
   Agencia Ícaro
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Color */
  --ink: #1b1a18;          /* texto / tinta */
  --ink-soft: #4a463f;     /* texto secundario */
  --ink-mute: #8a8378;     /* texto terciario */
  --ivory: #faf6f1;        /* fondo base marfil cálido */
  --ivory-deep: #f1e9df;   /* fondo seccción alterna */
  --cream: #fffdfa;        /* tarjetas / superficies */
  --nude: #e7c9b8;         /* acento nude */
  --nude-deep: #d9a689;    /* acento nude intenso */
  --blush: #f6dedd;        /* blush rosado */
  --blush-deep: #efc9c6;
  --gold: #b08d57;         /* dorado mate premium */
  --gold-soft: #c9ad82;
  --line: #e6ddd2;         /* bordes finos */
  --line-strong: #d8ccbd;

  /* Tipografía */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, "Segoe UI", sans-serif;

  /* Escala fluida */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 2rem);
  --step-3:  clamp(1.9rem, 1.66rem + 1.2vw, 2.85rem);
  --step-4:  clamp(2.4rem, 2rem + 2vw, 4rem);
  --step-5:  clamp(3rem, 2.3rem + 3.4vw, 5.6rem);

  /* Espaciado / radios / sombras */
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 14px;
  --radius-lg: 26px;
  --radius-pill: 100px;
  --shadow-sm: 0 2px 14px rgba(40, 30, 20, 0.06);
  --shadow: 0 18px 50px -22px rgba(60, 42, 28, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(60, 42, 28, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select, button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. TIPOGRAFÍA ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
.display { font-size: var(--step-5); font-weight: 360; line-height: 1.02; letter-spacing: -0.022em; }
h1, .h1 { font-size: var(--step-4); }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); }
h4, .h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); font-weight: 350; }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.is-centered { justify-content: center; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-ink { background: var(--ink); color: var(--ivory); }
.bg-blush { background: linear-gradient(160deg, var(--blush) 0%, var(--ivory) 90%); }
.bg-nude { background: linear-gradient(160deg, #f3ddcf 0%, var(--ivory) 92%); }

.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- 5. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.9em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  /* dos capas de fondo: el "agua" (gradiente, altura 0) sobre el color base */
  background-image: linear-gradient(to top, var(--blush-deep) 0%, var(--gold) 50%, var(--nude) 100%);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% 0%;
  background-color: var(--ink);
  color: var(--ivory);
  transition: background-size 0.55s var(--ease), color 0.45s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform, background-size;
}
.btn:hover, .btn:focus-visible { background-size: 100% 100%; color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background-color: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); background-image: linear-gradient(to top, var(--gold), var(--nude), var(--blush)); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn--light { background-color: var(--ivory); color: var(--ink); background-image: linear-gradient(to top, var(--gold), var(--nude), var(--blush)); }
.btn--light:hover { color: var(--ink); }
.btn--gold { background-color: var(--gold); background-image: linear-gradient(to top, var(--ink), #3a3128); color: #fff; }
.btn--gold:hover { color: #fff; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1.5px solid var(--nude-deep); padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.9em; color: var(--gold); border-color: var(--gold); }

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), padding 0.45s var(--ease);
  padding-block: 1.1rem;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.scrolled {
  background: rgba(250, 246, 241, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand__mark { width: 40px; height: 40px; transition: transform 0.5s var(--ease), filter 0.45s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.04); }
/* logo negro invisible sobre hero oscuro: lo volvemos blanco hasta hacer scroll */
.site-header:not(.scrolled) .brand__mark { filter: brightness(0) invert(1); }
.brand__name { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: 0.02em; }
.brand__name small { display: block; font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 3px; }
/* color del logo: por defecto la cabecera está sobre hero oscuro */
.site-header:not(.scrolled) .brand__name { color: var(--ivory); }
.site-header:not(.scrolled) .brand__name small { color: var(--nude); }
.site-header.scrolled .brand__name { color: var(--ink); }
.site-header.scrolled .brand__name small { color: var(--gold); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__link {
  position: relative; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ivory); padding: 0.4em 0; transition: color 0.3s;
}
.site-header.scrolled .nav__link { color: var(--ink-soft); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold); }
.site-header.scrolled .nav__link:hover { color: var(--ink); }

/* dropdown */
.has-sub { position: relative; }
.has-sub__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.7rem; min-width: 250px;
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease); z-index: 20;
}
.has-sub:hover .has-sub__panel, .has-sub:focus-within .has-sub__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-sub__panel a {
  display: flex; flex-direction: column; gap: 2px; padding: 0.65rem 0.9rem; border-radius: 9px;
  color: var(--ink); transition: background 0.25s, color 0.25s;
}
.has-sub__panel a span { font-size: 0.95rem; font-weight: 600; }
.has-sub__panel a small { font-size: 0.78rem; color: var(--ink-mute); font-weight: 400; }
.has-sub__panel a:hover { background: var(--ivory-deep); color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { padding: 0.7em 1.5em; }
/* CTA duplicada: en escritorio solo mostramos la de nav-actions */
.nav > .nav-cta { display: none; }
.site-header:not(.scrolled) .nav-cta { background: var(--ivory); color: var(--ink); }
.site-header:not(.scrolled) .nav-cta:hover { background: var(--gold); color: #fff; }

/* burger */
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ivory); transition: all 0.4s var(--ease); }
.site-header.scrolled .burger span, .nav-open .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.4rem;
    background: var(--ivory); padding: 5rem 2rem 2rem;
    transform: translateX(100%); transition: transform 0.5s var(--ease); z-index: 110;
    overflow-y: auto;
  }
  .nav-open .nav { transform: translateX(0); }
  .nav__link { color: var(--ink) !important; font-family: var(--font-display); font-size: 1.6rem; }
  .has-sub__panel {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    background: transparent; border: none; padding: 0.4rem 0 0; min-width: auto; text-align: center;
  }
  .has-sub__panel a { padding: 0.3rem; align-items: center; }
  .has-sub__panel a small { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: 0.6rem; }
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--ivory); overflow: hidden; padding-bottom: clamp(3rem, 8vh, 7rem); padding-top: 8rem;
  background: radial-gradient(120% 120% at 70% 10%, #3a3128 0%, #211d18 55%, #1b1a18 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(217,166,137,0.35), transparent 70%),
    radial-gradient(50% 50% at 15% 90%, rgba(246,222,221,0.18), transparent 70%);
}
.hero__monogram {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(60vw, 720px); opacity: 0.06; z-index: 0; pointer-events: none;
  filter: brightness(0) invert(1);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero .eyebrow { color: var(--nude); margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { color: var(--nude); }
.hero__lead { max-width: 560px; color: rgba(250,246,241,0.82); margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__meta {
  position: absolute; right: var(--gutter); bottom: clamp(3rem,8vh,7rem); z-index: 2;
  text-align: right; max-width: 230px; display: flex; flex-direction: column; gap: 0.4rem;
}
.hero__meta .num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--nude); }
.hero__meta .lbl { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,246,241,0.7); }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 2rem; z-index: 2; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(250,246,241,0.6); display: flex; align-items: center; gap: 0.6rem; }
.hero__scroll .line { width: 1px; height: 40px; background: linear-gradient(var(--nude), transparent); animation: scrollLine 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0%{transform:scaleY(0);opacity:0;} 40%{transform:scaleY(1);opacity:1;} 100%{transform:scaleY(0);opacity:0;transform-origin:bottom;} }
@media (max-width: 760px) { .hero__meta { display: none; } }

/* ---------- 8. CARDS ---------- */
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--nude); }
.card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ivory-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: clamp(1.3rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__tag { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.card__body h3 { font-size: var(--step-1); }
.card__body p { color: var(--ink-soft); font-size: 0.96rem; }
.card__body .link-arrow { margin-top: auto; padding-top: 0.6rem; }

/* category card (icon based) */
.cat-card {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1rem; min-height: 260px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, var(--blush), transparent 70%); opacity: 0; transition: opacity 0.5s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card:hover::after { opacity: 0.8; }
.cat-card__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ivory-deep); color: var(--gold); position: relative; z-index: 1;
}
.cat-card__icon svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: var(--step-2); position: relative; z-index: 1; }
.cat-card p { color: var(--ink-soft); position: relative; z-index: 1; flex: 1; }
.cat-card .count { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); position: relative; z-index: 1; }
.cat-card .link-arrow { position: relative; z-index: 1; }

/* ---------- 9. ANTES / DESPUÉS GALLERY ---------- */
.result-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.result-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.result-card__img { aspect-ratio: 1; overflow: hidden; background: var(--ivory-deep); }
.result-card__img img { width: 100%; height: 100%; object-fit: cover; }
.result-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.result-card__body .card__tag { display: block; margin-bottom: 0.4rem; }
.result-card__body h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.result-card__body p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 10. TREATMENT ACCORDION ---------- */
.treatment {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  margin-bottom: 1rem; overflow: hidden; transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.treatment.open { box-shadow: var(--shadow); border-color: var(--nude); }
.treatment__head {
  width: 100%; display: flex; align-items: center; gap: 1.2rem; text-align: left;
  padding: clamp(1.2rem, 2.5vw, 1.7rem) clamp(1.3rem, 3vw, 2rem);
}
.treatment__num { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); font-style: italic; min-width: 2.2rem; }
.treatment__title { font-family: var(--font-display); font-size: var(--step-1); flex: 1; line-height: 1.2; }
.treatment__title .badge { font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-soft); padding: 2px 8px; border-radius: 100px; margin-left: 0.6rem; vertical-align: middle; font-weight: 600; }
.treatment__toggle { width: 38px; height: 38px; border-radius: 50%; background: var(--ivory-deep); display: grid; place-items: center; flex-shrink: 0; transition: background 0.4s var(--ease), transform 0.4s var(--ease); }
.treatment.open .treatment__toggle { background: var(--gold); transform: rotate(45deg); }
.treatment__toggle svg { width: 16px; height: 16px; transition: color 0.4s; }
.treatment.open .treatment__toggle svg { color: #fff; }
.treatment__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.treatment.open .treatment__panel { grid-template-rows: 1fr; }
.treatment__panel-inner { overflow: hidden; }
.treatment__content {
  padding: 0 clamp(1.3rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem) clamp(4rem, 6vw, 5.5rem);
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
}
.treatment__content.has-img { grid-template-columns: 1.4fr 0.9fr; align-items: start; }
@media (max-width: 720px) { .treatment__content.has-img { grid-template-columns: 1fr; } .treatment__content { padding-left: clamp(1.3rem,3vw,2rem); } }
.tdef { margin-bottom: 1rem; }
.tdef h4 { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; font-weight: 700; }
.tdef p { color: var(--ink-soft); font-size: 0.98rem; }
.tdef ul { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.3rem; }
.tdef ul li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); font-size: 0.95rem; }
.tdef ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--nude-deep); }
.treatment__img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.treatment__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.treatment__img figcaption { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); text-align: center; padding: 0.6rem; background: var(--ivory-deep); }

/* category filter tabs */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; justify-content: center; }
.cat-tab {
  padding: 0.6em 1.4em; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.cat-tab:hover { border-color: var(--nude-deep); color: var(--ink); }
.cat-tab.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- 11. PAGE HEADER (interior) ---------- */
.page-hero {
  position: relative; padding-top: clamp(8rem, 14vh, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(170deg, var(--ivory-deep), var(--ivory));
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -5%; top: -20%; width: 420px; height: 420px;
  background: radial-gradient(circle, var(--blush), transparent 68%); opacity: 0.6; z-index: 0;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { margin-bottom: 1.1rem; }
.page-hero p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; max-width: 600px; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--ink-mute); margin-bottom: 1.6rem; letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: 0.5; }

/* ---------- 12. STATS / FEATURES ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--ink); }
.bg-ink .stat__num { color: var(--nude); }
.stat__lbl { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.6rem; }
.bg-ink .stat__lbl { color: rgba(250,246,241,0.7); }

.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--blush); color: var(--gold); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 13. PROCESO (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem,2.5vw,2rem); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-style: italic;
  font-size: 2.4rem; color: var(--nude-deep); line-height: 1;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 1.1rem; left: 3.4rem; right: -1rem; height: 1px; background: var(--line-strong); }
@media (max-width: 900px) { .step:not(:last-child)::after { display: none; } }

/* ---------- 14. TESTIMONIALS ---------- */
.quote-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.2rem; height: 100%;
}
.quote-card .stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.95rem; }
.quote-card blockquote { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; color: var(--ink); font-weight: 350; }
.quote-card__author { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.quote-card__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blush); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; }
.quote-card__author .name { font-weight: 700; font-size: 0.95rem; }
.quote-card__author .meta { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- 15. MARQUEE (marcas) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--ink-soft); letter-spacing: 0.02em; white-space: nowrap; opacity: 0.65; transition: opacity 0.3s; }
.marquee__item:hover { opacity: 1; color: var(--gold); }
.marquee__item::after { content: "·"; margin-left: clamp(2.5rem,6vw,5rem); color: var(--nude-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 16. CTA BANNER ---------- */
.cta-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 140% at 80% 0%, #3a3128, #1b1a18 70%); color: var(--ivory);
  padding: clamp(2.6rem, 6vw, 5rem); text-align: center;
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 20%, rgba(217,166,137,0.3), transparent 70%); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner h2 em { color: var(--nude); }
.cta-banner p { color: rgba(250,246,241,0.8); max-width: 540px; margin: 0 auto 2rem; }
.cta-banner .hero__actions { justify-content: center; }

/* ---------- 17. FORM ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  padding: 0.85em 1.1em; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--cream); color: var(--ink); transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,0.14); outline: none; }
.field .hint { font-size: 0.78rem; color: var(--ink-mute); }
.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.checkbox a { color: var(--gold); text-decoration: underline; }
.form__status { font-size: 0.9rem; padding: 0.8rem 1rem; border-radius: 10px; display: none; }
.form__status.ok { display: block; background: #e8f0e6; color: #355e2c; }
.form__status.err { display: block; background: #f6e2e0; color: #8a3a30; }

/* info list contacto */
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ivory-deep); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item .lbl { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 2px; }
.info-item .val { font-weight: 600; font-size: 1.02rem; }
.info-item a.val:hover { color: var(--gold); }

/* ---------- 18. FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(250,246,241,0.78); padding-top: clamp(4rem,7vw,6rem); }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--nude); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand__name { color: var(--ivory); }
.footer-brand p { margin-top: 1.2rem; max-width: 320px; font-size: 0.92rem; color: rgba(250,246,241,0.62); }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nude); margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.94rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(250,246,241,0.2); display: grid; place-items: center; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.8rem; border-top: 1px solid rgba(250,246,241,0.12); font-size: 0.82rem; color: rgba(250,246,241,0.55); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- 19. COOKIE BANNER ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 1.2rem; transform: transl(-50%, 0); transform: translateX(-50%);
  z-index: 200; width: min(720px, calc(100% - 2rem));
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.3rem, 3vw, 1.8rem);
  display: none; opacity: 0; translate: 0 20px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
}
.cookie.show { display: block; }
.cookie.in { opacity: 1; translate: 0 0; }
.cookie h4 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.cookie p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.cookie p a { color: var(--gold); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cookie__actions .btn { padding: 0.7em 1.4em; font-size: 0.74rem; }
.cookie__actions .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* ---------- 20. LEGAL / PROSE ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: var(--step-1); margin: 1.8rem 0 0.6rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 0.9rem; font-size: 1rem; }
.prose ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--nude-deep); }
.prose a { color: var(--gold); text-decoration: underline; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); }
.prose th { background: var(--ivory-deep); font-weight: 600; }
.legal-toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; }
.legal-toc h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.legal-toc ol { list-style: decimal; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; }
.legal-toc a:hover { color: var(--gold); }

/* ---------- 21. FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.3rem 0; font-family: var(--font-display); font-size: var(--step-1); }
.faq-q .pm { color: var(--gold); transition: transform 0.4s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-soft); padding-bottom: 1.3rem; }

/* ---------- 22. UTIL / ANIM ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.text-center { text-align: center; }
.mt-3 { margin-top: 2rem; } .mt-2 { margin-top: 1.2rem; } .mb-0 { margin-bottom: 0; }
.maxw-60 { max-width: 60ch; }
.divider { height: 1px; background: var(--line); border: none; margin-block: var(--section-y); }
.pill-note { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5em 1.1em; border-radius: var(--radius-pill); background: var(--blush); color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; }
.pill-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,0.2); }
.img-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.aspect-portrait { aspect-ratio: 4/5; }
.aspect-square { aspect-ratio: 1; }

/* =============================================================
   23. COMPARADOR ANTES / DESPUÉS (deslizable)
   ============================================================= */
.ba {
  position: relative; aspect-ratio: 1; width: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
  --pos: 50%; background: var(--ivory-deep);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__after { z-index: 1; }                 /* después: capa base (derecha) */
.ba__before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }  /* antes: visible de 0 a --pos */
.ba__label {
  position: absolute; top: 14px; z-index: 3; font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; color: #fff; padding: 5px 12px; border-radius: 100px;
  background: rgba(27,26,24,0.55); backdrop-filter: blur(4px);
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: rgba(255,255,255,0.9); z-index: 4; transform: translateX(-1px); box-shadow: 0 0 12px rgba(0,0,0,0.25); }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 5; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow); transition: transform 0.25s var(--ease);
}
.ba:hover .ba__handle { transform: translate(-50%, -50%) scale(1.08); }
.ba__handle svg { width: 22px; height: 22px; }
.ba__hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(27,26,24,0.45); padding: 4px 12px; border-radius: 100px; opacity: 1; transition: opacity 0.4s; pointer-events: none; }
.ba.dragging .ba__hint, .ba:hover .ba__hint { opacity: 0; }
.ba.dragging { cursor: ew-resize; }

/* tarjeta resultado con comparador */
.ba-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); height: 100%; display: flex; flex-direction: column; }
.ba-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ba-card .ba { border: none; border-radius: 0; }
.ba-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.ba-card__body .card__tag { display: block; margin-bottom: 0.3rem; }
.ba-card__body h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.ba-card__body p { font-size: 0.92rem; color: var(--ink-soft); }

/* =============================================================
   24. CARRUSEL
   ============================================================= */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: clamp(1rem, 2.5vw, 1.8rem); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 0.5rem 0 1.5rem; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 clamp(280px, 78vw, 360px); }
.carousel__nav { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.5rem; }
.carousel__btn { width: 52px; height: 52px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line-strong); color: var(--ink); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.carousel__btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: translateY(-2px); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; transform: none; background: var(--cream); color: var(--ink); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__progress { height: 3px; background: var(--line); border-radius: 100px; max-width: 240px; margin: 0.4rem auto 0; overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--gold), var(--nude)); border-radius: 100px; transition: transform 0.3s var(--ease), width 0.3s; }
.bg-ink .carousel__btn { background: rgba(250,246,241,0.08); border-color: rgba(250,246,241,0.2); color: var(--ivory); }
.bg-ink .carousel__btn:hover { background: var(--ivory); color: var(--ink); }

/* =============================================================
   25. CTA FULLSCREEN · GRADIENTE ANIMADO
   ============================================================= */
.cta-full {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  color: var(--ivory); overflow: hidden; padding: 6rem var(--gutter);
  background: #1b1a18;
}
.cta-full__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 120% at 50% 120%, #3a3128, #1b1a18 60%); }
.cta-full__bg::before, .cta-full__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; mix-blend-mode: screen;
}
.cta-full__bg::before { width: 60vmax; height: 60vmax; left: -10vmax; top: -10vmax; background: radial-gradient(circle, var(--nude-deep), transparent 65%); animation: blobA 16s ease-in-out infinite alternate; }
.cta-full__bg::after { width: 50vmax; height: 50vmax; right: -8vmax; bottom: -12vmax; background: radial-gradient(circle, var(--blush-deep), transparent 62%); animation: blobB 19s ease-in-out infinite alternate; }
.cta-full__blob { position: absolute; z-index: 0; width: 38vmax; height: 38vmax; border-radius: 50%; filter: blur(70px); opacity: 0.4; mix-blend-mode: screen; left: 40%; top: 30%; background: radial-gradient(circle, var(--gold), transparent 60%); animation: blobC 22s ease-in-out infinite alternate; }
@keyframes blobA { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(18vw,12vh) scale(1.25);} }
@keyframes blobB { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(-16vw,-10vh) scale(1.2);} }
@keyframes blobC { 0%{transform:translate(-50%,-50%) scale(0.9);} 100%{transform:translate(-30%,-65%) scale(1.3);} }
.cta-full__inner { position: relative; z-index: 2; max-width: 780px; }
.cta-full .eyebrow { color: var(--nude); justify-content: center; margin-bottom: 1.4rem; }
.cta-full h2 { font-size: var(--step-4); margin-bottom: 1.2rem; }
.cta-full h2 em { color: var(--nude); }
.cta-full p { color: rgba(250,246,241,0.82); max-width: 560px; margin: 0 auto 2.4rem; font-size: var(--step-1); }
.cta-full .hero__actions { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .cta-full__bg::before, .cta-full__bg::after, .cta-full__blob { animation: none; } }

/* gradiente animado reutilizable (para banners cta-banner existentes) */
.cta-banner { background: linear-gradient(125deg, #211d18, #3a3128, #211d18, #2c2620); background-size: 280% 280%; animation: gradPan 16s ease infinite; }
@keyframes gradPan { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
@media (prefers-reduced-motion: reduce) { .cta-banner { animation: none; } }

/* =============================================================
   26. TIMELINE "CÓMO TRABAJAMOS" (línea que se rellena)
   ============================================================= */
.timeline { position: relative; max-width: 720px; margin-inline: auto; }
.timeline__rail { position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__rail span { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: linear-gradient(var(--gold), var(--nude-deep)); border-radius: 2px; transition: height 0.2s linear; }
.tl-step { position: relative; padding: 0 0 clamp(2rem, 4vw, 3rem) 70px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step__dot {
  position: absolute; left: 6px; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--line-strong); display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; color: var(--ink-mute); z-index: 1; transition: all 0.4s var(--ease);
}
.tl-step.active .tl-step__dot { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 6px rgba(176,141,87,0.15); }
.tl-step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; transition: color 0.4s; }
.tl-step p { color: var(--ink-soft); }

/* =============================================================
   27. EXPLICADOR DE FAMILIAS (categorías de tratamiento)
   ============================================================= */
.family { margin: clamp(2.5rem, 6vw, 4.5rem) 0; }
.family__intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 2rem; }
.family__intro.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .family__intro, .family__intro.reverse > :first-child { grid-template-columns: 1fr; order: 0; } }
.family__intro .eyebrow { margin-bottom: 1rem; }
.family__intro h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.family__plain { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin-bottom: 1rem; }
.family__plain strong { color: var(--ink); }
.family__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5em 1em; border-radius: 100px; background: var(--blush); color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; }
.chip svg { width: 15px; height: 15px; color: var(--gold); }
.family__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.family__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.family__media.is-square img { aspect-ratio: 1; }

/* tarjetas de tratamiento visuales (en cristiano) */
.tcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
@media (max-width: 640px) { .tcards { grid-template-columns: 1fr; } }
.tcard { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--nude); }
.tcard__top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.tcard__ic { width: 38px; height: 38px; border-radius: 50%; background: var(--ivory-deep); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.tcard__ic svg { width: 19px; height: 19px; }
.tcard h3 { font-size: 1.12rem; line-height: 1.2; }
.tcard h3 .badge { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-soft); padding: 2px 7px; border-radius: 100px; margin-left: 0.4rem; vertical-align: middle; font-weight: 700; }
.tcard p { font-size: 0.93rem; color: var(--ink-soft); }
.tcard p .q { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 0.2rem; }
.tcard .tcard__why { margin-top: 0.7rem; }

/* =============================================================
   28. RESEÑA CON ANTES/DESPUÉS
   ============================================================= */
.review-ba { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.review-ba .ba { border: none; border-radius: 0; }
.review-ba__body { padding: clamp(1.3rem, 2.5vw, 1.7rem); display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.review-ba .stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.9rem; }
.review-ba blockquote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.45; color: var(--ink); font-weight: 350; }
.review-ba__author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.review-ba__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blush); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; flex-shrink: 0; }
.review-ba__author .name { font-weight: 700; font-size: 0.92rem; }
.review-ba__author .meta { font-size: 0.78rem; color: var(--ink-mute); }

/* imagen atmosférica con overlay (stock) */
.atmo { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.atmo img { width: 100%; height: 100%; object-fit: cover; }
.atmo__veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(27,26,24,0.55)); }
.float-soft { animation: floatSoft 7s ease-in-out infinite; }
@keyframes floatSoft { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
@media (prefers-reduced-motion: reduce) { .float-soft { animation: none; } }

/* =============================================================
   29. LOGOS DE MARCAS (marquee con imágenes)
   ============================================================= */
.marquee__logo { display: inline-flex; align-items: center; justify-content: center; height: 64px; padding: 0 clamp(1.4rem, 3vw, 2.6rem); }
.marquee__logo img { max-height: 44px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: filter 0.4s var(--ease), opacity 0.4s var(--ease); }
.marquee__logo:hover img { filter: grayscale(0); opacity: 1; }
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.6rem,2vw,1.4rem); align-items: center; }
@media (max-width: 820px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-tile { display: flex; align-items: center; justify-content: center; padding: 1.2rem 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); min-height: 92px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.brand-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.brand-tile img { max-height: 46px; max-width: 130px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.4s var(--ease), opacity 0.4s var(--ease); }
.brand-tile:hover img { filter: grayscale(0); opacity: 1; }

/* =============================================================
   30. PRENSA · "QUÉ DICEN DE NOSOTROS"
   ============================================================= */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
@media (max-width: 820px) { .press-grid { grid-template-columns: 1fr; } }
.press-card { display: flex; flex-direction: column; gap: 0.9rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease); height: 100%; }
.press-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--nude); }
.press-card__source { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); letter-spacing: 0.01em; }
.press-card__source span { font-style: italic; color: var(--gold); }
.press-card__kicker { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.press-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.45; flex: 1; }
.press-card .link-arrow { margin-top: auto; }

/* =============================================================
   31. RRSS
   ============================================================= */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,2.5vw,1.6rem); }
@media (max-width: 640px) { .social-grid { grid-template-columns: 1fr; } }
.social-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); display: flex; align-items: center; gap: 1.2rem; color: #fff; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); min-height: 130px; }
.social-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.social-card--ig { background: linear-gradient(120deg, #833ab4, #c13584, #e1306c, #fd1d1d, #fcb045); background-size: 200% 200%; animation: gradPan 9s ease infinite; }
.social-card--yt { background: linear-gradient(120deg, #b31217, #e52d27); }
.social-card__ic { width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px; background: rgba(255,255,255,0.18); display: grid; place-items: center; }
.social-card__ic svg { width: 30px; height: 30px; }
.social-card .lbl { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.social-card .handle { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.social-card .arrow { margin-left: auto; font-size: 1.4rem; transition: transform 0.4s var(--ease); }
.social-card:hover .arrow { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .social-card--ig { animation: none; } }

/* =============================================================
   32. VÍDEO EN CONSULTA
   ============================================================= */
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--ink); aspect-ratio: 4/5; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame__badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(27,26,24,0.5); backdrop-filter: blur(6px); color: #fff; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.video-frame__badge .live { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 4px rgba(255,90,90,0.25); }

/* =============================================================
   33. SELLO SEME
   ============================================================= */
.seme { display: inline-flex; align-items: center; gap: 1rem; padding: 0.8rem 1.3rem 0.8rem 0.8rem; background: var(--cream); border: 1px solid var(--line); border-radius: 100px; box-shadow: var(--shadow-sm); }
.seme img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.seme__txt strong { display: block; font-size: 0.92rem; color: var(--ink); }
.seme__txt span { font-size: 0.76rem; color: var(--ink-mute); }
.seme--lg img { width: 88px; height: 88px; }
.footer-seme { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem; }
.footer-seme img { width: 54px; height: 54px; border-radius: 50%; }
.footer-seme div { font-size: 0.78rem; color: rgba(250,246,241,0.6); line-height: 1.4; }
.footer-seme strong { color: var(--nude); display: block; font-weight: 600; }

/* =============================================================
   34. VÍDEO DE FONDO DEL HERO
   ============================================================= */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.40; z-index: 0; pointer-events: none; }
.hero__bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.42) 38%, rgba(20,18,16,0.88) 100%); }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
