/* =========================================================
   Dr. Valber Mendonça — Estética Avanzada y Regenerativa
   Paleta: marfil · oro metálico · espresso (madera del consultorio)
   ========================================================= */

/* ---------- Fuentes (alojadas en el propio sitio) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/cinzel.woff2") format("woff2"); }
@font-face { font-family: "Belgiano Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/belgiano-serif.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/jost.woff2") format("woff2"); }

:root {
  --ivory: #f8f4ee;
  --ivory-2: #f1ebe2;
  --sand: #e7ddcf;
  --paper: #fffdf9;
  --espresso: #1f1813;
  --espresso-2: #2b211a;
  --walnut: #4a3628;
  --ink: #2a2420;
  --muted: #7a6d62;

  --gold: #a1762b;
  --gold-deep: #74500f;
  --gold-soft: #d9bd82;
  --gold-grad: linear-gradient(120deg, #573a0d 0%, #94681f 22%, #d2b06a 46%, #a77a2c 62%, #654310 100%);
  --gold-line: linear-gradient(90deg, transparent, #9e7529 20%, #d2b06a 50%, #9e7529 80%, transparent);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-script: "Belgiano Serif", "Cormorant Garamond", serif;
  --f-caps: "Cinzel", "Cormorant Garamond", serif;
  --f-body: "Jost", "Helvetica Neue", sans-serif;

  --marble: url("assets/img/marmore.webp");
  --wood: url("assets/img/madeira.webp");
  --gold-text: linear-gradient(100deg, #5a3c0e 0%, #855c1b 30%, #a87b31 50%, #855c1b 70%, #5a3c0e 100%);
  --gold-border: linear-gradient(135deg, #654310, #cfac66 25%, #94681f 50%, #d6b673 75%, #654310);

  --radius: 18px;
  --shadow-sm: 0 6px 20px -10px rgba(60, 40, 20, .25);
  --shadow: 0 30px 60px -30px rgba(60, 40, 20, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory) var(--marble) center top / 1800px repeat;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

/* grano sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; background-color: var(--sand); }
.brand__logo, .ba img { background-color: transparent; }
.pos-30 { object-position: 50% 30% !important; }
.pos-35 { object-position: 50% 35% !important; }
.pos-40 { object-position: 50% 40% !important; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-top: 56px; }

.gold-text {
  background: var(--gold-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

/* Tipografía manuscrita (Belgiano Serif) */
.gold-text, .quote blockquote em, .cta h2 em, .not-found h1 em, .marquee__track, .ba-card figcaption,
.hero__badge-big, .about__lead, .hs-title, .gx-scene__title, .gx-end p {
  font-family: var(--f-script);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.005em;
}
.gold-text, .quote blockquote em, .cta h2 em, .gx-scene__title { font-feature-settings: "dlig" 1; }
h1 .gold-text, h2 .gold-text { font-size: .9em; }
@keyframes shimmer { to { background-position: -200% 0; } }

.eyebrow {
  font-family: var(--f-caps);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-line);
}

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--f-caps);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, color .4s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--lg { --h: 62px; padding: 0 40px; font-size: 13.5px; }

.btn--gold {
  color: #2a1d0c;
  background: var(--gold-grad);
  background-size: 180% 100%;
  box-shadow: 0 12px 30px -12px rgba(140, 100, 32, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(140, 100, 32, .75); }

.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(140, 100, 32, .45);
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--espresso); color: var(--gold-soft); border-color: var(--espresso); }

.btn--dark { color: var(--gold-soft); background: var(--espresso) var(--wood) center top / 1600px auto repeat; box-shadow: inset 0 0 0 1px rgba(233, 210, 154, .55), 0 12px 30px -14px rgba(31, 24, 19, .7); }
.btn--dark:hover { transform: translateY(-2px); background: var(--walnut); }

.btn--outline-light { color: var(--gold-soft); border: 1px solid rgba(233, 210, 154, .45); }
.btn--outline-light:hover { background: rgba(233, 210, 154, .1); }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(rgba(20, 15, 11, .6), rgba(20, 15, 11, .6)), var(--espresso) var(--wood) center top / 1600px auto repeat;
  color: var(--gold-soft);
  position: relative;
  font-size: 12.5px;
  letter-spacing: .06em;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar__links { display: flex; gap: 28px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
a.topbar__item:hover { color: #fff3d4; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-line); }
.topbar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, .95);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-line); opacity: .9; }
.header.is-scrolled { box-shadow: 0 12px 34px -20px rgba(90, 60, 20, .45); }
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 126px;
  transition: height .4s var(--ease);
}
.header.is-scrolled .header__inner { height: 88px; }

.nav { display: flex; gap: 38px; }
.nav--right { justify-content: flex-end; }
.nav a {
  font-family: var(--f-caps);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: var(--gold-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding: 6px 0;
  transition: background-position .6s var(--ease);
}
.nav a:hover { background-position: 100% 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-grad);
  transition: width .4s var(--ease), left .4s var(--ease);
}
.nav a:hover::after { width: 100%; left: 0; }

.brand { display: flex; align-items: center; justify-content: center; }
.brand__logo { height: 108px; width: auto; filter: drop-shadow(0 4px 10px rgba(140, 100, 32, .18)); transition: height .4s var(--ease); }
.header.is-scrolled .brand__logo { height: 74px; }

