/* ============================================================
   CONSULTORIO DE TERAPIA DEL DOLOR — Dra. Ana Vernengo
   Design System
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --salvia: #5C8C8B;
  --deep:   #3F6968;
  --wood:   #B89A78;
  --walnut: #9A7A5E;

  /* Neutrals (light) */
  --bg:        #FBFAF7;
  --bg-2:      #F4F1EA;
  --surface:   #FFFFFF;
  --ink:       #2E3A39;
  --ink-soft:  #55605E;
  --muted:     #8A847A;
  --line:      #ECE7DF;
  --line-2:    #E3DDD2;

  /* Accents derived */
  --salvia-050: #EEF4F3;
  --salvia-100: #DCE9E7;
  --wood-050:   #F6F1EA;
  --on-brand:   #FFFFFF;

  /* Typography */
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;

  --fs-eyebrow: 0.86rem;
  --fs-body:    1.28rem;
  --fs-lead:    1.5rem;
  --fs-h4:      1.62rem;
  --fs-h3:      2.05rem;
  --fs-h2:      clamp(2.35rem, 4.6vw, 3.25rem);
  --fs-h1:      clamp(2.9rem, 6.6vw, 4.9rem);
  --fs-display: clamp(3.2rem, 7.4vw, 5.6rem);

  /* Spacing scale (8-base) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-16: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation — extremely soft */
  --e-1: 0 1px 2px rgba(47,58,57,.04), 0 2px 8px rgba(47,58,57,.04);
  --e-2: 0 2px 6px rgba(47,58,57,.05), 0 10px 30px rgba(47,58,57,.06);
  --e-3: 0 8px 24px rgba(47,58,57,.07), 0 24px 60px rgba(47,58,57,.08);

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 124px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur: .5s;
  --dur-fast: .28s;

  --glow: 0 0 0 rgba(0,0,0,0);
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  --bg:        #101817;
  --bg-2:      #16211F;
  --surface:   #17221F;
  --ink:       #EAF1EE;
  --ink-soft:  #C3CFCB;
  --muted:     #93A19C;
  --line:      #253330;
  --line-2:    #2C3B37;

  --salvia:    #7FB2AF;
  --deep:      #5C8C8B;
  --wood:      #CBB092;
  --walnut:    #C0A184;

  --salvia-050: #16241F;
  --salvia-100: #1B2E2A;
  --wood-050:   #211C16;
  --on-brand:   #0F1615;

  --e-1: 0 1px 2px rgba(0,0,0,.3), 0 2px 10px rgba(0,0,0,.25);
  --e-2: 0 2px 8px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.32);
  --e-3: 0 10px 30px rgba(0,0,0,.4), 0 26px 70px rgba(0,0,0,.45);

  --glow: 0 0 60px rgba(127,178,175,.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; background: var(--bg); transition: background var(--dur) var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-soft);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { color: var(--ink); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--salvia); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-16); position: relative; }
.section--tight { padding-block: var(--s-12); }
.eyebrow {
  font-size: .94rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--salvia); display: inline-block; margin-bottom: var(--s-2);
}
.section-head { max-width: 640px; margin-bottom: var(--s-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.head-ic { width: 68px; height: 68px; border-radius: 50%; background: var(--salvia-050); color: var(--deep); display: grid; place-items: center; margin: 0 auto var(--s-3); box-shadow: var(--e-1); }
.head-ic svg { width: 34px; height: 34px; }
.head-ic--wood { background: var(--wood-050); color: var(--walnut); }
.h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); }
.serif { font-family: var(--font-serif); font-style: italic; }

