/* =============================================================
   Psic. Andrés Villaseñor · Psicoterapia (sitio de muestra)
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --lino: #EEE5D8;
  --lino-claro: #F6F0E7;
  --arena: #E3D5C1;
  --arena-oscura: #CDBBA2;
  --barro: #8C4630;
  --barro-hondo: #6F3423;
  --arcilla: #C07856;
  --arcilla-suave: #EBD3C2;
  --oliva: #3E4227;
  --oliva-media: #6B6E45;
  --oliva-clara: #A9A87E;
  --tinta: #2B2620;
  --tinta-suave: #5E554A;
  --linea: rgba(43, 38, 32, .14);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ribbon-h: 38px;
  --header-h: 68px;
  --gutter: 20px;
  --maxw: 1240px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon-h) + var(--header-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-top: var(--ribbon-h);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; text-wrap: balance; }
::selection { background: var(--barro); color: var(--lino-claro); }
:focus-visible { outline: 2px solid var(--barro); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--tinta); color: var(--lino); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--tinta-suave); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* 4. Typography ------------------------------------------------ */
.h2 {
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.04;
  font-variation-settings: "opsz" 72;
}
.lead { font-size: 1.08rem; color: var(--tinta-suave); max-width: 34ch; margin-top: 1.1rem; line-height: 1.6; }
.prose { font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.62; max-width: 36em; font-variation-settings: "opsz" 18; }
.prose + .prose { margin-top: 1em; }

/* 5. Components ------------------------------------------------ */
.btn {
  --bg: var(--barro);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  background: var(--bg); color: var(--lino-claro);
  border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: .005em;
  transition: background-color .5s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -14px rgba(111, 52, 35, .7);
}
.btn:hover { --bg: var(--barro-hondo); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost { --bg: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--arena-oscura); }
.btn-ghost:hover { --bg: var(--lino-claro); box-shadow: inset 0 0 0 1.5px var(--oliva-media); }
.btn-small { min-height: 42px; padding: .55rem 1.15rem; font-size: .94rem; }
.btn-full { width: 100%; }
.btn-wa { --bg: var(--oliva); margin-top: 1.8rem; box-shadow: 0 10px 24px -14px rgba(62,66,39,.8); }
.btn-wa:hover { --bg: #2F321D; }

/* Ribbon ------------------------------------------------------- */
.ribbon {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--oliva); color: #E7E1CF;
  font-size: .8rem; letter-spacing: .01em;
  padding-inline: 12px;
}
.ribbon p { display: flex; align-items: center; gap: .9rem; white-space: nowrap; min-width: 0; }
.rb-long { display: none; }
.rb-short { overflow: hidden; text-overflow: ellipsis; }
.rb-link {
  flex: none; color: var(--lino-claro); font-weight: 600;
  padding: .2rem .7rem; border-radius: 999px; background: rgba(238,229,216,.12);
  transition: background-color .4s var(--ease-out);
}
.rb-link:hover { background: rgba(238,229,216,.24); }

/* Header ------------------------------------------------------- */
.site-header {
  position: fixed; left: 0; right: 0; top: var(--ribbon-h); z-index: 50;
  height: var(--header-h);
  transition: background-color .6s var(--ease-out), box-shadow .6s var(--ease-out), height .6s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(238, 229, 216, .94);
  box-shadow: 0 1px 0 var(--linea), 0 12px 30px -24px rgba(43,38,32,.35);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled { background: rgba(238, 229, 216, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
}
.header-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; fill: var(--barro); transition: transform .9s var(--ease-out); }
.brand-mark .half { fill: var(--arcilla); opacity: .75; transition: transform .9s var(--ease-out); }
.brand:hover .brand-mark .half { transform: translateX(-2px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 400; letter-spacing: -.005em; }
.brand-sub { font-size: .78rem; color: var(--tinta-suave); letter-spacing: .02em; }
.nav { display: none; }
.header-cta { display: none; }

.menu-toggle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lino-claro); box-shadow: inset 0 0 0 1px var(--linea); }
.menu-lines { width: 20px; height: 10px; position: relative; }
.menu-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--tinta); border-radius: 2px; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--ribbon-h) + var(--header-h)) 0 0 0; z-index: 45;
  background: var(--lino);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 1.6rem;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 2rem; font-weight: 300; line-height: 1.2;
  padding: .55rem 0; border-bottom: 1px solid var(--linea);
  transition: color .3s var(--ease-out), padding-left .5s var(--ease-out);
}
.mobile-menu nav a:hover { color: var(--barro); padding-left: .4rem; }
.mobile-menu-note { font-size: .9rem; color: var(--tinta-suave); text-align: center; }
body.menu-open { overflow: hidden; }