.burger { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(233, 210, 154, .35), transparent 60%),
    linear-gradient(180deg, rgba(248, 244, 238, .55) 0%, rgba(241, 235, 226, .75) 100%),
    var(--marble) center / cover;
}
/* foco de luz — como el monograma iluminado en la pared */
.hero__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 236, 190, .9) 0%, rgba(241, 220, 156, .35) 30%, transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: .85; } }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  min-height: 640px;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--espresso);
  margin-bottom: 28px;
}
.hero__title em { font-weight: 400; }
.hero__lead { max-width: 500px; color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.hero__lead strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__facts {
  list-style: none;
  padding: 26px 0 0;
  margin: 0;
  display: flex;
  gap: 42px;
  border-top: 1px solid rgba(184, 137, 58, .25);
  max-width: 520px;
}
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hero__facts strong span { font: inherit; color: inherit; letter-spacing: inherit; }
.hero__facts > li > span { font-size: 12.5px; line-height: 1.35; color: var(--muted); letter-spacing: .02em; }

.hero__media { position: relative; justify-self: end; width: min(470px, 100%); }
.arch {
  position: relative;
  padding: 7px;
  border-radius: 999px 999px 26px 26px;
  background: var(--gold-border);
  box-shadow: 0 40px 70px -30px rgba(90, 60, 20, .55), 0 0 0 1px rgba(140, 100, 32, .35);
}
.arch::before {
  /* filete externo */
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 999px 999px 36px 36px;
  border: 1px solid rgba(184, 137, 58, .55);
  pointer-events: none;
}
.arch::after {
  /* filete interno sobre la foto */
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 999px 999px 14px 14px;
  border: 1px solid rgba(255, 240, 200, .7);
  pointer-events: none;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 20px 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}
.frame-ornament {
  position: absolute;
  left: 50%;
  top: -25px;
  z-index: 3;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold-border);
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px rgba(184, 137, 58, .55);
}
.arch--hero { aspect-ratio: 4 / 5.6; }
.arch--hero img { object-position: 50% 20%; }

.hero__seal {
  position: absolute;
  left: -70px;
  top: 38%;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  padding: 5px;
  background: var(--gold-border);
  box-shadow: var(--shadow), 0 0 0 6px rgba(248, 244, 238, .9), 0 0 0 7px rgba(184, 137, 58, .5);
  z-index: 4;
}
.hero__seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 225, 160, .28), transparent 65%),
    linear-gradient(rgba(20, 13, 8, .35), rgba(20, 13, 8, .35)),
    var(--espresso) var(--wood) center / 900px auto;
}
.hero__seal .logo-flat { position: absolute; inset: 26%; }

.hero__badge {
  position: absolute;
  right: -26px;
  top: 64px;
  padding: 18px 24px;
  background: rgba(255, 253, 249, .82);
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  background: linear-gradient(rgba(255, 253, 249, .9), rgba(255, 253, 249, .9)) padding-box, var(--gold-border) border-box;
  border-radius: 14px;
  z-index: 4;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}
.hero__badge-line { font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .26em; color: var(--muted); text-transform: uppercase; }
.hero__badge-big { font-size: 24px; color: var(--espresso); line-height: 1.1; }
@keyframes float { 50% { transform: translateY(-10px); } }

.hero__ring {
  position: absolute;
  width: 150px;
  right: -64px;
  bottom: -56px;
  animation: spin 30s linear infinite;
}
.hero__ring text { font-family: var(--f-caps); font-size: 13.4px; letter-spacing: .2em; fill: var(--gold-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pilares */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 80px;
  padding-bottom: 90px;
}
.pillar {
  padding: 34px 28px 30px;
  border: 1px solid transparent;
  background: linear-gradient(rgba(255, 253, 249, .92), rgba(255, 253, 249, .92)) padding-box, var(--gold-border) border-box;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); background: var(--gold-border); }
.pillar svg { width: 58px; height: 58px; padding: 12px; fill: none; stroke: var(--gold-deep); stroke-width: 1.3; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 220, 156, .45), rgba(241, 220, 156, .1)); box-shadow: inset 0 0 0 1px rgba(184, 137, 58, .45); }
.pillar h3 { font-family: var(--f-display); font-size: 25px; font-weight: 500; color: var(--espresso); margin-bottom: 8px; }
.pillar p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- Marquee ---------- */
.marquee {
  background: linear-gradient(rgba(20, 15, 11, .6), rgba(20, 15, 11, .6)), var(--espresso) var(--wood) center top / 1600px auto repeat;
  color: var(--gold-soft);
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid rgba(233, 210, 154, .45);
}
.marquee__track span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.marquee__track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marquee 50s linear infinite;
  font-size: 26px;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; font-size: 12px; color: var(--gold); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 130px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold-line); }
.section-head h2,
.about h2,
.faq h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.05;
  color: var(--espresso);
  margin-bottom: 18px;
}
.section-head p { color: var(--muted); }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.divider span { width: 120px; height: 1px; background: var(--gold-line); transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.divider span:first-child { transform-origin: right; }
.divider span:last-child { transform-origin: left; }
.is-in .divider span, .divider.is-in span { transform: scaleX(1); }
.divider i { width: 9px; height: 9px; background: var(--gold-grad); transform: rotate(45deg) scale(0); transition: transform .8s var(--ease) .2s; }
.is-in .divider i, .divider.is-in i { transform: rotate(45deg) scale(1); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 50px;
  padding: 6px;
  width: fit-content;
  border: 1px solid transparent;
  background: linear-gradient(rgba(255, 253, 249, .9), rgba(255, 253, 249, .9)) padding-box, var(--gold-border) border-box;
  border-radius: 999px;
}
.tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--f-caps);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s, background .4s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--gold-grad); color: #2a1d0c; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(140, 100, 32, .7); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .7s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Resultados ---------- */
.results { background: linear-gradient(rgba(255, 253, 249, .78), rgba(255, 253, 249, .78)), var(--marble) center / cover; }
.results::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 50% 0%, rgba(233, 210, 154, .25), transparent 70%);
  pointer-events: none;
}