/* ---------- Skip link ---------- */
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  background: var(--deep); color: #fff; padding: 12px 20px; border-radius: var(--r-sm);
  transform: translateY(-140%); transition: transform var(--dur-fast) var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 18px 34px; border-radius: var(--r-pill);
  font-size: 1.12rem; font-weight: 500; letter-spacing: .01em;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  min-height: 58px; white-space: nowrap;
}
.btn svg { width: 21px; height: 21px; }
.btn--primary { background: var(--deep); color: #fff; box-shadow: var(--e-1); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--e-2); background: var(--salvia); }
/* CTA del menú: siempre letra blanca, fondo más marcado */
.nav__cta, .nav__cta:link, .nav__cta:visited { color: #fff; background: var(--deep); }
.nav__cta:hover { color: #fff; background: var(--salvia); }
html[data-theme="dark"] .nav__cta { background: #16403E; color: #fff; box-shadow: inset 0 0 0 1px rgba(127,178,175,.35); }
html[data-theme="dark"] .nav__cta:hover { background: #0F2E2C; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--salvia); color: var(--deep); }
.btn--lg { padding: 22px 46px; font-size: 1.2rem; min-height: 66px; }
.btn--on-photo { background: rgba(255,255,255,.16); color:#fff; backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--on-photo:hover { background: #fff; color: var(--deep); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1); opacity: 0; transition: opacity var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled::before { opacity: 1; border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); position: relative; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo { height: 88px; width: auto; display: block; }
.footer__brand .brand__logo { height: 92px; }
@media (max-width: 560px) { .brand__logo { height: 60px; } }
.brand__mark { width: 60px; height: 60px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand__ey { font-size: .58rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--salvia); }
.brand__nm { font-size: 1.02rem; font-weight: 500; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.brand__sub { font-family: var(--font-serif); font-style: italic; font-size: .82rem; color: var(--walnut); }

.nav { display: flex; align-items: center; gap: 1px; }
.nav a {
  position: relative; padding: 10px 12px; border-radius: var(--r-pill);
  font-size: 1.14rem; color: var(--wood); transition: color var(--dur-fast) var(--ease);
}
.nav a:hover { color: var(--walnut); }
.nav a.active { color: var(--walnut); }
.nav a .dot {
  position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--wood); transform: translateX(-50%) scale(0); transition: transform var(--dur-fast) var(--ease);
}
.nav a.active .dot { transform: translateX(-50%) scale(1); }
.nav__cta { margin-left: 10px; }

.burger { display: none; width: 46px; height: 46px; border-radius: var(--r-pill); align-items: center; justify-content: center; }
.burger span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.burger span::before, .burger span::after { content:""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-12); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.hero__content { max-width: 620px; }
.hero__title { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.hero__title strong { font-weight: 500; color: var(--deep); }
.hero__title .serif { font-weight: 400; color: var(--walnut); display: block; font-size: .82em; margin-top: .1em; white-space: nowrap; }
.hero__lead { margin-top: var(--s-3); font-size: var(--fs-lead); max-width: 46ch; }
.hero__cta { margin-top: var(--s-6); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hero__meta { margin-top: var(--s-6); display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero__meta .stat b { display: block; font-size: 2rem; font-weight: 500; color: var(--deep); font-family: var(--font-serif); font-style: italic; line-height: 1; }
.hero__meta .stat span { font-size: 1rem; color: var(--muted); letter-spacing: .02em; }

.portrait { position: relative; justify-self: center; width: min(440px, 100%); }
.portrait__disc {
  position: absolute; inset: 6% 0 auto 0; margin: auto; width: min(400px, 88%); aspect-ratio: 1;
  background: linear-gradient(160deg, var(--salvia-100), var(--salvia) 120%);
  border-radius: 50%; box-shadow: var(--e-3);
}
.portrait__img {
  position: relative; z-index: 1; display: block; margin-inline: auto;
  width: min(420px, 92%); height: 600px; object-fit: cover; object-position: top center;
  filter: drop-shadow(0 30px 40px rgba(47,58,57,.18));
}
.portrait__badge {
  position: absolute; z-index: 2; bottom: 6%; left: -4%;
  background: var(--surface); border-radius: var(--r-lg); padding: 16px 20px;
  box-shadow: var(--e-2); display: flex; align-items: flex-start; gap: 12px; max-width: 300px;
}
.portrait__badge .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--salvia-050); display: grid; place-items: center; color: var(--deep); flex: none; }
.portrait__badge-txt { display: flex; flex-direction: column; gap: 5px; line-height: 1.32; }
.portrait__badge b { color: var(--ink); font-weight: 500; font-size: .94rem; display: block; }
.portrait__badge span { font-size: .74rem; color: var(--muted); }

/* ---------- Aurora background (subtle animated glow) ---------- */
.aurora { position: fixed; inset: -20%; z-index: -1; pointer-events: none; filter: blur(52px); opacity: .95; }
.aurora::before, .aurora::after { content: ""; position: absolute; inset: 0; }
.aurora::before {
  background:
    radial-gradient(30% 34% at 18% 22%, rgba(92,140,139,.62), transparent 68%),
    radial-gradient(28% 32% at 84% 26%, rgba(140,180,200,.58), transparent 68%);
  animation: drift1 13s ease-in-out infinite;
}
.aurora::after {
  background:
    radial-gradient(32% 36% at 74% 80%, rgba(184,154,120,.48), transparent 68%),
    radial-gradient(30% 34% at 22% 82%, rgba(176,196,190,.56), transparent 68%);
  animation: drift2 17s ease-in-out infinite;
}
@keyframes drift1 {
  0%   { transform: translate3d(-8%,-4%,0) scale(1); }
  25%  { transform: translate3d(11%,6%,0)  scale(1.22); }
  50%  { transform: translate3d(6%,13%,0) scale(1.08); }
  75%  { transform: translate3d(-11%,7%,0) scale(1.26); }
  100% { transform: translate3d(-8%,-4%,0) scale(1); }
}
@keyframes drift2 {
  0%   { transform: translate3d(7%,6%,0)   scale(1.14); }
  25%  { transform: translate3d(-10%,-3%,0) scale(1); }
  50%  { transform: translate3d(-4%,-12%,0) scale(1.22); }
  75%  { transform: translate3d(11%,-6%,0)  scale(1.06); }
  100% { transform: translate3d(7%,6%,0)   scale(1.14); }
}
html[data-theme="dark"] .aurora { opacity: .55; filter: blur(70px); }
html[data-theme="dark"] .aurora::before { background:
    radial-gradient(30% 34% at 18% 22%, rgba(127,176,174,.55), transparent 70%),
    radial-gradient(28% 32% at 84% 26%, rgba(160,196,214,.50), transparent 70%); }
html[data-theme="dark"] .aurora::after { background:
    radial-gradient(32% 36% at 74% 80%, rgba(194,184,214,.42), transparent 70%),
    radial-gradient(30% 34% at 22% 82%, rgba(214,193,166,.50), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .aurora::before, .aurora::after { animation: none; } }

/* ---------- Statement band (abordaje integrativo) ---------- */
.statement { padding-block: var(--s-12); text-align: center; }
.statement .wrap { max-width: 940px; }
.statement__eyebrow { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--walnut); margin-bottom: var(--s-3); }
.statement .head-ic { margin-bottom: var(--s-3); }
.statement__title { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.statement__title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--salvia); }
.statement__title strong { font-weight: 500; color: var(--deep); }
.statement__sub { margin: var(--s-4) auto 0; max-width: 58ch; font-size: var(--fs-lead); color: var(--ink-soft); }

/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: var(--s-12); align-items: center; }
.about__media { position: relative; }
.about__carousel { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--e-2); aspect-ratio: 4/5; background: var(--bg-2); }
.ac__track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.ac__slide { flex: 0 0 100%; position: relative; margin: 0; height: 100%; }
.ac__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 24px; color: #fff; font-family: var(--font-serif); font-style: italic; font-size: 1.24rem; background: linear-gradient(to top, rgba(30,42,41,.78), transparent); display: flex; align-items: center; gap: 14px; }
.ac__ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); display: grid; place-items: center; color: #fff; animation: acFloat 3.4s var(--ease) infinite; }
.ac__ic svg { width: 24px; height: 24px; }
@keyframes acFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.ac__arrow { position: absolute; top: 46%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; box-shadow: var(--e-1); transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.ac__arrow svg { width: 22px; height: 22px; }
.ac__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
html[data-theme="dark"] .ac__arrow { background: rgba(23,34,31,.82); color: #EAF1EE; }
html[data-theme="dark"] .ac__arrow:hover { background: rgba(23,34,31,.95); transform: translateY(-50%) scale(1.08); }
.ac__prev { left: 14px; } .ac__next { right: 14px; }
.ac__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.ac__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: .3s var(--ease); }
.ac__dots button.on { background: #fff; width: 22px; border-radius: 4px; }
.about__frame {
  border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2);
  aspect-ratio: 4/5; box-shadow: var(--e-2); position: relative;
}
.about__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about__quote {
  position: absolute; right: -24px; bottom: 32px; background: var(--deep); color: #fff;
  padding: 22px 26px; border-radius: var(--r-lg); max-width: 260px; box-shadow: var(--e-2);
  font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.45;
}
.creds { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.cred { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e-1); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.cred:hover { transform: translateY(-3px); box-shadow: var(--e-2); }
.cred .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--salvia-050); color: var(--deep); display: grid; place-items: center; flex: none; }
.cred b { color: var(--ink); font-weight: 500; display: block; }
.cred span { font-size: .92rem; }

/* ---------- Treatments ---------- */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.tcard {
  grid-column: span 1; background: var(--surface); border-radius: var(--r-lg); padding: var(--s-4);
  box-shadow: var(--e-1); border: 1px solid var(--line); cursor: pointer; position: relative;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  overflow: hidden;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--e-2); border-color: var(--salvia-100); }
.tcard__ic { width: 66px; height: 66px; border-radius: 18px; background: var(--salvia-050); color: var(--deep); display: grid; place-items: center; margin-bottom: var(--s-3); transition: background var(--dur-fast) var(--ease); }
.tcard:hover .tcard__ic { background: var(--salvia-100); }
.tcard__ic svg { width: 34px; height: 34px; }
.tcard h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
.tcard p { font-size: 1.12rem; }
.tcard__more { margin-top: var(--s-2); display: inline-flex; align-items: center; gap: 8px; color: var(--deep); font-weight: 500; font-size: .92rem; }
.tcard__more svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.tcard.open .tcard__more svg { transform: rotate(45deg); }
.tcard__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.tcard__panel > div { overflow: hidden; }
.tcard.open .tcard__panel { grid-template-rows: 1fr; }
.tcard__art {
  height: 160px; border-radius: var(--r-md); margin: var(--s-3) 0 var(--s-2);
  position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.9);
}
.tcard__art svg { width: 54px; height: 54px; opacity: .9; }
.tcard__long { font-size: .96rem; line-height: 1.7; }
.tcard.span-2 { grid-column: span 2; }
.tcard__cta { margin-top: var(--s-3); }

/* ---------- Benefits ---------- */
.benefits { background: var(--bg-2); }
.ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.ben {
  background: var(--surface); border-radius: var(--r-lg); padding: var(--s-4);
  box-shadow: var(--e-1); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.ben:hover { transform: translateY(-4px); box-shadow: var(--e-2); }
.ben .ic { width: 62px; height: 62px; border-radius: 16px; background: var(--wood-050); color: var(--walnut); display: grid; place-items: center; margin-bottom: var(--s-2); }
.ben .ic svg { width: 30px; height: 30px; }
.ben h3 { font-size: 1.42rem; margin-bottom: 6px; }
.ben p { font-size: 1.12rem; }

/* ---------- Process timeline ---------- */
.proc { position: relative; }
.proc-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); position: relative; }
.proc-line::before {
  content: ""; position: absolute; top: 41px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--salvia-100), var(--salvia), var(--salvia-100));
}
.step { text-align: center; position: relative; }
.step__num {
  width: 82px; height: 82px; border-radius: 50%; background: var(--surface); color: var(--deep);
  display: grid; place-items: center; margin: 0 auto var(--s-2); font-family: var(--font-serif); font-style: italic;
  font-size: 1.85rem; box-shadow: var(--e-1); border: 1.5px solid var(--salvia-100); position: relative; z-index: 1;
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
/* halo latente que respira (solo durante el avance automático) */
.step__num::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--wood);
  opacity: 0; transform: scale(.85); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.step.walk .step__num { background: var(--wood); color: #fff; transform: scale(1.1); box-shadow: var(--e-2); }
.step.walk .step__num::before { animation: haloPulse 2.6s var(--ease) infinite; }
@keyframes haloPulse { 0%,100% { opacity: 0; transform: scale(.85); } 50% { opacity: .5; transform: scale(1.12); } }
.step h3, .step p { transition: color .3s var(--ease), transform .3s var(--ease); }
.step:hover .step__num { transform: scale(1.16); background: var(--wood); color: #fff; box-shadow: var(--e-2); }
.step:hover .step__num::before { opacity: 0; animation: none; }
.step:hover h3 { color: var(--walnut); transform: translateY(-2px); }
.step:hover p { color: var(--ink-soft); }
.step h3 { font-size: 1.42rem; margin-bottom: 6px; }
.step p { font-size: 1.08rem; line-height: 1.55; }

/* ---------- Testimonials ---------- */
.testi { background: var(--bg-2); overflow: hidden; }
.testi .section-head { max-width: 900px; }
.testi__viewport { overflow: hidden; }
.testi__track { display: flex; gap: var(--s-3); transition: transform var(--dur) var(--ease); }
.tst {
  flex: 0 0 calc((100% - var(--s-3) * 2) / 3); background: var(--surface); border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-4); box-shadow: var(--e-1); display: flex; flex-direction: column; gap: 16px;
}
.tst__stars { color: var(--wood); letter-spacing: 3px; font-size: 1.08rem; }
.tst__body { font-family: var(--font-serif); font-style: italic; font-size: 1.26rem; color: var(--ink); line-height: 1.62; flex: 1; }
.tst__who { display: flex; align-items: center; gap: 14px; }
.tst__av { width: 50px; height: 50px; border-radius: 50%; background: var(--salvia-050); color: var(--deep); display: grid; place-items: center; font-weight: 500; flex: none; font-size: 1.05rem; }
.tst__who b { color: var(--ink); font-weight: 500; display: block; font-size: 1.06rem; }
.tst__who span { font-size: .92rem; color: var(--muted); }
.testi__nav { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-4); }
.testi__dots { display: flex; gap: 8px; }
.testi__dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: .3s var(--ease); }
.testi__dots button.on { background: var(--salvia); width: 26px; border-radius: 5px; }
.testi__arrows { display: flex; gap: 10px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); box-shadow: var(--e-1); display: grid; place-items: center; color: var(--ink); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.arrow:hover { color: var(--deep); box-shadow: var(--e-2); transform: translateY(-2px); }