/* 6. Sections -------------------------------------------------- */
.section { padding-block: clamp(5rem, 3.5rem + 7vw, 10rem); }

/* Hero */
.hero { padding-top: calc(var(--header-h) + 2.2rem); padding-bottom: 5.5rem; }
.hero-grid { display: grid; gap: 2.4rem; }
.hero-title {
  font-size: clamp(3.1rem, 1.6rem + 7.4vw, 7.4rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
}
.hero-title .ln { display: block; }
.hero-title .ln:last-child { font-style: italic; color: var(--barro); padding-left: .55em; }
.hero-lead { font-size: 1.1rem; line-height: 1.6; color: var(--tinta-suave); max-width: 36ch; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.hero-place { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-size: .92rem; color: var(--tinta-suave); }
.hero-place .ico { fill: none; color: var(--barro); }

.hero-media { position: relative; }
.hero-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border-radius: 999px 999px 22px 22px / 46% 46% 22px 22px;
  background: var(--arena);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-caption { padding-left: 120px; margin-top: .9rem; font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--tinta-suave); text-align: right; padding-right: .2rem; }

/* Breath — the one quiet ritual on the page */
.breath {
  position: absolute; left: -6px; bottom: -34px;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--lino-claro);
  box-shadow: 0 0 0 8px var(--lino), 0 22px 40px -22px rgba(43,38,32,.5);
  display: grid; place-items: center;
}
.breath-ring, .breath-dot { position: absolute; border-radius: 50%; }
.breath-ring { inset: 14px; background: radial-gradient(circle, rgba(192,120,86,.32), rgba(192,120,86,.08) 70%); animation: breathe 10s var(--ease-soft) infinite; }
.breath-dot { width: 7px; height: 7px; background: var(--barro); }
.breath-word {
  position: absolute; bottom: 18px;
  font-family: var(--serif); font-style: italic; font-size: .86rem; color: var(--barro-hondo);
  opacity: 0;
}
.w-in { animation: wordIn 10s linear infinite; }
.w-out { animation: wordOut 10s linear infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.5); } 45%, 55% { transform: scale(1); } }
@keyframes wordIn { 0% { opacity: 0; } 6%, 40% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes wordOut { 0%, 50% { opacity: 0; } 56%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Hero entrance (CSS only, runs once) */
.hero-title .ln, .hero-lead, .hero-actions, .hero-place { animation: rise 1.4s var(--ease-out) both; }
.hero-title .ln:nth-child(2) { animation-delay: .14s; }
.hero-lead { animation-delay: .32s; }
.hero-actions { animation-delay: .44s; }
.hero-place { animation-delay: .54s; }
.hero-frame { animation: unveil 1.8s var(--ease-out) .2s both; }
.hero-frame img { animation: settle 2.6s var(--ease-out) .2s both; }
.breath { animation: rise 1.4s var(--ease-out) 1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }

/* Para quién */
.for-grid { display: grid; gap: 3rem; }
.for-photo { margin-top: 2.4rem; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 22px; background: var(--arena); }
.for-photo img { width: 100%; height: 100%; object-fit: cover; }
.topics { border-top: 1px solid var(--linea); }
.topic { display: grid; gap: .45rem; padding: 1.6rem 0 1.7rem; border-bottom: 1px solid var(--linea); }
.topic h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.35rem); font-weight: 300; letter-spacing: -0.01em; transition: color .5s var(--ease-out), transform .7s var(--ease-out); }
.topic p { color: var(--tinta-suave); max-width: 40ch; }
.topic:hover h3 { color: var(--barro); transform: translateX(6px); }

