/* =========================================================
   Ingrid Solís — Bioneuroemoción · landing
   Design read: service landing for people seeking emotional
   support. Calm, warm, human, sober, modern. Native HTML/CSS/JS.
   Palette: soft warm neutrals — light brown (café con leche) as
   the base, with delicate terracotta (rojizo) and muted gold
   (amarillo) as sparing accents. Single committed light theme.
   Type: Bricolage Grotesque (display), Figtree (UI/body),
   Caveat (signature only).
   Dials: variance 6 · motion 5 · density 3.
   ========================================================= */

:root {
  --bone:      #f7f2e8;   /* warm paper background */
  --bone-2:    #fffdf7;   /* card / raised surface */
  --tint-clay: #efe2d4;   /* pale pink-brown section tint */
  --tint-sand: #f2ebdb;   /* warm sand section tint */
  --ink:       #3a322b;   /* warm near-black brown (text) */
  --ink-soft:  #5b5044;
  --muted:     #6a5d4d;
  --line:      rgba(58, 46, 36, 0.14);
  --line-2:    rgba(58, 46, 36, 0.24);

  --brown:      #7a5942;  /* primary — light/medium brown */
  --brown-deep: #543c2b;  /* hover / dark panels */
  --terra:      #a9503a;  /* rojizo accent (delicate) + emphasis */
  --gold:       #c1913f;  /* amarillo accent (delicate, decorative) */
  --gold-deep:  #8a5f1f;  /* gold for small text (steps number) */
  --gold-soft:  #efe0c2;

  --wa:      #25d366;     /* WhatsApp green */
  --wa-hi:   #1ebe5b;
  --wa-ink:  #06351b;     /* text/icon on the green (AA on --wa) */

  --radius:    16px;
  --radius-sm: 12px;
  --wrap:      1180px;
  --pad-x:     clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 7.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.965rem + 0.18vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}

::selection { background: var(--brown); color: var(--bone-2); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
section[id] { scroll-margin-top: 88px; }
p { text-wrap: pretty; }

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- brand lockup ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; line-height: 1; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__tag {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  padding-left: 0.6rem;
  border-left: 1px solid var(--line-2);
}
.brand--foot .brand__word { font-size: 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--brown);
  --btn-fg: var(--bone-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.5em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--brown-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(84, 60, 43, 0.5); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .ph { font-size: 1.15em; transition: transform 0.25s var(--ease); }
.btn:hover .ph { transform: translateX(3px); }
.btn--sm { padding: 0.66em 1.1em; font-size: 0.85rem; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(58, 46, 36, 0.06); border-color: var(--brown); color: var(--ink); box-shadow: none; }
.btn--on-dark {
  --btn-bg: var(--bone-2);
  --btn-fg: var(--brown-deep);
}
.btn--on-dark:hover { background: #fff; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.4); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 242, 232, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-stuck { border-color: var(--line); background: rgba(247, 242, 232, 0.94); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4em 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 3.5rem) var(--section-y); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2rem, 1.4rem + 2.1vw, 3rem);
  font-weight: 600;
  max-width: 25ch;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.hero__title b { font-weight: 800; color: var(--terra); }
.hero__sub {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2.2rem;
  font-weight: 400;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0; }
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(58, 46, 36, 0.42);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 540px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02) brightness(1.02);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(84, 60, 43, 0.26));
  mix-blend-mode: multiply;
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--brown-deep);
  color: var(--bone-2);
  padding-block: 0.95rem;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.marquee__track span::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- qué es (split) ---------- */
.bne { padding-block: var(--section-y); }
.bne__inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.bne__media {
  position: sticky;
  top: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.bne__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.bne__body h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); margin-bottom: 1.3rem; }
.bne__body > p { color: var(--ink-soft); max-width: 54ch; margin: 0 0 1.1rem; }
.bne__body > p:last-of-type { margin-bottom: 2.4rem; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.principles li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.principles li:first-child { border-top: 0; padding-top: 0; }
.principles .ph { font-size: 1.5rem; color: var(--brown); margin-top: 0.1rem; }
.principles h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: 0; }
.principles p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- en qué te acompaño ---------- */
.support { padding-block: var(--section-y); background: var(--tint-clay); border-block: 1px solid var(--line); }
.support__head { max-width: 40ch; margin-bottom: 3rem; }
.support__head h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); }
.support__head p { color: var(--ink-soft); margin: 0.9rem 0 0; }
.support__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.support__item {
  padding: 1.7rem 1.9rem 1.7rem 0;
  border-top: 1px solid var(--line-2);
}
.support__grid .support__item:nth-child(2n) { padding-left: 1.9rem; border-left: 1px solid var(--line-2); }
.support__pic {
  display: block;
  position: relative;
  height: clamp(158px, 15vw, 196px);
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--tint-sand);
}
.support__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98) brightness(1.02);
  transition: transform 0.6s var(--ease);
}
.support__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(122, 89, 66, 0.04), rgba(122, 89, 66, 0.17));
  mix-blend-mode: multiply;
}
.support__item:hover .support__pic img { transform: scale(1.03); }
.support__item h3 { font-family: var(--font-ui); font-size: 1.12rem; font-weight: 700; margin: 0 0 0.35rem; }
.support__item p { margin: 0; color: var(--muted); font-size: 0.96rem; max-width: 40ch; }