/* ---------- Location ---------- */
.loc .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: stretch; }
.map {
  border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: 440px; box-shadow: var(--e-2);
  background:
    radial-gradient(circle at 30% 40%, rgba(92,140,139,.12), transparent 60%),
    linear-gradient(150deg, var(--salvia-050), var(--bg-2));
}
.map__grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px; }
.map__road { position: absolute; background: var(--surface); opacity: .8; }
.map__pin { position: absolute; top: 44%; left: 46%; transform: translate(-50%,-100%); z-index: 2; }
.map__pin .pulse { position: absolute; left: 50%; top: 100%; width: 26px; height: 26px; border-radius: 50%; background: rgba(63,105,104,.3); transform: translate(-50%,-60%); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%{transform:translate(-50%,-60%) scale(.6);opacity:.7} 100%{transform:translate(-50%,-60%) scale(2.6);opacity:0} }
.map__cta { position: absolute; left: 24px; bottom: 24px; z-index: 3; }
.contact-card { background: var(--surface); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--e-2); }
.contact-list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.ci { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); transition: background var(--dur-fast) var(--ease); }
.ci:hover { background: var(--bg-2); }
.ci .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--salvia-050); color: var(--deep); display: grid; place-items: center; flex: none; }
.ci b { color: var(--ink); font-weight: 500; display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.ci span, .ci a { color: var(--ink-soft); }
.ci a:hover { color: var(--deep); }
.socials { display: flex; gap: 12px; margin-top: var(--s-4); }
.socials a { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--bg-2); color: var(--ink); display: grid; place-items: center; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.socials a:hover { transform: translateY(-3px); background: var(--deep); color: #fff; }

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.closing::before { content:""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 50%, rgba(255,255,255,.06), transparent 60%); }
.closing .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-6); align-items: end; position: relative; }
.closing__txt { padding-block: var(--s-12); max-width: 440px; }
.closing__txt .eyebrow { color: var(--wood); }
.closing h2 { color: #fff; font-size: var(--fs-h2); font-weight: 300; }
.closing h2 strong { font-weight: 500; }
.closing p { color: rgba(255,255,255,.82); font-size: var(--fs-body); margin-top: var(--s-2); }
.closing__cta { margin-top: var(--s-6); }
.closing__photo { position: relative; align-self: end; display: flex; justify-content: center; align-items: flex-end; }
.closing__photo img { display: block; width: auto; height: clamp(520px, 62vw, 820px); object-fit: contain; filter: drop-shadow(0 24px 50px rgba(0,0,0,.38)); }
.contact-card .h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); padding-block: var(--s-8) var(--s-4); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.footer__brand .brand__nm { color: var(--ink); }
.footer p { font-size: .95rem; max-width: 38ch; margin-top: var(--s-2); }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--s-2); }
.footer nav a { display: block; padding: 6px 0; color: var(--ink-soft); transition: color var(--dur-fast) var(--ease); }
.footer nav a:hover { color: var(--deep); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding-top: var(--s-4); font-size: .85rem; color: var(--muted); }
.footer__bar a { color: var(--muted); } .footer__bar a:hover { color: var(--deep); }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: var(--s-4); max-width: 70ch; line-height: 1.6; }