.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 24px) / 4);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 2px 20px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btn {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--gold-border) border-box;
  color: var(--gold-deep);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .3s, color .3s, transform .3s;
}
.carousel__btn:hover { background: var(--gold-grad); color: #2a1d0c; transform: scale(1.06); }
.carousel__btn--prev { left: -26px; }
.carousel__btn--next { right: -26px; }

.ba-card { margin: 0; scroll-snap-align: start; padding-top: 6px; }
.ba-card figcaption {
  margin-top: 16px;
  font-size: 20px;
  color: var(--espresso);
  text-align: center;
}

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 16px 16px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(140, 100, 32, .5);
  border: 4px solid transparent;
  background: linear-gradient(var(--sand), var(--sand)) padding-box, var(--gold-border) border-box;
  user-select: none;
}
.ba > img, .ba__before { border-radius: 196px 196px 12px 12px; }
.ba img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; }
.ba__after { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 3;
  touch-action: pan-y;
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(180deg, transparent, #f1dc9c 15%, #f1dc9c 85%, transparent);
  z-index: 2;
  pointer-events: none;
}
.ba__handle::after {
  content: "‹ ›";
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #2a1d0c;
  font-size: 18px;
  letter-spacing: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  border: 2px solid rgba(255, 255, 255, .6);
}
.ba__tag {
  position: absolute;
  bottom: 16px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--f-caps);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(31, 24, 19, .6);
  color: var(--gold-soft);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba__tag--l { left: 16px; }
.ba__tag--r { right: 16px; }

.disclaimer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 30px; font-style: italic; }

/* ---------- Tratamientos ---------- */
.treatments {
  background:
    radial-gradient(900px 500px at 0% 20%, rgba(233, 210, 154, .25), transparent 60%),
    linear-gradient(rgba(248, 244, 238, .6), rgba(248, 244, 238, .6)),
    var(--marble) 30% 40% / cover;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--gold-border) border-box;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3.2; overflow: hidden; position: relative; border-bottom: 2px solid transparent; border-image: var(--gold-border) 1; }
.card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31, 24, 19, .25));
}
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.07); }
.card__img--mono {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(241, 220, 156, .3), transparent 60%),
    var(--espresso) var(--wood) center top / 1600px auto repeat;
}
.card__img--mono::after { display: none; }
.card__img--mono .logo-flat { width: 40%; aspect-ratio: 740 / 640; }

.card__body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--f-display); font-size: 27px; font-weight: 500; line-height: 1.15; color: var(--espresso); margin-bottom: 12px; padding-bottom: 12px; position: relative; }
.card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 1px; background: var(--gold-grad); }
.card p { font-size: 15px; color: var(--muted); line-height: 1.65; flex: 1; }
.card__link {
  align-self: flex-start;
  font-family: var(--f-caps);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(184, 137, 58, .4);
  transition: color .3s, border-color .3s;
}
.card__link span { display: inline-block; transition: transform .4s var(--ease); }
.card__link:hover { color: var(--espresso); border-color: var(--espresso); }
.card__link:hover span { transform: translateX(6px); }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  padding: 150px 0;
  background: var(--espresso);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.quote__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(241, 220, 156, .22), transparent 45%),
    linear-gradient(rgba(20, 13, 8, .5), rgba(20, 13, 8, .5)),
    var(--wood) center top / 1600px auto repeat;
}
.quote::before, .quote::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gold-line); z-index: 1; }
.quote::before { top: 14px; } .quote::after { bottom: 14px; }
.quote__inner { position: relative; max-width: 900px; }
.quote__mark { display: block; width: 104px; aspect-ratio: 740 / 640; margin: 0 auto 34px; }
.quote blockquote {
  margin: 0 0 28px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.2;
}
.quote blockquote em {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote cite { font-family: var(--f-caps); font-style: normal; font-size: 12px; letter-spacing: .3em; color: var(--gold-soft); text-transform: uppercase; }

/* ---------- Sobre ---------- */
.about { background: linear-gradient(rgba(241, 235, 226, .7), rgba(241, 235, 226, .7)), var(--marble) 70% 20% / cover; }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.about__media { position: relative; padding: 24px 0 60px 30px; }
.arch--about { aspect-ratio: 4 / 5.4; width: 88%; z-index: 1; }
.arch--about img { object-position: 50% 30%; }
.about__frame {
  position: absolute;
  top: -24px;
  left: 0;
  width: 88%;
  aspect-ratio: 4 / 5.4;
  border: 1px solid rgba(184, 137, 58, .6);
  border-radius: 999px 999px 24px 24px;
  display: none;
}
.about__float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 5px solid transparent;
  background: var(--gold-border) border-box;
  box-shadow: var(--shadow), 0 0 0 6px rgba(241, 235, 226, .95), 0 0 0 7px rgba(184, 137, 58, .5);
  z-index: 2;
}
.about__float img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 11px; }

.about__lead { font-size: 24px; color: var(--walnut); line-height: 1.35; }
.about__copy > p { color: var(--muted); }
.about__copy strong { color: var(--ink); font-weight: 500; }