/* Cómo trabajo */
.method { background: var(--arena); }
.method-grid { display: grid; gap: 3rem; }
.method-photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 22px 22px 999px 999px / 22px 22px 52% 52%; background: var(--arena-oscura); }
.method-photo img { width: 100%; height: 100%; object-fit: cover; }
.method-copy .h2 { margin-bottom: 1.6rem; }
.facts { margin-top: 2.4rem; display: grid; gap: 0; border-top: 1px solid rgba(43,38,32,.16); }
.fact { padding: 1.15rem 0; border-bottom: 1px solid rgba(43,38,32,.16); display: grid; gap: .2rem; }
.fact dt { font-family: var(--serif); font-style: italic; font-size: 1.28rem; color: var(--barro-hondo); }
.fact dd { color: var(--tinta-suave); }

/* Sobre mí */
.about-grid { display: grid; gap: 3rem; }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--arena); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .h2 { margin-bottom: 1.6rem; }
.pull { margin: 2.4rem 0; padding-left: 1.3rem; border-left: 2px solid var(--arcilla); }
.pull p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); line-height: 1.25; color: var(--barro); letter-spacing: -0.01em; }
.creds { display: grid; gap: .6rem; }
.creds li { display: flex; gap: .8rem; align-items: baseline; }
.creds li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--oliva-clara); transform: translateY(-2px); }
.cedula { margin-top: 1.6rem; font-size: .92rem; color: var(--tinta-suave); padding-top: 1.2rem; border-top: 1px solid var(--linea); }
.cedula span { opacity: .8; }

/* Primera sesión */
.first { background: var(--oliva); color: #ECE6D5; }
.first .lead { color: #C9C4AE; }
.first-grid { display: grid; gap: 3rem; }
.steps { position: relative; display: grid; gap: 2.4rem; padding-left: 0; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px;
  background: rgba(236,230,213,.28);
  transform-origin: top; transform: scaleY(1);
}
.js .steps::before { transform: scaleY(0); transition: transform 2.2s var(--ease-out); }
.js .steps.is-revealed::before { transform: scaleY(1); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1.2rem; align-items: start; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--oliva); box-shadow: inset 0 0 0 1px rgba(236,230,213,.4);
  font-family: var(--serif); font-size: 1.2rem; color: #F1DCCB;
  position: relative; z-index: 1;
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out);
}
.step:hover .step-n { background: var(--arcilla); color: var(--lino-claro); box-shadow: none; }
.step h3 { font-size: 1.75rem; font-weight: 300; margin: .45rem 0 .45rem; color: #F4EEDF; }
.step p { color: #C9C4AE; max-width: 40ch; }

/* Costos */
.prices-grid { display: grid; gap: 3rem; }
.price { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: .8rem; padding: 1.4rem 0; border-bottom: 1px solid var(--linea); }
.price:first-child { border-top: 1px solid var(--linea); }
.price-name h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 400; }
.price-name p { font-size: .92rem; color: var(--tinta-suave); margin-top: .25rem; }
.price-dots { height: 1px; margin-bottom: .7rem; background-image: radial-gradient(circle, var(--arena-oscura) 1px, transparent 1.4px); background-size: 7px 3px; background-repeat: repeat-x; min-width: 1.5rem; }
.price-amt { font-family: var(--serif); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 300; line-height: 1; color: var(--barro); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.price-notes { margin-top: 2rem; display: grid; gap: .55rem; font-size: .98rem; }
.price-notes strong { font-weight: 600; color: var(--oliva); }

/* Testimonios */
.voices { background: var(--arena); }
.voices-head { display: grid; gap: .9rem; margin-bottom: 3rem; }
.sample-note { font-size: .88rem; color: var(--tinta-suave); }
.voices-grid { display: grid; gap: 1.2rem; }
.voice {
  background: var(--lino-claro); border-radius: 22px;
  padding: 2rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  position: relative;
}
.voice::before {
  content: "\201C"; position: absolute; top: .3rem; right: 1.2rem;
  font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--arcilla-suave);
}
.voice blockquote p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.42; font-weight: 300; position: relative; }
.voice figcaption { font-size: .9rem; color: var(--tinta-suave); padding-top: 1rem; border-top: 1px solid var(--linea); }