/* ---------- Floating widget ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 1200; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab__panel {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e-3); border: 1px solid var(--line);
  padding: var(--s-3); width: 280px; transform-origin: bottom right;
  transform: scale(.9) translateY(10px); opacity: 0; pointer-events: none;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.fab.open .fab__panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.fab__grip { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-2); cursor: grab; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.fab__grip:active { cursor: grabbing; }
.fab__grip .dots { display: flex; gap: 3px; } .fab__grip .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.fab__section + .fab__section { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.fab__label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.seg { display: flex; background: var(--bg-2); border-radius: var(--r-pill); padding: 4px; }
.seg button { flex: 1; padding: 9px 8px; border-radius: var(--r-pill); font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; gap: 6px; transition: .25s var(--ease); }
.seg button.on { background: var(--surface); color: var(--deep); box-shadow: var(--e-1); }
.sounds { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.sound { padding: 12px 6px; border-radius: var(--r-md); background: var(--bg-2); text-align: center; transition: .25s var(--ease); border: 1.5px solid transparent; }
.sound:hover { background: var(--salvia-050); }
.sound.on { background: var(--salvia-050); border-color: var(--salvia); }
.sound .emo { font-size: 1.5rem; display: block; }
.sound span { font-size: .72rem; color: var(--ink-soft); }
.vol { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.vol input { flex: 1; accent-color: var(--salvia); }
.mute { width: 100%; margin-top: 12px; padding: 12px; border-radius: var(--r-md); background: var(--bg-2); color: var(--ink); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .25s var(--ease); }
.mute:hover { background: var(--salvia-050); color: var(--deep); }
.mute.muted { background: #F3E3E0; color: #B0503F; }
html[data-theme="dark"] .mute.muted { background: #3A2320; color: #E8A79A; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
#cursor-toggle { display: inline-flex; align-items: center; padding: 0; }
.switch { display: inline-block; width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--line-2); position: relative; transition: .25s var(--ease); flex: none; }
.switch::after { content:""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--e-1); transition: .25s var(--ease); }
.switch.on { background: var(--salvia); } .switch.on::after { left: 23px; }

.fab__btn {
  width: 60px; height: 60px; border-radius: 50%; background: var(--deep); color: #fff;
  display: grid; place-items: center; box-shadow: var(--e-2);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.fab__btn:hover { transform: scale(1.05); background: var(--salvia); }
.fab__btn svg { width: 26px; height: 26px; }
.fab.playing .fab__btn { animation: breathe 3s var(--ease) infinite; }
@keyframes breathe { 0%,100%{ box-shadow: 0 0 0 0 rgba(92,140,139,.35), var(--e-2);} 50%{ box-shadow: 0 0 0 14px rgba(92,140,139,0), var(--e-2);} }

/* ---------- Cursor light ---------- */
.cursor-light {
  position: fixed; width: 585px; height: 585px; border-radius: 50%; pointer-events: none; z-index: 900;
  left: 0; top: 0; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(92,140,139,.07), rgba(92,140,139,.025) 45%, transparent 68%);
  opacity: 0; transition: opacity .6s var(--ease); will-change: transform;
}
html[data-theme="dark"] .cursor-light { background: radial-gradient(circle, rgba(127,178,175,.08), rgba(127,178,175,.03) 45%, transparent 68%); }
body.cursor-on .cursor-light { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
/* Reveal: transform-only rise (opacity stays 1) so content is always legible
   even if the entrance transition can't run. */
.reveal { transform: translateY(16px); transition: transform .7s var(--ease); }
.reveal.in { transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; } }