.values { list-style: none; padding: 0; margin: 36px 0 40px; display: grid; gap: 20px; }
.values li { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(184, 137, 58, .6), transparent) 1; }
.values span { font-family: var(--f-display); font-size: 34px; line-height: 1; min-width: 44px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.values h4 { font-family: var(--f-display); font-size: 22px; font-weight: 500; color: var(--espresso); }
.values p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Proceso ---------- */
.process { background: linear-gradient(rgba(255, 253, 249, .8), rgba(255, 253, 249, .8)), var(--marble) 10% 60% / cover; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--gold-line);
}
.step { text-align: center; position: relative; }
.step__n {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--gold-border) border-box;
  font-family: var(--f-caps);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-deep);
  box-shadow: 0 10px 24px -12px rgba(140, 100, 32, .6);
  position: relative;
  transition: background .5s, color .5s;
}
.step__n::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(184, 137, 58, .35); }
.step:hover .step__n { background: var(--gold-grad); color: #2a1d0c; }
.step h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; color: var(--espresso); margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); max-width: 250px; margin-inline: auto; }

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1fr;
  height: 440px;
  gap: 3px;
  background: var(--gold-grad);
  border-block: 3px solid transparent;
}
.gallery__item { margin: 0; overflow: hidden; position: relative; background: var(--espresso); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.85); }
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31, 24, 19, .4));
  pointer-events: none;
}

/* ---------- FAQ ---------- */
.faq { background: linear-gradient(rgba(248, 244, 238, .6), rgba(248, 244, 238, .6)), var(--marble) 50% 80% / cover; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head p { color: var(--muted); margin-bottom: 30px; }
.accordion details {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(184, 137, 58, .7), rgba(184, 137, 58, .15)) 1;
  padding: 6px 0;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 50px 22px 0;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--espresso);
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 137, 58, .5);
  border-radius: 50%;
  font-family: var(--f-body);
  font-size: 18px;
  color: var(--gold-deep);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.accordion details[open] summary::after { content: "–"; background: var(--gold-grad); color: #2a1d0c; border-color: transparent; }
.accordion details p { color: var(--muted); padding: 0 50px 18px 0; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 130px 0 140px;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255, 225, 160, .22), transparent 70%), linear-gradient(rgba(20, 13, 8, .5), rgba(20, 13, 8, .72)), var(--espresso) var(--wood) center top / 1600px auto repeat;
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(241, 220, 156, .28), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta__logo { display: block; width: min(330px, 72%); aspect-ratio: 1200 / 820; margin: 0 auto 46px; }
.cta h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; margin-bottom: 16px; }
.cta h2 em {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta p { color: #c8b89e; margin-bottom: 42px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(rgba(14, 9, 6, .78), rgba(14, 9, 6, .78)), #17110d var(--wood) center top / 1600px auto repeat;
  color: #d6c39c;
  position: relative;
  padding: 80px 0 30px;
  font-size: 15px;
}
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding-bottom: 50px; }
.footer__logo { display: block; width: 190px; aspect-ratio: 1200 / 820; margin-bottom: 24px; }
.footer h5 { font-family: var(--f-caps); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; }
.footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--gold-soft); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid rgba(233, 210, 154, .12);
  font-size: 12.5px;
  color: #8f8170;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: calc(26px + env(safe-area-inset-right));
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0;
  height: 62px;
  padding: 0 17px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .6), 0 0 0 6px rgba(255, 255, 255, .5);
  transition: gap .4s var(--ease), padding .4s var(--ease), transform .3s, opacity .3s;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25d366;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { to { transform: scale(1.35); opacity: 0; } }
.wa-float svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-caps);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: max-width .5s var(--ease);
}
.wa-float:hover { gap: 10px; padding-right: 24px; transform: translateY(-2px); }
.wa-float:hover .wa-float__label { max-width: 140px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Logo plano (versión mate, como la placa de la pared)
   ========================================================= */
.logo-flat {
  display: block;
  -webkit-mask: var(--logo-src) center / contain no-repeat;
  mask: var(--logo-src) center / contain no-repeat;
  background:
    linear-gradient(110deg, transparent 38%, rgba(255, 246, 220, .95) 50%, transparent 62%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #d9bc7e 0%, #bd914b 45%, #98702c 100%);
  animation: logo-sheen 6.5s var(--ease) infinite;
}
.logo-flat--full { --logo-src: var(--mask-logo); }
.logo-flat--mono { --logo-src: var(--mask-mono); }
@keyframes logo-sheen {
  0%, 55% { background-position: -150% 0, 0 0; }
  85%, 100% { background-position: 250% 0, 0 0; }
}

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 50% 45% at 50% 42%, rgba(255, 225, 160, .2), transparent 70%),
    linear-gradient(rgba(20, 13, 8, .55), rgba(20, 13, 8, .7)),
    var(--espresso) var(--wood) center top / 1600px auto;
  transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.preloader__logo {
  width: min(300px, 64vw);
  aspect-ratio: 1200 / 820;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  animation: pre-in 1.1s var(--ease) .15s forwards, logo-sheen 2.2s var(--ease) .5s infinite;
}
@keyframes pre-in { to { opacity: 1; transform: none; } }
.preloader__bar { width: 140px; height: 1px; background: rgba(233, 210, 154, .2); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; animation: pre-bar 1.6s var(--ease) forwards; }
@keyframes pre-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
body.is-loading { overflow: hidden; }

/* barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  background: var(--gold-grad);
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(241, 220, 156, .7);
}

/* =========================================================
   Hero — entrada orquestada
   ========================================================= */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.3s cubic-bezier(.2, .8, .2, 1); }
.hero__title .line:nth-child(2) > span { transition-delay: .14s; }
body.is-loaded .hero__title .line > span { transform: none; }

.hero__media .arch { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); transition: clip-path 1.6s cubic-bezier(.7, 0, .2, 1) .25s; }
body.is-loaded .hero__media .arch { clip-path: inset(-90px round 999px 999px 26px 26px); }
.hero__media .hero-show { transform: scale(1.12); transition: transform 2.4s var(--ease) .3s; }
body.is-loaded .hero__media .hero-show { transform: scale(1); }
.hero__seal, .hero__badge, .frame-ornament { opacity: 0; transition: opacity 1s var(--ease) 1.2s, transform 1s var(--ease) 1.2s; }
.hero__seal { transform: scale(.6) rotate(-20deg); }
body.is-loaded .hero__seal { opacity: 1; transform: none; }
body.is-loaded .hero__badge, body.is-loaded .frame-ornament { opacity: 1; }
.frame-ornament { transition-delay: 1.5s; }