/* FAQ */
.faq-grid { display: grid; gap: 2.4rem; }
.faq-list { border-top: 1px solid var(--linea); }
.qa { border-bottom: 1px solid var(--linea); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  padding: 1.35rem 0;
  font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); line-height: 1.3;
  transition: color .4s var(--ease-out);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background:
    linear-gradient(var(--barro), var(--barro)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--barro), var(--barro)) center / 1.5px 12px no-repeat,
    var(--lino-claro);
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: transform .6s var(--ease-out), background-color .4s;
}
.qa[open] summary::after { transform: rotate(135deg); }
.qa summary:hover { color: var(--barro); }
.qa-body { padding: 0 3rem 1.6rem 0; color: var(--tinta-suave); max-width: 62ch; }
.qa[open] .qa-body { animation: open .6s var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contacto */
.contact { background: var(--arena); }
.contact-grid { display: grid; gap: 3rem; }
.contact-data { margin-top: 2.4rem; display: grid; gap: 1.3rem; }
.contact-data dt { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--barro-hondo); }
.contact-data dd { color: var(--tinta); }
.form {
  background: var(--lino-claro); border-radius: 26px;
  padding: 1.8rem 1.3rem;
  display: grid; gap: 1.2rem; align-content: start;
  box-shadow: 0 30px 60px -40px rgba(43,38,32,.45);
  position: relative;
}
.field { display: grid; gap: .45rem; border: 0; }
.field label, .field legend { font-size: .92rem; font-weight: 500; }
.opt { font-weight: 400; color: var(--tinta-suave); margin-left: .3rem; }
.field input[type="text"], .field textarea {
  width: 100%; padding: .85rem 1rem; min-height: 50px;
  background: var(--lino); border: 1px solid transparent; border-radius: 14px;
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  resize: vertical;
}
.field input[type="text"]:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--arcilla); box-shadow: 0 0 0 4px rgba(192,120,86,.16); }
.field.has-error input { border-color: #A3402A; background: #FBEDE7; }
.choice legend { margin-bottom: .45rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: .5rem 1rem; border-radius: 999px; background: var(--lino); font-size: .94rem; transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
.pill input:checked + span { background: var(--oliva); color: var(--lino-claro); }
.pill input:focus-visible + span { outline: 2px solid var(--barro); outline-offset: 2px; }
.form-hint { font-size: .84rem; color: var(--tinta-suave); text-align: center; }
.form-done {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 16px;
  background: rgba(107,110,69,.13); color: var(--oliva);
  animation: rise .8s var(--ease-out) both;
}
.form-done[hidden] { display: none; }
.form-done svg { width: 28px; height: 28px; flex: none; }
.form-done-title { font-weight: 600; }

/* Crisis */
.crisis { background: var(--arcilla-suave); color: var(--barro-hondo); }
.crisis-in { display: flex; gap: .9rem; align-items: flex-start; padding-block: 1.4rem; }
.crisis-ico { width: 24px; height: 24px; flex: none; margin-top: .1rem; }
.crisis p { font-size: .98rem; }
.crisis a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Footer */
.footer { background: var(--oliva); color: #D6D1BC; padding-block: 3.5rem calc(3.5rem + 70px); font-size: .92rem; }
.footer-grid { display: grid; gap: 2.2rem; }
.footer-brand { display: flex; gap: .9rem; align-items: center; }
.footer .brand-mark { fill: #E9C9B4; width: 38px; height: 38px; }
.footer .brand-mark .half { fill: #E9C9B4; opacity: .5; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: #F1ECDD; line-height: 1.3; }
.footer-name span { font-family: var(--sans); font-size: .86rem; color: #BDB8A1; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-nav a, .footer-legal a { transition: color .3s; }
.footer-nav a:hover { color: #fff; }
.footer-legal { display: grid; gap: .5rem; color: #BDB8A1; }
.footer-legal a { color: #F1DCCB; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: .55rem;
  height: 56px; padding: 0 16px;
  border-radius: 999px; background: var(--oliva); color: var(--lino-claro);
  box-shadow: 0 16px 34px -14px rgba(43,38,32,.6);
  transition: transform .5s var(--ease-out), background-color .4s;
}
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
.wa-float:hover { transform: translateY(-3px); background: #2F321D; }
.wa-label { font-weight: 500; font-size: .95rem; display: none; }
.wa-float { width: 56px; padding: 0; justify-content: center; }

/* 7. Effects — image reveals (only images, only once) ---------- */
.js .reveal-img { clip-path: inset(12% 0 0 0 round 22px); transition: clip-path 1.6s var(--ease-out); }
.js .reveal-img img { transform: scale(1.06); opacity: .001; transition: transform 2s var(--ease-out), opacity 1.2s var(--ease-out); }
.js .reveal-img.is-revealed { clip-path: inset(0 0 0 0 round 0); }
.js .reveal-img.is-revealed img { transform: none; opacity: 1; }

/* 8. Responsive ------------------------------------------------ */
@media (min-width: 540px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .rb-long { display: inline; }
  .rb-short { display: none; }
}

@media (min-width: 720px) {
  :root { --gutter: 36px; --header-h: 78px; }
  .voices-grid { grid-template-columns: repeat(3, 1fr); }
  .voice:nth-child(2) { transform: translateY(2.2rem); }
  .breath { width: 136px; height: 136px; left: 28px; bottom: -44px; }
  .breath-word { bottom: 22px; font-size: .95rem; }
  .form { padding: 2.4rem 2.2rem; }
  .wa-label { display: inline; }
  .wa-float { width: auto; padding: 0 18px 0 16px; }
  .hero-caption { padding-left: 190px; }
}

@media (min-width: 960px) {
  .nav { display: flex; gap: 1.9rem; font-size: .95rem; }
  .nav a { position: relative; padding: .3rem 0; color: var(--tinta-suave); transition: color .3s; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--barro); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
  .nav a:hover, .nav a.is-active { color: var(--tinta); }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 7rem; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 3.2rem; align-items: end; }
  .hero-copy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
  .hero-title { grid-column: 1 / span 8; font-size: min(7rem, 6.8vw); }
  .hero-title .ln { white-space: nowrap; }
  .hero-side { grid-column: 9 / span 4; padding-bottom: .6rem; }
  .hero-lead { margin-top: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-media { grid-column: 1 / -1; grid-row: 2; }
  .hero-frame { aspect-ratio: 16 / 7.6; border-radius: 999px 999px 26px 26px / 44% 44% 26px 26px; }
  .breath { left: 56px; bottom: -48px; }
  .hero-caption { margin-top: 1.1rem; }

  .for-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .for-aside { grid-column: 1 / span 5; position: sticky; top: calc(var(--ribbon-h) + var(--header-h) + 2rem); }
  .topics { grid-column: 7 / span 6; }
  .topic { grid-template-columns: minmax(0, 11rem) 1fr; column-gap: 2rem; align-items: baseline; padding: 2rem 0; }

  .method-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
  .method-photo { grid-column: 1 / span 6; aspect-ratio: 4 / 5; }
  .method-copy { grid-column: 8 / span 5; }

  .about-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
  .about-copy { grid-column: 1 / span 6; grid-row: 1; }
  .about-photo { grid-column: 8 / span 5; grid-row: 1; }

  .first-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .first-head { grid-column: 1 / span 5; }
  .steps { grid-column: 7 / span 6; }

  .prices-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .prices-head { grid-column: 1 / span 4; }
  .price-list { grid-column: 6 / span 7; }

  .voices-head { grid-template-columns: 1fr auto; align-items: end; }
  .voice { padding: 2.4rem 2rem 1.8rem; }

  .faq-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .faq-grid .h2 { grid-column: 1 / span 4; }
  .faq-list { grid-column: 6 / span 7; }

  .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
  .contact-info { grid-column: 1 / span 5; }
  .form { grid-column: 7 / span 6; }

  .crisis-in { align-items: center; justify-content: center; }

  .footer { padding-block: 4rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; }
  .footer-nav { flex-direction: column; }
}


/* 9. Reduced motion — solo lo intrusivo ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath-ring { animation-duration: 14s; }
  .hero-frame img { animation: none; }
}