/* ---------- Dark image glow ---------- */
html[data-theme="dark"] .portrait__img,
html[data-theme="dark"] .about__frame,
html[data-theme="dark"] .closing__photo img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.4)) drop-shadow(0 0 40px rgba(127,178,175,.10)); }

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1100; background: var(--bg); padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}
body.menu-open .mobile-nav { transform: none; }
.mobile-nav a { font-size: 1.5rem; padding: 14px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: var(--s-3); justify-content: center; }

/* ============================================================
   Responsive
   ============================================================ */
/* Aprovechar más ancho en pantallas grandes */
@media (min-width: 1440px) { :root { --maxw: 1360px; } }
@media (min-width: 1600px) { :root { --maxw: 1480px; } }
@media (min-width: 1800px) { :root { --maxw: 1600px; } }

/* Menú hamburguesa un poco antes, para que el logo grande no apriete el nav */
@media (max-width: 1160px) {
  .nav, .nav__cta { display: none; }
  .burger { display: flex; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .treat-grid, .ben-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card .h2 { white-space: normal; }
  .tst { flex: 0 0 calc((100% - var(--s-3)) / 2); }
  .hero .wrap { gap: var(--s-6); }
  .closing__photo { min-height: 420px; }
}

@media (max-width: 820px) {
  .nav, .nav__cta { display: none; }
  .burger { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 100%; margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__meta { justify-content: center; }
  .portrait { margin-top: var(--s-6); }
  .about .wrap { grid-template-columns: 1fr; gap: var(--s-6); }
  .about__quote { position: static; margin-top: var(--s-3); max-width: 100%; }
  .loc .wrap { grid-template-columns: 1fr; }
  .closing .wrap { grid-template-columns: 1fr; }
  .closing__txt { padding-block: var(--s-12) 0; text-align: center; margin-inline: auto; }
  .closing__cta { display: flex; justify-content: center; }
  .closing__photo { min-height: 480px; }
  .footer__top { grid-template-columns: 1fr; gap: var(--s-4); }
  .proc-line { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .proc-line::before { display: none; }
}

@media (max-width: 560px) {
  .section { padding-block: var(--s-12); }
  .treat-grid, .ben-grid { grid-template-columns: 1fr; }
  .tcard.span-2 { grid-column: span 1; }
  .tst { flex: 0 0 100%; }
  .proc-line { grid-template-columns: 1fr; }
  .fab { right: 16px; bottom: 16px; }
  .fab__panel { width: min(300px, calc(100vw - 32px)); }
  .hero__meta .stat b { font-size: 1.6rem; }
  .cursor-light { display: none; }
}

/* ---------- Anclas: contenido a ~25px del header ---------- */
main .section[id] { scroll-margin-top: calc(25px - var(--s-16)); }
@media (max-width: 560px) { main .section[id] { scroll-margin-top: calc(25px - var(--s-12)); } }
/* ---------- Hover tarjetas: mejor lectura ---------- */
.tcard h3, .tcard p, .tcard__more, .ben h3, .ben p { transition: color var(--dur-fast) var(--ease); }
.tcard:hover h3, .tcard:hover .tcard__more { color: var(--deep); }
.tcard:hover p { color: var(--ink); }
.ben:hover h3 { color: var(--walnut); }
.ben:hover p { color: var(--ink); }
html[data-theme="dark"] .tcard:hover h3, html[data-theme="dark"] .tcard:hover .tcard__more { color: var(--salvia); }
html[data-theme="dark"] .tcard:hover p, html[data-theme="dark"] .ben:hover p { color: #EAF1EE; }
html[data-theme="dark"] .ben:hover h3 { color: #D8BFA2; }

/* ---------- Perfil profesional (sobre) ---------- */
.about__profile { margin-top: var(--s-4); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); display: grid; gap: 14px; }
.about__profile p { color: var(--ink-soft); font-size: .98rem; line-height: 1.7; }
html[data-theme="dark"] .about__profile { background: rgba(255,255,255,.04); }
/* ---------- Boton WhatsApp fijo ---------- */
.fab__wa { width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--e-2); transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.fab__wa:hover { transform: scale(1.05); background: #1EBE5B; color: #fff; }
.fab__wa svg { width: 30px; height: 30px; }
/* ---------- Fix scroll horizontal en moviles ---------- */
html { overflow-x: clip; }
@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .hero__title strong { white-space: normal !important; }
  .hero__title strong br { display: none; }
  .hero__title .serif { white-space: normal; }
  .hero__lead { font-size: 1.02rem; }
  .hero__meta { flex-wrap: wrap; }
  .wrap, .hero__copy { min-width: 0; }
}

/* ---------- Ajustes hero/about: menos aire, foto alineada arriba ---------- */
.hero { padding-bottom: var(--s-8); }
.section.about { padding-block: var(--s-8) var(--s-12); }
.about .wrap { align-items: start; gap: var(--s-8); }
.about__body .lead { font-size: 1.05rem; }
.creds { gap: var(--s-2); }
.cred { padding: 12px 14px; }
.cred b { font-size: .95rem; }
.cred span { font-size: .85rem; }
.about__profile { padding: var(--s-3); gap: 10px; }
.about__profile p { font-size: .92rem; line-height: 1.6; }
/* ---------- WhatsApp fijo: icono centrado ---------- */
.fab__wa span[data-icon] { display: grid; place-items: center; width: 30px; height: 30px; }
.fab__wa svg { display: block; width: 30px; height: 30px; }
/* ---------- Mapa embebido ---------- */
.map__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
html[data-theme="dark"] .map__iframe { filter: saturate(.7) brightness(.92); }
/* ---------- Footer: tagline destacado, legales chicos, iconos ---------- */
.footer__brand .footer__tagline { font-size: 1.18rem; line-height: 1.55; color: var(--ink); font-family: var(--font-serif); font-style: italic; max-width: 34ch; margin-top: var(--s-3); }
html[data-theme="dark"] .footer__brand .footer__tagline { color: #EAF1EE; }
.disclaimer { font-size: .72rem; opacity: .85; }
.footer__bar { font-size: .75rem; }
.footer nav a { display: flex; align-items: center; gap: 9px; }
.footer nav .fi { width: 17px; height: 17px; color: var(--salvia); flex: none; display: grid; place-items: center; }
.footer nav .fi svg { width: 17px; height: 17px; }

/* Cita: debajo del carrusel para no tapar el caption */
.about__quote { position: static; margin-top: var(--s-3); max-width: 100%; }

/* ---------- About: columna derecha recompensada ---------- */
.about__body .h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); max-width: 24ch; }
.about__body .lead { font-size: 1.08rem; line-height: 1.65; }
.creds { gap: var(--s-2); grid-template-columns: 1fr 1fr; display: grid; }
.cred { padding: 14px 16px; }
.cred b { font-size: 1rem; }
.cred span { font-size: .9rem; line-height: 1.5; }
.about__profile { padding: var(--s-4); gap: 12px; }
.about__profile p { font-size: 1rem; line-height: 1.65; }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr; } }

/* ---------- Badge del hero: letra legible ---------- */
.portrait__badge { max-width: 350px; padding: 18px 22px; }
.portrait__badge b { font-size: 1.05rem; }
.portrait__badge span { font-size: .92rem; line-height: 1.45; }
/* ---------- Credenciales: letra mas grande, interlineado normal ---------- */
.cred span { font-size: 1rem !important; line-height: 1.45 !important; }
.cred b { font-size: 1.05rem !important; }
/* ---------- Cierre: foto mas grande, de rodillas hacia arriba ---------- */
.closing__photo { overflow: hidden; }
.closing__photo img { height: clamp(760px, 88vw, 1150px); margin-bottom: clamp(-330px, -26vw, -210px); }
/* ---------- Slider: caption claro, sin velo oscuro, icono grande ---------- */
.ac__slide figcaption {
  background: rgba(255,255,255,.94); color: var(--deep);
  font-style: normal; font-family: var(--font-sans); font-weight: 500; font-size: 1.06rem;
  padding: 14px 18px; margin: 0 14px 14px; border-radius: var(--r-lg);
  left: 0; right: 0; box-shadow: var(--e-1);
  display: flex; align-items: center; gap: 14px;
}
.ac__ic { width: 54px; height: 54px; background: var(--salvia-050); box-shadow: none; color: var(--deep); }
.ac__ic svg { width: 30px; height: 30px; }
html[data-theme="dark"] .ac__slide figcaption { background: rgba(24,32,31,.92); color: #EAF1EE; }
html[data-theme="dark"] .ac__ic { background: rgba(127,178,175,.18); color: var(--salvia); }
/* icono whatsapp dentro de botones */
.btn span[data-icon] { display: inline-grid; place-items: center; width: 21px; height: 21px; }

/* ---------- Flotante WhatsApp con etiqueta ---------- */
.fab__wa { width: auto; height: 56px; border-radius: 999px; padding: 0 22px 0 16px; display: flex; align-items: center; gap: 10px; }
.fab__wa-txt { font-size: .95rem; font-weight: 600; color: #fff; white-space: nowrap; letter-spacing: .01em; }
/* ---------- Testimonios: dots centrados, sin flechas ---------- */
.testi__nav { justify-content: center; }

/* ---------- Mini slider del badge ---------- */
.badge-slider { position: relative; display: block; min-height: 62px; }
.badge-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); font-size: .92rem; line-height: 1.45; color: var(--muted); }
.badge-slide.on { opacity: 1; transform: translateY(0); }
.badge-dots { display: flex; gap: 5px; margin-top: 6px; }
.badge-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: .3s var(--ease); }
.badge-dots i.on { background: var(--salvia); width: 16px; border-radius: 3px; }