/* imágenes de las tarjetas: revelado en cortina */
.card.reveal .card__img img, .card.reveal .card__img .logo-flat { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) .15s, transform 1.2s var(--ease); }
.card.reveal.is-in .card__img img, .card.reveal.is-in .card__img .logo-flat { clip-path: inset(0 0 0 0); }

/* línea del proceso dibujándose */
.steps::before { transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .3s; }
.steps.is-in::before { transform: scaleX(1); }

/* brillo que atraviesa los botones */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* polvo dorado en las secciones de madera */
.gold-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.quote__inner, .cta__inner { z-index: 1; }

/* parallax suave */
[data-parallax] { will-change: transform; }

.marquee:hover .marquee__track { animation-play-state: paused; }

/* el contenido del hero espera al preloader */
body:not(.is-loaded) .hero .reveal { opacity: 0 !important; transform: translateY(28px) !important; }
.hero .reveal { transition-duration: 1.2s; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span, .hero__media .hero-show { transform: none; }
  .hero__media .arch, .card .card__img img, .card .card__img .logo-flat { clip-path: none !important; }
  .hero__seal, .hero__badge, .frame-ornament { opacity: 1; transform: none; }
  .steps::before, .divider span { transform: none; }
  .divider i { transform: rotate(45deg); }
  .preloader { display: none; }
  body.is-loading { overflow: auto; }
}


/* =========================================================
   Botones Ella / Él junto al logo
   ========================================================= */
.brand-wrap { display: flex; align-items: center; justify-content: center; gap: 26px; }
.g-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--gold-deep);
}
.g-btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--gold-border) border-box;
  box-shadow: 0 8px 20px -12px rgba(90, 60, 20, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.g-btn__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-grad);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.g-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; transition: color .4s; }