/* ---------- cómo es una sesión ---------- */
.steps { padding-block: var(--section-y); }
.steps h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); margin-bottom: 3.2rem; max-width: 16ch; }
.steps__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3.2vw, 2.2rem);
}
.steps__list li {
  position: relative;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.steps__list li:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 26px 52px -34px rgba(58, 46, 36, 0.42);
}
/* dashed connector sitting in the gap between cards */
.steps__list li::before {
  content: "";
  position: absolute;
  top: 3.1rem;
  right: 100%;
  width: clamp(1.4rem, 3.2vw, 2.2rem);
  border-top: 2px dashed var(--line-2);
}
.steps__list li:first-child::before { display: none; }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.15rem; }
.step__badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--tint-sand), var(--gold-soft));
  border: 1px solid var(--line-2);
  color: var(--brown);
}
.step__badge .ph { font-size: 1.55rem; }
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--terra);
  opacity: 0.45;
}
.steps__list h3 { font-family: var(--font-ui); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.45rem; }
.steps__list p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- sobre mí ---------- */
.about { padding-block: var(--section-y); background: var(--tint-sand); border-block: 1px solid var(--line); }
.about__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about__body h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); margin-bottom: 1.3rem; }
.about__body p { color: var(--ink-soft); max-width: 52ch; margin: 0 0 1.1rem; }
.about__list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.about__list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--ink-soft); font-size: 0.97rem; }
.about__list .ph { color: var(--brown); font-size: 1.2rem; margin-top: 0.12rem; flex: 0 0 auto; }
.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(58, 46, 36, 0.4);
}
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.92) contrast(1.02); }

/* ---------- modalidades ---------- */
.modes { padding-block: var(--section-y); }
.modes h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); margin-bottom: 2.6rem; }
.modes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.mode {
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3.5vw, 2.6rem);
}
.mode .ph { font-size: 2rem; color: var(--brown); }
.mode h3 { font-family: var(--font-ui); font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0.6rem; }
.mode p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 42ch; }

/* ---------- testimonios ---------- */
.quotes { padding-block: var(--section-y); background: var(--tint-clay); border-block: 1px solid var(--line); }
.quotes h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 2.4rem; }
.quotes__rail {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  padding-inline: max(var(--pad-x), calc((100vw - var(--wrap)) / 2));
  margin-inline: calc(-1 * max(var(--pad-x), calc((100vw - var(--wrap)) / 2)));
  scrollbar-width: thin;
  scrollbar-color: var(--brown) transparent;
}
.quotes__rail::-webkit-scrollbar { height: 6px; }
.quotes__rail::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 99px; }
.qcard {
  scroll-snap-align: start;
  flex: 0 0 clamp(280px, 80vw, 400px);
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.qcard p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.qcard__by { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.qcard__av {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  filter: saturate(0.92) contrast(0.98) brightness(1.02);
}
.qcard cite {
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}
.qcard cite span { display: block; font-weight: 400; color: var(--muted); margin-top: 0.15rem; }

/* ---------- faq ---------- */
.faq { padding-block: var(--section-y); }
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faq__inner > h2 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.7rem); position: sticky; top: 96px; }
.faq details { border-top: 1px solid var(--line-2); padding: 1.3rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brown);
  line-height: 1;
  transition: transform 0.3s var(--ease);
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.9rem 0 0; color: var(--muted); max-width: 58ch; font-size: 0.98rem; }

/* ---------- cierre / cta ---------- */
.final { padding-block: var(--section-y); }
.final__card {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  background: var(--brown-deep);
  color: var(--bone-2);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 7vw, 4.25rem) clamp(1.5rem, 5vw, 3.5rem);
}
.final__card h2 { color: var(--bone-2); font-size: clamp(1.8rem, 1.4rem + 2.4vw, 2.8rem); max-width: 20ch; margin-inline: auto; }
.final__card p { color: rgba(247, 242, 232, 0.82); max-width: 44ch; margin: 1.1rem auto 2rem; }
.final__mail { margin: 1.5rem 0 0; font-size: 0.9rem; color: rgba(247, 242, 232, 0.72); }
.final__mail a { color: var(--bone-2); border-bottom: 1px solid rgba(247, 242, 232, 0.4); padding-bottom: 1px; }
.final__mail a:hover { border-color: var(--bone-2); }