/* ---------- Badge fuera de la foto: tarjeta debajo del retrato ---------- */
.portrait__badge { position: static; margin-top: 14px; max-width: 100%; width: 100%; }
.badge-dots { display: none !important; }
.badge-slide { color: var(--ink-soft); }

/* ---------- Badge: texto a todo el ancho, sin desborde ---------- */
.portrait__badge-txt { flex: 1; min-width: 0; }
.badge-slide { font-size: .9rem; line-height: 1.5; }
/* ---------- Flotante WA: redondo + burbuja de mensaje ---------- */
.fab__wa { width: 62px; height: 62px; border-radius: 50%; padding: 0; display: grid; place-items: center; position: relative; overflow: visible; }
.fab__wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.45); animation: waPulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab__wa-txt {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600;
  padding: 10px 16px; border-radius: 14px 14px 4px 14px; box-shadow: var(--e-2);
  white-space: nowrap; pointer-events: none;
  animation: waBob 3.2s var(--ease) infinite;
  transform-origin: 100% 50%;
}
.fab__wa-txt::after { content: ""; position: absolute; right: -7px; bottom: 8px; border: 7px solid transparent; border-left-color: var(--surface); border-bottom: none; }
@keyframes waBob {
  0%, 60%, 100% { transform: translateY(-50%) rotate(0) scale(1); }
  66% { transform: translateY(-50%) rotate(-2.5deg) scale(1.05); }
  72% { transform: translateY(-50%) rotate(2deg) scale(1.05); }
  78% { transform: translateY(-50%) rotate(-1deg) scale(1.03); }
  84% { transform: translateY(-50%) rotate(0) scale(1); }
}
html[data-theme="dark"] .fab__wa-txt { background: #223231; color: #EAF1EE; }
html[data-theme="dark"] .fab__wa-txt::after { border-left-color: #223231; }
@media (prefers-reduced-motion: reduce) { .fab__wa::after, .fab__wa-txt { animation: none; } }

/* ---------- Slider sobre: caption tipografico puro ---------- */
.ac__slide figcaption {
  margin: 0; left: 0; right: 0; bottom: 0; border-radius: 0;
  background: rgba(252,250,246,.93); color: var(--deep);
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.18rem; letter-spacing: .01em;
  padding: 16px 20px; justify-content: center; text-align: center;
  box-shadow: none; border-top: 1px solid rgba(63,105,104,.14);
  display: flex; gap: 0;
}
.ac__ic { display: none !important; }
html[data-theme="dark"] .ac__slide figcaption { background: rgba(20,28,27,.9); color: #DDEAE7; border-top-color: rgba(127,178,175,.2); }

/* ---------- Slider "Sobre": slides tipograficos delicados ---------- */
.ac__slide--type {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; padding: 40px 34px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(127,178,175,.16), transparent 55%),
    radial-gradient(110% 80% at 85% 100%, rgba(196,167,125,.14), transparent 60%),
    linear-gradient(165deg, #FCFAF6, #F1EFE7);
}
.ac__slide--type img { display: none; }
.ac__num { font-family: var(--font-serif); font-style: italic; font-size: 1rem; letter-spacing: .22em; color: var(--salvia); }
.ac__phrase { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.35; color: var(--deep); max-width: 16ch; text-wrap: balance; }
.ac__rule { width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--salvia), transparent); }
.ac__slide--type figcaption, .ac__slide.ac__slide--type figcaption { display: none; }
html[data-theme="dark"] .ac__slide--type {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(127,178,175,.14), transparent 55%),
    radial-gradient(110% 80% at 85% 100%, rgba(196,167,125,.1), transparent 60%),
    linear-gradient(165deg, #1C2725, #141C1B);
}
html[data-theme="dark"] .ac__phrase { color: #DDEAE7; }

/* ---------- Slider tipografico: icono delicado ---------- */
.ac__slide--type { gap: 14px; }
.ac__type-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: var(--deep); background: rgba(127,178,175,.14); box-shadow: inset 0 0 0 1px rgba(63,105,104,.18); }
.ac__type-ic svg { width: 34px; height: 34px; stroke-width: 1.4; }
html[data-theme="dark"] .ac__type-ic { color: var(--salvia); background: rgba(127,178,175,.12); box-shadow: inset 0 0 0 1px rgba(127,178,175,.25); }

/* ---------- Carrusel: tamano contenido y fijo ---------- */
.about__carousel { max-width: 440px; margin-inline: auto; }
.ac__slide--type { overflow: hidden; padding: 28px; min-height: 0; }
.ac__slide--type > * { flex: none; }
.ac__num { display: none !important; }
/* ---------- Icono protagonista con onda ---------- */
.ac__type-ic {
  width: 210px; height: 210px; border-radius: 50%; position: relative;
  background:
    radial-gradient(65% 65% at 32% 28%, rgba(255,255,255,.85), transparent 70%),
    conic-gradient(from 210deg, rgba(127,178,175,.35), rgba(196,167,125,.22), rgba(127,178,175,.35));
  box-shadow: inset 0 0 0 1px rgba(63,105,104,.16), 0 18px 40px -18px rgba(63,105,104,.35);
  animation: icFloat 5.5s ease-in-out infinite;
}
.ac__type-ic::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(63,105,104,.28);
  animation: icSpin 26s linear infinite;
}
.ac__type-ic svg { width: 96px; height: 96px; stroke-width: 1.1; }
@keyframes icFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes icSpin { to { transform: rotate(360deg); } }
.ac__phrase { font-size: clamp(1.3rem, 2vw, 1.7rem); }
html[data-theme="dark"] .ac__type-ic {
  background:
    radial-gradient(65% 65% at 32% 28%, rgba(127,178,175,.25), transparent 70%),
    conic-gradient(from 210deg, rgba(127,178,175,.2), rgba(196,167,125,.14), rgba(127,178,175,.2));
  box-shadow: inset 0 0 0 1px rgba(127,178,175,.25), 0 18px 40px -18px rgba(0,0,0,.5);
}
@media (prefers-reduced-motion: reduce) { .ac__type-ic, .ac__type-ic::before { animation: none; } }