.g-btn__label { font-family: var(--f-caps); font-size: 9.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; }
.g-btn:hover .g-btn__icon, .g-btn:focus-visible .g-btn__icon { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(90, 60, 20, .75); }
.g-btn:hover .g-btn__icon::before, .g-btn:focus-visible .g-btn__icon::before { transform: none; }
.g-btn:hover svg, .g-btn:focus-visible svg { color: #fff6e2; }
.header.is-scrolled .g-btn__label { display: none; }

/* =========================================================
   Carrusel cinematográfico del hero
   ========================================================= */
.hero-show {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px 999px 20px 20px;
  background: #140d08;
  touch-action: pan-y;
}
.hs-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hs-slide.is-active { opacity: 1; z-index: 1; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; background: #140d08; transform: scale(1.12); }
.hs-slide.is-active img { animation: kenburns 7.5s cubic-bezier(.25, .1, .25, 1) forwards; }
.hs-slide:nth-child(even).is-active img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.16) translate3d(0, 2.5%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate3d(-1.5%, 0, 0); } to { transform: scale(1.15) translate3d(1.5%, -2%, 0); } }
/* gradación de cine: viñeta + degradado para el texto */
.hero-show::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 9, 5, .35) 0%, transparent 22%, transparent 55%, rgba(14, 9, 5, .82) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(14, 9, 5, .45) 100%);
}
.hs-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  text-align: center;
}
.hs-kicker, .hs-title { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hs-slide.is-active .hs-kicker { opacity: 1; transform: none; transition-delay: .5s; }
.hs-slide.is-active .hs-title { opacity: 1; transform: none; transition-delay: .7s; }
.hs-kicker { font-family: var(--f-caps); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: #d9bd82; }
.hs-title {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  background: linear-gradient(180deg, #fff3d6 0%, #e2c58a 60%, #c49a52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}
.hs-bars {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 6px;
  width: min(62%, 240px);
  transform: translateX(-50%);
}
.hs-bar { flex: 1; height: 18px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.hs-bar::before { content: ""; display: block; height: 2px; background: rgba(255, 244, 220, .28); border-radius: 2px; }
.hs-bar i { display: block; height: 2px; margin-top: -2px; background: linear-gradient(90deg, #c49a52, #f0dca8); transform: scaleX(0); transform-origin: left; border-radius: 2px; }
.hs-bar.is-done i { transform: scaleX(1); }
.hs-bar.is-active i { animation: hs-progress var(--hs-dur, 6.5s) linear forwards; }
.hero-show.is-paused .hs-bar.is-active i,
.hero-show.is-offscreen .hs-bar.is-active i,
body:not(.is-loaded) .hs-bar.is-active i { animation-play-state: paused; }
@keyframes hs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   Galería Femenino / Masculino
   ========================================================= */
.gallery-x {
  --gx-bar: 78px;
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  color: #f3e9d6;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 220, 150, .14), transparent 70%),
    linear-gradient(rgba(16, 10, 6, .82), rgba(16, 10, 6, .9)),
    #120c08 var(--wood) center top / 1600px auto;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 60px));
  transition: clip-path .9s cubic-bezier(.77, 0, .18, 1);
}
.gallery-x[hidden] { display: none; }
.gallery-x.is-open { clip-path: circle(150% at var(--ox, 50%) var(--oy, 60px)); }
html.gx-open { overflow: hidden; }

.gx-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--gx-bar);
  padding: 0 max(22px, env(safe-area-inset-left)) 0 max(22px, env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: rgba(16, 10, 6, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gx-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-line); }
.gx-mark { width: 52px; aspect-ratio: 740 / 640; }

.gx-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(210, 176, 106, .55);
  background: rgba(255, 240, 210, .05);
}
.gx-switch__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--gold-grad);
  box-shadow: 0 8px 22px -10px rgba(210, 160, 70, .7);
  transition: transform .6s cubic-bezier(.7, 0, .2, 1);
}
.gallery-x[data-g="m"] .gx-switch__thumb { transform: translateX(100%); }
.gx-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #d9bd82;
  font-family: var(--f-caps);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .5s;
}
.gx-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.gx-tab[aria-selected="true"] { color: #2a1a08; }

.gx-close {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(210, 176, 106, .6);
  background: none;
  cursor: pointer;
  transition: background .4s, transform .5s var(--ease);
}
.gx-close span { position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: #d9bd82; transform: rotate(45deg); }
.gx-close span + span { transform: rotate(-45deg); }
.gx-close:hover { background: rgba(210, 176, 106, .15); transform: rotate(90deg); }

.gx-scroll { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.gx-intro {
  min-height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.gx-intro .eyebrow { justify-content: center; }
.gx-intro .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold-line); }
.gx-intro h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(46px, 8vw, 104px); line-height: 1; color: #f6ecda; margin-bottom: 22px; }
.gallery-x[data-g="f"] .gx-title-m, .gallery-x[data-g="m"] .gx-title-f { display: none; }
.gx-lead { max-width: 460px; color: #cdbb9c; margin-bottom: 40px; }
.gx-scroll-hint { width: 26px; height: 42px; border-radius: 14px; border: 1px solid rgba(210, 176, 106, .7); display: grid; justify-items: center; padding-top: 8px; }
.gx-scroll-hint i { width: 3px; height: 8px; border-radius: 2px; background: #d2b06a; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* cada resultado es una escena fija que se revela con el scroll */
.gx-scene { position: relative; height: 210vh; height: 210dvh; }
.gx-sticky {
  position: sticky;
  top: 0;
  height: calc(100vh - var(--gx-bar));
  height: calc(100dvh - var(--gx-bar) - env(safe-area-inset-top));
  display: grid;
  grid-template-columns: auto minmax(0, 420px);
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  padding: 3vh 24px;
}
.gx-scene:nth-child(even) .gx-sticky { grid-template-columns: minmax(0, 420px) auto; }
.gx-scene:nth-child(even) .gx-ba { order: 2; }
.gx-ba { height: min(78vh, 760px); aspect-ratio: 3 / 4; width: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(210, 176, 106, .5); }
.gx-ba .ba__tag { transition: opacity .4s; }
.gx-ba[data-side="after"] .ba__tag--l, .gx-ba[data-side="before"] .ba__tag--r { opacity: .35; }

.gx-info { position: relative; }
.gx-num { font-family: var(--f-caps); font-size: 13px; letter-spacing: .3em; color: #b9944f; }
.gx-scene__title { display: block; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin: 14px 0 16px; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-info p { color: #cdbb9c; font-size: 16px; margin-bottom: 26px; }
.gx-meter { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: #b9a07a; }
.gx-meter span { flex: 1; height: 1px; background: rgba(210, 176, 106, .25); position: relative; overflow: hidden; }
.gx-meter span i { position: absolute; inset: 0; background: var(--gold-line); transform-origin: left; transform: scaleX(var(--p, 0)); }
.gx-info .card__link { color: #d9bd82; border-color: rgba(217, 189, 130, .5); }

.gx-end { text-align: center; padding: 18vh 24px calc(18vh + env(safe-area-inset-bottom)); }
.gx-end p { font-size: clamp(32px, 4vw, 48px); margin-bottom: 30px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .brand-wrap { justify-content: flex-start; gap: 10px; }
  .brand-wrap .brand { order: -1; margin-right: 4px; }
  .g-btn__label { display: none; }
  .g-btn__icon { width: 44px; height: 44px; }
  .g-btn svg { width: 19px; height: 19px; }

  .gallery-x { --gx-bar: 64px; }
  .gx-mark { display: none; }
  .gx-tab { padding: 0 16px; font-size: 10.5px; letter-spacing: .14em; }
  .gx-close { width: 44px; height: 44px; }
  .gx-close span { left: 13px; right: 13px; }

  .gx-scene { height: 190vh; height: 190dvh; }
  .gx-sticky,
  .gx-scene:nth-child(even) .gx-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 18px; padding: 2vh 16px; }
  .gx-scene:nth-child(even) .gx-ba { order: 0; }
  .gx-ba { height: auto; width: min(82vw, calc((100dvh - var(--gx-bar)) * .5)); }
  .gx-info { text-align: center; max-width: 440px; }
  .gx-scene__title { font-size: clamp(26px, 7.4vw, 34px); margin: 6px 0 8px; }
  .gx-info p { font-size: 14px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .gx-meter { margin-bottom: 4px; }
  .gx-info .card__link { margin-inline: auto; }
}
@media (max-width: 370px) {
  .brand-wrap { gap: 6px; }
  .g-btn__icon { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide.is-active img { animation: none; transform: none; }
  .gallery-x { transition: none; }
}

/* =========================================================
   Páginas de tratamientos (SEO local)
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.crumbs a { color: var(--gold-deep); }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; color: var(--gold); }
.page-sub .hero { padding-top: 30px; }
.hero--svc .hero__title { font-size: clamp(42px, 5.4vw, 78px); }
.hero--svc .hero__title .gold-text { font-size: .82em; }

.svc-urgency { display: flex; align-items: center; gap: 10px; margin: -30px 0 34px; font-size: 13.5px; color: var(--muted); }
.svc-urgency i { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: live 2s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.svc-facts { list-style: none; margin: 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid rgba(161, 118, 43, .25); max-width: 560px; }
.svc-facts span { display: block; font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.svc-facts strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 19px; line-height: 1.2; color: var(--espresso); }

.ficha { background: linear-gradient(rgba(255, 253, 249, .82), rgba(255, 253, 249, .82)), var(--marble) 20% 30% / cover; }
.ficha__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.ficha__intro h2, .svc-fit h2, .svc-result h2, .svc-doctor h2, .cta-band h2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; color: var(--espresso); margin-bottom: 18px; }
.ficha__resumen { font-size: 17.5px; color: var(--ink); margin-bottom: 30px; }
.ficha__card { margin: 0; padding: 14px 34px; border-radius: var(--radius); border: 1px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--gold-border) border-box; box-shadow: var(--shadow); }
.ficha__item { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(161, 118, 43, .18); }
.ficha__item:last-child { border-bottom: 0; }
.ficha__item dt { font-family: var(--f-caps); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); padding-top: 3px; }
.ficha__item dd { margin: 0; font-size: 15.5px; color: var(--ink); }

.svc-result__grid { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 80px; align-items: center; justify-content: center; }
.svc-result__copy .disclaimer { text-align: left; margin: 0 0 26px; }

.svc-fit { background: var(--ivory-2); }
.svc-fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.svc-check { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.svc-check li { position: relative; padding: 16px 18px 16px 52px; border-radius: 14px; background: rgba(255, 253, 249, .8); border: 1px solid rgba(161, 118, 43, .2); }
.svc-check li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--gold-grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.3 14.2-4-4 1.4-1.4 2.6 2.6 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.3 14.2-4-4 1.4-1.4 2.6 2.6 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.svc-benefits { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-benefits li { padding: 22px; border-radius: 14px; border: 1px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--gold-border) border-box; }
.svc-benefits h4 { font-family: var(--f-script); font-size: 22px; margin-bottom: 6px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-benefits p { margin: 0; font-size: 14.5px; color: var(--muted); }

.cta-band { position: relative; padding: 110px 0; text-align: center; color: var(--ivory); overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 225, 160, .2), transparent 70%), linear-gradient(rgba(20, 13, 8, .55), rgba(20, 13, 8, .72)), var(--espresso) var(--wood) center top / 1600px auto repeat; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--gold-line); }
.cta-band::before { top: 12px; } .cta-band::after { bottom: 12px; }
.cta-band__inner { position: relative; z-index: 1; max-width: 760px; }
.cta-band .eyebrow { justify-content: center; }
.cta-band .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold-line); }
.cta-band h2 { color: var(--ivory); }
.cta-band h2 em { font-family: var(--f-script); font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { color: #d6c39c; margin-bottom: 34px; }

.svc-doctor { background: var(--ivory-2); }
.svc-doctor__grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 80px; align-items: center; }
.svc-doctor .arch--about { width: 100%; }

.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--gold-deep); }
.center--duo { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hub-hero { padding-bottom: 20px; }
.hub-hero h1 { font-family: var(--f-display); font-weight: 300; font-size: clamp(42px, 6vw, 80px); line-height: 1.05; color: var(--espresso); margin-bottom: 20px; }
.hub-actions { justify-content: center; margin: 30px 0 0; }
.hub-group { padding: 70px 0; }

/* pie de página con todos los tratamientos */
.footer__grid--wide { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer__grid--wide > div:not(:first-child) a { font-size: 14px; }
.footer__nap { font-style: normal; font-size: 14px; line-height: 1.8; margin-top: 16px; }
.footer__h5-gap { margin-top: 22px; }

/* barra fija de reserva en móvil */
.m-cta { display: none; }
@media (max-width: 900px) {
  .m-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 247, 241, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px -18px rgba(60, 40, 20, .5);
    transform: translateY(110%);
    transition: transform .5s var(--ease);
  }
  .m-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }
  .m-cta.is-visible { transform: none; }
  .m-cta .btn { --h: 50px; padding: 0 20px; }
  .page-sub .wa-float { display: none; }
  html.gx-open .m-cta, html.menu-open .m-cta { transform: translateY(110%); }

  .ficha__grid, .svc-result__grid, .svc-fit__grid, .svc-doctor__grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-result__ba { max-width: 420px; margin-inline: auto; width: 100%; }
  .svc-doctor .arch--about { max-width: 320px; margin-inline: auto; }
  .footer__grid--wide { grid-template-columns: 1fr 1fr; }
  .footer__grid--wide > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .svc-urgency { margin: -18px 0 28px; font-size: 12.5px; align-items: flex-start; }
  .svc-urgency i { margin-top: 5px; }
  .svc-facts { gap: 10px; }
  .svc-facts strong { font-size: 15px; }
  .svc-facts span { font-size: 9px; letter-spacing: .14em; }
  .ficha__card { padding: 6px 20px; }
  .ficha__item { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .ficha__resumen { font-size: 16px; }
  .svc-benefits { grid-template-columns: 1fr; }
  .cta-band { padding: 84px 0; }
  .cta-band .btn { width: 100%; }
  .page-sub .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer__grid--wide { grid-template-columns: 1fr; }
}

/* ---------- Página 404 ---------- */
.not-found { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.not-found h1 { font-family: var(--f-display); font-weight: 300; font-size: clamp(36px, 6vw, 60px); line-height: 1.1; margin-bottom: 16px; }
.not-found h1 em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .carousel__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 60px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .topbar__inner > .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }

  .nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; height: 86px; }
  .header.is-scrolled .header__inner { height: 72px; }
  .brand { justify-content: flex-start; }
  .brand__logo { height: 70px; }
  .header.is-scrolled .brand__logo { height: 56px; }
  .burger {
    display: grid;
    gap: 7px;
    width: 46px;
    height: 46px;
    place-content: center;
    background: none;
    border: 1px solid transparent;
    background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--gold-border) border-box;
    border-radius: 50%;
    cursor: pointer;
  }
  .burger span { width: 20px; height: 1.5px; background: var(--gold-deep); transition: transform .4s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 30px 24px calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      linear-gradient(rgba(250, 247, 241, .9), rgba(250, 247, 241, .94)),
      var(--ivory) var(--marble) center / cover;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mobile-menu a:not(.btn) {
    font-family: var(--f-display);
    font-size: 32px;
    line-height: 1.2;
    padding: 10px 20px;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .mobile-menu.is-open a:not(.btn) { opacity: 1; transform: none; }
  .mobile-menu.is-open a:nth-child(2) { transition-delay: .04s; }
  .mobile-menu.is-open a:nth-child(3) { transition-delay: .08s; }
  .mobile-menu.is-open a:nth-child(4) { transition-delay: .12s; }
  .mobile-menu.is-open a:nth-child(5) { transition-delay: .16s; }
  .mobile-menu.is-open a:nth-child(6) { transition-delay: .2s; }
  .mobile-menu .btn { margin-top: 22px; }
  html.menu-open { overflow: hidden; }
  html.menu-open .wa-float { opacity: 0; pointer-events: none; }

  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; min-height: 0; }
  .hero__media { justify-self: center; width: min(400px, 82%); }
  .hero__seal { left: -30px; width: 104px; top: 40%; }
  .arch::before { inset: -11px; }
  .hero__badge { right: -20px; top: 30px; padding: 12px 18px; }
  .hero__badge-big { font-size: 20px; }
  .hero__ring { display: none; }
  .hero__facts { gap: 24px; }
  .hero__facts strong { font-size: 32px; }

  .section { padding: 90px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .carousel__track { grid-auto-columns: 46%; }
  .carousel__btn { display: none; }

  .about__grid,
  .faq__grid { grid-template-columns: 1fr; gap: 60px; }
  .faq__head { position: static; }
  .about__media { width: 100%; max-width: 460px; margin-inline: auto; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .steps::before { display: none; }

  .gallery { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery__item { aspect-ratio: 1; }

  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 32px); }

  /* barra superior: áreas táctiles de 44px */
  .topbar__inner { height: 44px; }
  .topbar__links { gap: 18px; font-size: 11.5px; }
  .topbar__item { min-height: 44px; }

  /* hero */
  .hero { padding-top: 34px; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .22em; gap: 10px; }
  .hero .eyebrow::before { width: 22px; }
  .hero__title { font-size: clamp(40px, 12.4vw, 50px); margin-bottom: 20px; }
  .hero__lead { font-size: 16px; margin-bottom: 28px; }
  .hero__actions { margin-bottom: 36px; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 22px;
    text-align: center;
  }
  .hero__facts li { flex-direction: column; gap: 6px; }
  .hero__facts strong { font-size: 30px; }
  .hero__facts > li > span { font-size: 11px; }
  .hero__facts br { display: none; }
  .hero__media { width: 86%; }
  .hero__seal { width: 84px; left: -20px; top: 42%; }
  .hero__badge { right: -14px; top: 22px; padding: 10px 14px; }
  .hero__badge-line { font-size: 9px; }
  .hero__badge-big { font-size: 17px; }
  .frame-ornament { width: 14px; height: 14px; top: -18px; }

  /* pilares en 2 columnas compactas */
  .pillars { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; padding-bottom: 64px; }
  .pillar { padding: 22px 12px 20px; border-radius: 14px; }
  .pillar svg { width: 46px; height: 46px; padding: 10px; margin-bottom: 12px; }
  .pillar h3 { font-size: 19px; line-height: 1.15; margin-bottom: 6px; }
  .pillar p { font-size: 12.5px; line-height: 1.5; }

  /* secciones */
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2, .about h2, .faq h2 { font-size: clamp(32px, 9.6vw, 40px); }
  .section-head p { font-size: 15px; }
  .divider span { width: 70px; }

  /* pestañas: una sola fila deslizable */
  .tabs {
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    margin-bottom: 34px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab__long { display: none; }
  .tabs { margin-inline: auto; }
  .tab { flex: 0 0 auto; min-height: 44px; padding: 0 18px; font-size: 10.5px; white-space: nowrap; scroll-snap-align: start; }

  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card__body { padding: 22px 22px 24px; }
  .card h3 { font-size: 24px; }
  .card__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-bottom: 0; }

  .carousel__track { grid-auto-columns: 80%; gap: 16px; padding-inline: 2px; }
  .ba-card figcaption { font-size: 18px; }

  .quote { padding: 96px 0; }
  .quote__mark { width: 80px; }

  .about__media { padding: 20px 0 46px 14px; }
  .about__lead { font-size: 22px; }

  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .marquee { padding: 16px 0; }
  .marquee__track { font-size: 22px; gap: 26px; }

  .accordion summary { font-size: 20px; padding: 18px 48px 18px 0; }
  .accordion details p { padding-right: 0; }

  .cta { padding: 96px 0 104px; }
  .cta__actions .btn { width: 100%; }

  .footer { padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer__grid > div:not(:first-child) { gap: 0; }
  .footer__grid a { padding: 9px 0; }
  .footer__bottom { flex-direction: column; }

  .wa-float { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); height: 58px; padding: 0 15px; }
}

@media (max-width: 370px) {
  .hero__facts strong { font-size: 26px; }
  .pillar h3 { font-size: 17px; }
  .tab { padding: 0 14px; letter-spacing: .12em; }
}