/* ---------- footer ---------- */
.foot { background: var(--bone); border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vw, 4.5rem); }
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 4rem);
  padding-bottom: 2.75rem;
}
.foot__sign {
  font-family: "Caveat", var(--font-display), cursive;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brown-deep);
  margin: 0;
}
.foot__role {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.55rem 0 0;
}
.foot__line { color: var(--ink-soft); font-size: 0.92rem; margin: 1.1rem 0 0; max-width: 34ch; }
.foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.72em 1.25em;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.foot__cta .ph { font-size: 1.2rem; }
.foot__cta:hover { background: var(--wa-hi); transform: translateY(-2px); }
.foot__col { display: grid; gap: 0.7rem; align-content: start; }
.foot__col h3 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.foot__col a, .foot__col span {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.2s var(--ease);
}
.foot__col a:hover { color: var(--brown); }
.foot__col .ph { color: var(--brown); font-size: 1.1rem; flex: 0 0 auto; }
.foot__disclaimer {
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 74ch;
}
.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 0 clamp(5rem, 9vw, 6.5rem);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.foot__base a { display: inline-flex; align-items: center; gap: 0.3rem; transition: color 0.2s var(--ease); }
.foot__base a:hover { color: var(--brown); }
.foot__base .ph { font-size: 0.95em; }
.foot__credit a { color: var(--ink-soft); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.foot__credit a:hover { color: var(--brown); }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  background: var(--wa);
  color: var(--wa-ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 16px 34px -12px rgba(6, 53, 27, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.wa-float .ph { font-size: 1.5rem; }
.wa-float:hover { background: var(--wa-hi); transform: translateY(-3px); }
.wa-float:active { transform: translateY(0) scale(0.97); }

/* ---------- scroll reveal (hidden only while JS runs) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--rv-d, 0s);
}
html.js .reveal--left  { transform: translateX(-46px); }
html.js .reveal--right { transform: translateX(46px); }
html.js .reveal--zoom  { transform: scale(0.93); }
html.js .reveal.in { opacity: 1; transform: none; }

/* staggered entrance for grouped children */
html.js :is(.hero__copy, .creed__inner, .support__grid, .steps__list, .modes__grid, .quotes__rail, .faq__list, .principles) > .reveal:nth-child(2) { --rv-d: 0.09s; }
html.js :is(.hero__copy, .creed__inner, .support__grid, .steps__list, .modes__grid, .quotes__rail, .faq__list, .principles) > .reveal:nth-child(3) { --rv-d: 0.18s; }
html.js :is(.creed__inner, .support__grid, .steps__list, .modes__grid, .quotes__rail, .faq__list, .principles) > .reveal:nth-child(4) { --rv-d: 0.27s; }
html.js :is(.support__grid, .quotes__rail, .faq__list) > .reveal:nth-child(5) { --rv-d: 0.36s; }
html.js :is(.support__grid, .faq__list) > .reveal:nth-child(6) { --rv-d: 0.45s; }

/* ---------- creed / frase de Bioneuroemoción ---------- */
.creed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background:
    radial-gradient(130% 90% at 12% 0%, rgba(193, 145, 63, 0.14), transparent 62%),
    var(--tint-clay);
  border-block: 1px solid var(--line);
}
.creed__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(1.06) sepia(0.28);
}
.creed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(239, 226, 212, 0.9), rgba(239, 226, 212, 0.83));
}
.creed__inner { position: relative; max-width: 760px; margin-inline: auto; text-align: center; }
.creed__mark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  line-height: 0.5;
  color: var(--terra);
  margin-bottom: 0.9rem;
}
.creed__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.55rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.creed__source {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.creed__sign {
  margin-top: 2.3rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line-2);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.creed__sign b {
  font-family: "Caveat", var(--font-display), cursive;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--brown-deep);
}
.creed__sign span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; }
  .bne__inner { grid-template-columns: 1fr; }
  .bne__media { position: static; max-width: 460px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; order: -1; }
  .steps__list { grid-template-columns: 1fr; gap: 1rem; }
  .steps__list li::before { display: none; }
  .modes__grid { grid-template-columns: 1fr; }
  .faq__inner { grid-template-columns: 1fr; }
  .faq__inner > h2 { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  /* on narrow screens, directional slides become vertical (no side overflow) */
  html.js .reveal--left, html.js .reveal--right { transform: translateY(30px); }
  .support__grid { grid-template-columns: 1fr; }
  .support__grid .support__item:nth-child(2n) { padding-left: 0; border-left: 0; }
  .support__item { padding-right: 0; }
  .support__pic { height: clamp(170px, 46vw, 230px); }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .wa-float span { display: none; }
  .wa-float { padding: 1rem; }
  .wa-float .ph { font-size: 1.7rem; }
}

@media (max-width: 560px) {
  .foot__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .brand__tag { display: none; }
  .btn--sm { padding: 0.58em 0.9em; font-size: 0.8rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
  .creed__bg { display: none; }
  .btn, .nav__links a::after, .wa-float, .faq summary::after { transition: none !important; }
  * { scroll-behavior: auto !important; }
}