/* ---------- Carrusel: ancho completo de la columna ---------- */
.about__carousel { max-width: 100%; }
/* ---------- Columna derecha: textos mas grandes, interlineado normal ---------- */
.about__body .lead { font-size: 1.1rem !important; line-height: 1.5 !important; }
.cred b { font-size: 1.02rem !important; line-height: 1.3 !important; }
.cred span { font-size: .98rem !important; line-height: 1.4 !important; }
.about__profile p { font-size: 1.02rem !important; line-height: 1.5 !important; }
.about__quote { font-size: 1.3rem; line-height: 1.5; }

/* Carrusel: alto contenido, ocupa la columna sin agrandarla */
.about__carousel { aspect-ratio: auto; height: 520px; }
.ac__track { height: 100%; }
.ac__slide { height: 100%; }

/* Columnas about: nunca crecer por contenido interno */
.about__media, .about__body { min-width: 0; }
.about__carousel { width: 100%; }

/* ---------- Fondo de slides: aurora suave + halos que respiran ---------- */
.ac__slide--type { position: relative; isolation: isolate; }
.ac__slide--type::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; border-radius: 50%;
  background:
    radial-gradient(38% 34% at 28% 26%, rgba(127,178,175,.32), transparent 70%),
    radial-gradient(32% 30% at 74% 70%, rgba(196,167,125,.26), transparent 70%),
    radial-gradient(26% 24% at 66% 22%, rgba(127,178,175,.18), transparent 70%);
  filter: blur(28px);
  animation: acAurora 14s ease-in-out infinite alternate;
}
.ac__slide--type::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 118%, rgba(63,105,104,.10), transparent 55%);
}
@keyframes acAurora {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(4%, -3%) rotate(6deg) scale(1.06); }
  100% { transform: translate(-4%, 3%) rotate(-5deg) scale(1.02); }
}
/* anillos concentricos muy tenues detras del icono */
.ac__type-ic::after {
  content: ""; position: absolute; inset: -46px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, transparent 58%, rgba(63,105,104,.07) 59%, transparent 61%, transparent 74%, rgba(63,105,104,.05) 75%, transparent 77%);
  animation: icBreath 5.5s ease-in-out infinite;
}
@keyframes icBreath { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.07); opacity: .55; } }
html[data-theme="dark"] .ac__slide--type::before {
  background:
    radial-gradient(38% 34% at 28% 26%, rgba(127,178,175,.20), transparent 70%),
    radial-gradient(32% 30% at 74% 70%, rgba(196,167,125,.13), transparent 70%),
    radial-gradient(26% 24% at 66% 22%, rgba(127,178,175,.12), transparent 70%);
}
html[data-theme="dark"] .ac__type-ic::after {
  background: radial-gradient(circle, transparent 58%, rgba(127,178,175,.10) 59%, transparent 61%, transparent 74%, rgba(127,178,175,.07) 75%, transparent 77%);
}
@media (prefers-reduced-motion: reduce) { .ac__slide--type::before, .ac__type-ic::after { animation: none; } }

/* ---------- Textos: interlineado compacto en tarjetas de credenciales ---------- */
.cred span { line-height: 1.35 !important; }
.cred { align-items: center; }

/* ---------- Hero movil (opcion B): foto de fondo, todo en un pantallazo ---------- */
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 18px); position: relative; min-height: 100svh; display: flex; align-items: stretch; }
  .hero .wrap { position: relative; text-align: left; }
  .hero__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 100%; text-align: left; }
  .hero__lead { margin-inline: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero__meta { justify-content: flex-start; }
  .hero__content > *:not(.portrait) { position: relative; z-index: 2; }
  .hero__content .portrait {
    position: absolute; top: -6px; right: -46px; margin: 0; z-index: 0;
    width: 74%; pointer-events: none;
  }
  .hero__content .portrait__img {
    max-height: 68vh; width: auto; margin-left: auto; display: block; object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 93%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 93%);
    opacity: .95;
  }
  .hero__content .portrait__disc { display: none; }
  .hero__content .portrait__badge { display: none; }
  .hero__content::before {
    content: ""; position: absolute; inset: -20px -22px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(252,250,246,.94) 32%, rgba(252,250,246,.45) 64%, rgba(252,250,246,.05));
  }
  html[data-theme="dark"] .hero__content::before {
    background: linear-gradient(90deg, rgba(15,21,20,.94) 32%, rgba(15,21,20,.5) 64%, rgba(15,21,20,.08));
  }
  .hero__title { font-size: clamp(1.9rem, 8.6vw, 2.3rem); max-width: 10ch; }
  .hero__title .serif { font-size: .78em; }
  .hero__lead { max-width: 26ch; margin-top: var(--s-3); }
  .hero__cta { margin-top: var(--s-3); }
  .hero__meta { margin-top: auto; padding-top: var(--s-4); }
}

/* ---------- Ubicacion: panel grafico en lugar del mapa ---------- */
.loc-art {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background:
    radial-gradient(90% 70% at 24% 18%, rgba(127,178,175,.20), transparent 60%),
    radial-gradient(80% 65% at 80% 88%, rgba(196,167,125,.16), transparent 62%),
    linear-gradient(160deg, #FCFAF6, #EFEDE3);
  box-shadow: var(--e-1);
}
.loc-art__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(63,105,104,.16); }
.loc-art__ring.r1 { width: 300px; height: 300px; animation: locBreath 6s ease-in-out infinite; }
.loc-art__ring.r2 { width: 430px; height: 430px; border-color: rgba(63,105,104,.10); animation: locBreath 6s ease-in-out 1s infinite; }
.loc-art__ring.r3 { width: 570px; height: 570px; border-style: dashed; border-color: rgba(63,105,104,.08); animation: locSpin 40s linear infinite; }
@keyframes locBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes locSpin { to { transform: rotate(360deg); } }
.loc-art__ic { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: var(--deep);
  background: radial-gradient(65% 65% at 32% 28%, rgba(255,255,255,.9), transparent 70%), rgba(127,178,175,.16);
  box-shadow: inset 0 0 0 1px rgba(63,105,104,.15), 0 16px 36px -16px rgba(63,105,104,.35); }
.loc-art__ic svg { width: 58px; height: 58px; stroke-width: 1.2; }
.loc-art__txt { font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--deep); text-align: center; }
html[data-theme="dark"] .loc-art {
  background:
    radial-gradient(90% 70% at 24% 18%, rgba(127,178,175,.14), transparent 60%),
    radial-gradient(80% 65% at 80% 88%, rgba(196,167,125,.10), transparent 62%),
    linear-gradient(160deg, #1C2725, #141C1B);
}
html[data-theme="dark"] .loc-art__txt { color: #DDEAE7; }
html[data-theme="dark"] .loc-art__ic { color: var(--salvia); background: rgba(127,178,175,.12); box-shadow: inset 0 0 0 1px rgba(127,178,175,.22); }
@media (prefers-reduced-motion: reduce) { .loc-art__ring { animation: none; } }
