/* ==========================================================================
   Terapias Conscientes — Lipiak Prado · V6 «Cuaderno de consulta»
   ========================================================================== */

@font-face {
  font-family: "Mrs Saint Delafield";
  src: url("/assets/fonts/mrs-saint-delafield-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --beige: #E9E2D8;
  --sage: #929F8E;
  --gold: #FFBD59;
  --ink: #232722;
  --white: #FFFFFF;

  --sage-hover: #9DAA99;
  --sage-deep: #5F6354;
  --gold-hover: #FFC874;
  --amber-ink: #A8660A;
  --gold-line: rgba(255, 189, 89, 0.7);
  --gold-soft: rgba(255, 189, 89, 0.22);
  --sage-light: #B4BEB0;
  --ink-soft: rgba(35, 39, 34, 0.92);
  --ink-line: rgba(35, 39, 34, 0.16);
  --light-1: #FFF1DA;
  --light-2: #FFD99A;
  --light-3: #FFBD59;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Mrs Saint Delafield", "Segoe Script", cursive;
  --rule: rgba(146, 159, 142, 0.55);
  --curve: clamp(40px, 6vw, 88px);


  --fs-display: clamp(2.35rem, 1.5rem + 3.6vw, 4.4rem);
  --fs-h2: clamp(2.2rem, 1.35rem + 3.1vw, 4.1rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.28rem);
  --fs-small: 0.875rem;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(84px, 10vw, 144px);
  --radius: 28px;
  --header-h: 80px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
/* the handwritten note: one feeling word per heading */
h1 em, h2 em, h3 em {
  font-family: var(--font-script); font-style: normal; font-weight: 400;
  font-size: 1.55em; line-height: 0.6; letter-spacing: 0;
  color: var(--sage-deep); padding-inline: 0.06em 0.12em;
}
p { margin: 0; text-wrap: pretty; }
p strong, li strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--gold); color: var(--ink); }
html { scrollbar-color: var(--sage) var(--beige); accent-color: var(--sage-deep); caret-color: var(--sage-deep); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink);
  padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.serif { font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--ink-soft); }
.lead { font-size: var(--fs-lead); line-height: 1.6; }
.prose p + p { margin-top: 1.05em; }

/* ---------- Brand ---------- */

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; text-decoration: none; white-space: nowrap;
  font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1;
}
.brand svg { width: 38px; height: 12px; flex: none; }
.brand strong { font-weight: 700; }
.brand em { font-weight: 400; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px 14px 28px;
  border: 0; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 240ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 240ms var(--ease-out); }
.btn:has(> svg) { min-height: 54px; padding: 6px 6px 6px 26px; gap: 16px; }
.btn > svg { width: 42px; height: 42px; padding: 12px; border-radius: 50%; background: var(--ink); color: var(--gold); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 0.92rem; }
.btn--ghost { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--gold-hover); box-shadow: 0 12px 26px -14px rgba(193, 128, 30, 0.55); }
  .btn:hover > svg { transform: translateX(3px); }
  .btn--ghost:hover { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--ink); }
}

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: var(--ink-line);
  transition: text-decoration-color 200ms ease;
}
.link svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: var(--ink); } }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233, 226, 216, 0);
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled { background: rgba(233, 226, 216, 0.95); box-shadow: 0 1px 0 var(--ink-line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(233, 226, 216, 0.8); backdrop-filter: blur(14px) saturate(1.2); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.main-nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 40px); }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: color 200ms ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.main-nav a[aria-current="page"], .main-nav a.is-active { color: var(--ink); font-weight: 600; }
.main-nav a[aria-current="page"]::after, .main-nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--ink); }
  .main-nav a:hover::after { transform: scaleX(1); }
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none; position: relative; width: 48px; height: 48px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px;
  background: var(--ink); transition: transform 320ms var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 12px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--beige);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 240ms var(--ease-out), visibility 0s linear 240ms;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 420ms var(--ease-drawer), visibility 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; border-bottom: 1px solid var(--ink-line);
  font-size: 2rem; font-weight: 300; letter-spacing: -0.04em; text-decoration: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.mobile-menu nav a span { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-line); }
.mobile-menu nav a[aria-current="page"] span, .mobile-menu nav a.is-active span { background: var(--gold); box-shadow: none; }
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition: opacity 360ms ease, transform 420ms var(--ease-out); }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 100ms; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 135ms; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 165ms; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 190ms; }
.mobile-menu-foot { margin-top: auto; opacity: 0; transition: opacity 300ms ease 180ms; }
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; }
.mobile-menu nav a:active { color: var(--sage-deep); }
.mobile-menu nav a:active span { transform: scale(1.35); }
.mobile-menu nav a span { transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.mobile-menu-foot .btn { width: 100%; min-height: 56px; justify-content: space-between; }
.spread-body .btn, .about-col .btn, .closing .btn, .hero .btn { justify-content: space-between; }

@media (max-width: 1100px) {
  .main-nav, .label-long { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none; }
  .label-short { display: none; }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .site-header .brand { gap: 10px; font-size: 1.02rem; }
  .site-header .brand svg { width: 30px; }
  .site-header .brand > span { display: grid; line-height: 1.04; }
  .header-actions { gap: 4px; }
}


/* ==========================================================================
   V6 · «Cuaderno de consulta» — printed page in Inter, handwritten notes in script
   ========================================================================== */

/* ---------- Atmospheric photo layers ---------- */
.atmos { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atmos img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.atmos::after { content: ""; position: absolute; inset: 0; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); isolation: isolate; }
.section-title { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -0.04em; line-height: 1.06; padding-bottom: 0.14em; }
.section--sage { background: var(--sage); }

/* fine organic grain, shared by sage fields */
.grain::before, .hero::before, .method::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px; opacity: 0.28; mix-blend-mode: multiply;
}

/* ---------- Hero: sage field, portrait, handwritten name ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  background: var(--sage);
  border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(24px, 3vw, 44px) clamp(88px, 9vw, 128px);
}
.hero-intro { display: contents; margin: 0; }
.hero-hello {
  grid-column: 6 / 11; grid-row: 1; align-self: end;
  margin-bottom: clamp(10px, 1.2vw, 18px);
  font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.7rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1;
}
.hero-photo {
  grid-column: 6 / 10; grid-row: 2 / 5; align-self: start;
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 70px -46px rgba(35, 39, 34, 0.7);
}
.hero-photo img { width: 100%; height: auto; }
.hero-name {
  grid-column: 6 / 13; grid-row: 5; justify-self: end; position: relative; z-index: 2;
  margin-top: -0.2em; padding-right: 0.08em;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(4.4rem, 2.2rem + 6.6vw, 9.4rem); line-height: 1; letter-spacing: 0;
  color: var(--ink); white-space: nowrap;
}
.hero-role {
  grid-column: 9 / 13; grid-row: 6; justify-self: end;
  margin-top: -0.4rem; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em;
}
.hero .hero-copy { grid-column: 1 / 6; grid-row: 2 / 7; align-self: start; padding-top: clamp(4px, 1vw, 16px); position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2rem, 1.15rem + 2.5vw, 3.35rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.12;
  max-width: 14ch; color: var(--ink);
}
.hero-title em { font-size: 1.32em; }
.hero-title strong { font-weight: 600; }
.hero-title em { color: var(--ink); }
.hero-sub { margin-top: clamp(20px, 2.2vw, 28px); max-width: 38ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.hero-sub strong { font-weight: 600; color: var(--ink); }
.hero .btn { margin-top: clamp(24px, 2.8vw, 34px); }
.hero-tags {
  grid-column: 10 / 13; grid-row: 2 / 5; align-self: center;
  display: grid; justify-items: start; gap: 12px;
  margin: 0 0 0 clamp(-72px, -4vw, -32px); padding: 0; list-style: none; position: relative; z-index: 2;
}
.hero-tags li {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 14px 26px -20px rgba(35, 39, 34, 0.55);
  font-size: 0.92rem; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.hero-tags li:nth-child(2) { margin-left: clamp(20px, 2.6vw, 40px); }
.hero-tags li:nth-child(3) { margin-left: clamp(40px, 5.2vw, 80px); }
.hero-tags svg { width: 18px; height: 18px; flex: none; color: var(--sage-deep); }
.hero :focus-visible { outline-color: var(--ink); }
.site-header:not(.is-scrolled) .brand svg circle:first-child { fill: var(--sage-deep); }

.js .hero .hero-copy > *, .js .hero-hello, .js .hero-tags li { animation: rise 760ms var(--ease-out) both; }
.js .hero .hero-copy > :nth-child(2) { animation-delay: 70ms; }
.js .hero .hero-copy > :nth-child(3) { animation-delay: 140ms; }
.js .hero-tags li:nth-child(1) { animation-delay: 260ms; }
.js .hero-tags li:nth-child(2) { animation-delay: 330ms; }
.js .hero-tags li:nth-child(3) { animation-delay: 400ms; }
/* signature moment: the name is written in, left to right */
.js .hero-name { animation: write 1500ms cubic-bezier(0.65, 0, 0.35, 1) 220ms both; }
.js .hero-photo { animation: fade 900ms ease 40ms both; }
.intro-seen .hero *, .intro-seen .hero-name { animation: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes write { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -2% -20% 0); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-bottom: 88px; }
  .hero-hello, .hero-photo, .hero-name, .hero-role, .hero .hero-copy, .hero-tags { grid-column: 1; grid-row: auto; }
  .hero-hello { order: 1; margin-bottom: 14px; }
  .hero-photo { order: 2; width: min(70%, calc(36svh * 1199 / 1312)); }
  .hero-name { order: 3; justify-self: end; margin-top: -0.16em; font-size: clamp(3.9rem, 2rem + 9vw, 6rem); }
  .hero-role { order: 4; margin-top: -0.2rem; }
  .hero .hero-copy { display: contents; }
  .hero-title { order: 5; margin-top: 26px; }
  .hero .btn { order: 6; justify-self: start; margin-top: 20px; }
  .hero-sub { order: 7; margin-top: 28px; }
  .hero-tags { order: 8; margin: 30px 0 0; }
  .hero-title { max-width: 16ch; line-height: 1.2; }
}

/* ---------- Comprender lo que nos sucede: ruled rows ---------- */
.understand-lead { margin-top: clamp(22px, 2.6vw, 34px); font-size: var(--fs-lead); color: var(--ink-soft); }
.ruled-wrap { position: relative; margin-top: 18px; }
.ruled { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.ruled li {
  padding: clamp(16px, 1.9vw, 24px) 4px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.15rem, 0.95rem + 0.85vw, 1.7rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.32;
}
.ruled li:nth-child(2) { padding-left: 36%; }
.ruled li:nth-child(3) { padding-left: 12%; }
.ruled li:nth-child(4) { padding-left: 46%; }
.ruled-photo {
  position: absolute; right: 4%; top: -30px; width: clamp(92px, 9vw, 136px); margin: 0;
  border-radius: 16px; overflow: hidden; transform: rotate(4deg);
  box-shadow: 0 22px 40px -26px rgba(35, 39, 34, 0.6);
}
.ruled-photo img { width: 100%; height: auto; }
.understand-split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px);
  align-items: end; margin-top: clamp(56px, 7vw, 96px);
}
.understand-photo { grid-column: 1 / 8; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 34px 60px -44px rgba(35, 39, 34, 0.55); }
.understand-photo img { width: 100%; height: auto; }
.understand-copy { grid-column: 9 / 13; padding-bottom: 8px; }
.understand-key { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.3; letter-spacing: -0.02em; }
.understand-key strong { font-weight: 500; }
.understand-copy p:not(.understand-key) { color: var(--ink-soft); }
@media (max-width: 820px) {
  .ruled li:nth-child(n) { padding-left: 0; }
  .ruled li:nth-child(2) { padding-left: 10%; }
  .ruled li:nth-child(3) { padding-left: 4%; }
  .ruled li:nth-child(4) { padding-left: 14%; }
  .ruled-photo { top: -96px; right: 0; width: 84px; }
  .understand-split { grid-template-columns: 1fr; row-gap: 32px; }
  .understand-photo, .understand-copy { grid-column: 1; }
}

/* ---------- Services: two spreads ---------- */
.services-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); align-items: end;
}
.services-head .section-title { grid-column: 1 / 8; }
.services-lead { grid-column: 8 / 13; font-size: var(--fs-lead); color: var(--ink-soft); padding-bottom: 6px; }
.spread {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px);
  align-items: center; margin-top: clamp(56px, 7vw, 104px);
}
.spread-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 34px 60px -44px rgba(35, 39, 34, 0.55); }
.spread-photo img { width: 100%; height: auto; }
.spread--individual .spread-photo { grid-column: 1 / 6; }
.spread--individual .spread-body { grid-column: 7 / 13; }
.spread--pareja .spread-photo { grid-column: 9 / 13; grid-row: 1; }
.spread--pareja .spread-body { grid-column: 2 / 8; grid-row: 1; }
.spread-body h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; }
.spread-text { margin-top: 22px; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.6; }
.work-title { margin-top: 30px; font-weight: 600; font-size: 0.98rem; }
.checks { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; max-width: 48ch; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.55; }
.checks svg { width: 24px; height: 24px; }
.checks svg circle { fill: var(--white); }
.checks svg path { stroke: var(--sage-deep); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.badges li {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 0.86rem; font-weight: 500; line-height: 1.2; color: var(--ink); white-space: nowrap;
}
.badges svg { width: 15px; height: 15px; flex: none; color: var(--sage-deep); }
.spread-body .btn { margin-top: 30px; }
@media (max-width: 820px) {
  .services-head, .spread { grid-template-columns: 1fr; row-gap: 28px; }
  .services-head .section-title, .services-lead { grid-column: 1; }
  .spread .spread-photo, .spread .spread-body { grid-column: 1; grid-row: auto; }
  .spread--individual .spread-photo { width: 88%; }
  .spread--pareja .spread-photo { width: 70%; justify-self: end; }
}

/* ---------- Mi manera de trabajar: sage over the sky ---------- */
.method {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(120px, 13vw, 190px);
  border-radius: 50% / var(--curve);
}
.method-bg { position: absolute; inset: 0; z-index: -2; }
.method-bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.method-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(146, 159, 142, 0.86) 0%, rgba(146, 159, 142, 0.88) 42%, rgba(146, 159, 142, 0.96) 56%, rgba(146, 159, 142, 0.97) 100%); }
@media (max-width: 820px) { .method-bg::after { background: linear-gradient(180deg, rgba(146, 159, 142, 0.86) 0%, rgba(146, 159, 142, 0.95) 45%, rgba(146, 159, 142, 0.96) 100%); } }
.method-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.method .section-title { grid-column: 1 / 9; }
.method .section-title em { color: var(--ink); }
.method-steps { grid-column: 1 / 13; display: grid; gap: clamp(0px, 0.5vw, 8px); margin: clamp(30px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.method-steps li { display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 24px); }
.method-steps li:nth-child(2) { padding-left: 14%; }
.method-steps li:nth-child(3) { padding-left: 28%; }
.method-n { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); font-weight: 300; letter-spacing: 0.02em; }
.method-word { font-family: var(--font-script); font-size: clamp(3.6rem, 1.8rem + 6.2vw, 8rem); line-height: 1.05; color: var(--ink); }
.method-copy { grid-column: 7 / 13; margin-top: clamp(28px, 4vw, 56px); }
.method-copy p { color: var(--ink); }
@media (max-width: 820px) {
  .method { border-radius: 50% / 40px; }
  .method-grid { grid-template-columns: 1fr; }
  .method .section-title, .method-steps, .method-copy { grid-column: 1; }
  .method-steps li:nth-child(2) { padding-left: 10%; }
  .method-steps li:nth-child(3) { padding-left: 20%; }
}

/* ---------- Sobre Lipiak: portrait between two columns ---------- */
.about-title { text-align: center; }
.about-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px);
  margin-top: clamp(40px, 5vw, 72px); align-items: start;
}
.about-col--a { grid-column: 1 / 5; padding-top: 6px; }
.about-photo { grid-column: 5 / 9; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 34px 60px -44px rgba(35, 39, 34, 0.55); }
.about-photo img { width: 100%; height: auto; }
.about-col--b { grid-column: 9 / 13; align-self: end; }
.about-col p { color: var(--ink-soft); }
.about-col--a p:first-child { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.about-col .btn { margin-top: 26px; }
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; row-gap: 30px; }
  .about-col--a, .about-photo, .about-col--b { grid-column: 1; }
  .about-photo { width: 78%; max-width: 380px; justify-self: center; }
}

/* ---------- Reseñas: notes laid on the desk ---------- */
.reviews-section .container { position: relative; z-index: 2; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.rating { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 13px; border-radius: 999px; background: var(--white); font-size: var(--fs-small); font-weight: 500; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; margin: 0; padding: 10px 0 24px; list-style: none; }
.reviews li { display: flex; }
.reviews li > .review { flex: 1; }
.review {
  position: relative; display: flex; flex-direction: column; margin: 0;
  padding: clamp(26px, 2.6vw, 36px);
  border-radius: var(--radius); background: var(--white);
  box-shadow: 0 30px 60px -40px rgba(35, 39, 34, 0.45);
  transition: transform 280ms var(--ease-out);
}
.reviews li:nth-child(1) .review { background: var(--sage); transform: rotate(-1.6deg); }
.reviews li:nth-child(2) .review { transform: rotate(1.2deg) translateY(22px); }
.reviews li:nth-child(3) .review { transform: rotate(-0.6deg) translateY(-6px); }
@media (hover: hover) and (pointer: fine) { .reviews li .review:hover { transform: none; } }
.review::before {
  content: "\201C"; display: block; height: 0.5em;
  font-family: var(--font-script); font-size: 7.5rem; line-height: 1; color: var(--amber-ink); margin: -6px 0 6px -4px;
}
.reviews li:nth-child(1) .review::before { color: var(--ink); }
.review .stars { margin-top: 10px; }
.reviews li:nth-child(1) .stars { color: var(--ink); }
.review blockquote { margin: 14px 0 0; }
.review blockquote p { font-size: 1rem; line-height: 1.65; }
.review figcaption { margin-top: auto; padding-top: 22px; font-size: var(--fs-small); color: var(--ink-soft); }
.review figcaption b { color: var(--ink); font-weight: 600; }
.reviews-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(24px, 3vw, 40px); }
.reviews-dots { display: none; }
.reviews-dots button { width: 44px; height: 44px; display: grid; place-items: center; margin: -16px -14px; padding: 0; border: 0; background: none; cursor: pointer; }
.reviews-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(35, 39, 34, 0.3); transition: background-color 240ms ease, transform 300ms var(--ease-out); }
.reviews-dots button[aria-current="true"]::before { background: var(--ink); transform: scale(1.25); }
@media (max-width: 860px) {
  .reviews {
    display: flex; gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 14px var(--gutter) 28px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews li { flex: 0 0 min(86%, 400px); scroll-snap-align: start; }
  .reviews li:nth-child(n) .review { transform: none; }
  .reviews-dots { display: flex; gap: 8px; }
}

/* ---------- Cierre ---------- */
.closing-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px);
  padding: clamp(44px, 6vw, 88px) clamp(24px, 5vw, 72px) 0;
  border-radius: calc(var(--radius) + 12px);
  box-shadow: 0 40px 80px -52px rgba(35, 39, 34, 0.5);
}
.closing-panel > .atmos::after { background: rgba(241, 237, 229, 0.42); }
.closing-copy { grid-column: 1 / 8; padding-bottom: clamp(44px, 6vw, 88px); position: relative; z-index: 1; }
.closing h2 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; max-width: 13ch; }
.closing .prose { margin-top: 28px; max-width: 50ch; }
.closing .prose p:first-child { font-size: var(--fs-lead); }
.closing .btn { margin-top: 32px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 26px; font-size: 0.95rem; }
.contact-line a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); }
.contact-line svg { width: 18px; height: 18px; color: var(--sage-deep); }
@media (hover: hover) and (pointer: fine) { .contact-line a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.3em; } }
.closing-portrait {
  grid-column: 8 / 13; align-self: end; justify-self: end; position: relative;
  width: calc(100% + clamp(24px, 5vw, 72px)); max-width: 520px;
  margin: 0 calc(clamp(24px, 5vw, 72px) * -1) 0 0;
}
.closing-portrait img { width: 100%; height: auto; }
.closing-portrait figcaption {
  position: absolute; left: 0; bottom: clamp(24px, 3vw, 40px);
  display: grid; gap: 2px; padding: 11px 20px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.82); box-shadow: 0 18px 34px -24px rgba(35, 39, 34, 0.5);
}
.closing-portrait figcaption b { font-weight: 600; }
.closing-portrait figcaption span { font-size: 0.9rem; color: var(--sage-deep); }
@media (max-width: 860px) {
  .closing-panel { grid-template-columns: 1fr; }
  .closing-copy { grid-column: 1; padding-bottom: 12px; }
  .closing-portrait { grid-column: 1; width: 86%; justify-self: end; margin-right: calc(clamp(24px, 5vw, 72px) * -1); }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--ink); color: var(--beige);
  padding-block: clamp(48px, 6vw, 72px) 112px;
  border-top: 2px solid var(--gold);
}
.site-footer :focus-visible { outline-color: var(--gold); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 189, 89, 0.35); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-nav a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--beige); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: text-decoration-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover, .footer-bottom a:hover { color: var(--white); text-decoration-color: var(--gold); } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-top: 16px; font-size: var(--fs-small); color: rgba(233, 226, 216, 0.8); }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer .brand { color: var(--white); }

/* ---------- Inner pages ---------- */

.page-hero { position: relative; isolation: isolate; padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 80px); overflow: clip; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: clamp(20px, 3vw, 40px); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
.back-link:active svg { transform: translateX(-3px); }
.link:active, .contact-line a:active, .footer-nav a:active { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .back-link:hover svg { transform: translateX(-3px); } }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); }
.page-hero .name-block { margin-top: 28px; }
.page-hero .name-block b, .page-hero .name-block span { display: block; }
.page-hero .name-block span { margin-top: 4px; }
.page-hero .portrait-soft {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 34px 60px -38px rgba(35, 39, 34, 0.55);
}
.page-hero.section--sage { padding-bottom: clamp(56px, 7vw, 96px); margin-bottom: clamp(40px, 6vw, 90px); }
.page-hero.section--sage .atmos img { object-position: 50% 40%; }
.page-hero.section--sage .atmos::after { background: rgba(146, 159, 142, 0.6); }
.page-hero .portrait-soft img { width: 100%; height: auto; }
@media (max-width: 820px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero .portrait-soft { width: 100%; max-width: 380px; margin-inline: auto; }
}

/* ---------- Sobre mí · a single, close reading column ---------- */
.letter { padding-block: clamp(8px, 2vw, 24px) clamp(40px, 5vw, 64px); }
.letter-body { max-width: 680px; margin-inline: auto; }
.letter-body > p + p { margin-top: 1.1em; }
.letter-lead { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.5; letter-spacing: -0.015em; }
.letter-lead + p { margin-top: 1.3em; }
.letter-body h2 { margin: clamp(48px, 6vw, 72px) 0 18px; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); }
.letter-body h2:first-child { margin-top: 0; }
.letter-list { display: grid; gap: 18px; margin: 28px 0 30px; padding: 26px 0; list-style: none; border-block: 1px solid var(--gold-line); }
.letter-list li { display: grid; gap: 3px; padding-left: 26px; position: relative; }
.letter-list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(146, 159, 142, 0.18); }
.letter-list b { font-weight: 700; color: var(--ink); }
.letter-list span { color: var(--ink-soft); }

/* quote band: the consulting room, veiled into beige, as a quiet backdrop */
.letter-quote { margin-block: clamp(8px, 2vw, 24px) clamp(40px, 5vw, 64px); }
.letter-quote__box {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 9vw, 120px) clamp(24px, 7vw, 110px);
  border-radius: calc(var(--radius) + 8px);
  text-align: center;
}
.letter-quote__box .atmos img { object-position: 50% 55%; filter: saturate(0.8); }
.letter-quote__box .atmos::after { background: rgba(233, 226, 216, 0.8); }
.letter-quote blockquote { margin: 0 auto; max-width: 36ch; }
.letter-quote blockquote p { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.55rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.22; color: var(--ink); }
.letter-quote blockquote em { font-style: italic; font-weight: 700; color: var(--amber-ink); }

/* ---------- Formas de trabajar conmigo ---------- */
.plans { padding-bottom: clamp(24px, 3vw, 40px); }
.plans-title { text-align: center; }
.plans-title::after { margin-inline: auto; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0; list-style: none; }
.plan {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px) clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(146, 159, 142, 0.35), 0 26px 50px -40px rgba(35, 39, 34, 0.45);
}
.plan-icon { width: 72px; height: 72px; margin-bottom: 18px; flex: none; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .plan:hover .plan-icon { transform: translateY(-3px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .plan-icon { transition: none; } }
.plan h3 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem); }
.plan h3 + p { margin-top: 14px; max-width: 30ch; color: var(--ink-soft); }
.plan-meta { margin-top: auto; padding-top: 26px; font-style: italic; font-weight: 500; color: var(--sage-deep); }
.plan-meta::before { content: ""; display: block; width: 28px; height: 1.5px; margin: 0 auto 14px; border-radius: 2px; background: var(--gold); }
.plan-btn { width: 100%; margin-top: 22px; }
.plans-note { max-width: 60ch; margin: clamp(22px, 2.6vw, 32px) auto 0; text-align: center; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { padding-bottom: clamp(32px, 4vw, 56px); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 24px); display: grid; justify-items: start; gap: 18px; }
.faq-head p { max-width: 36ch; font-size: var(--fs-lead); line-height: 1.6; }
.faq-list { border-top: 1px solid var(--gold-line); }
.faq-item { border-bottom: 1px solid var(--gold-line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 4px; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; width: 20px; height: 20px; color: var(--sage-deep); transition: transform 300ms var(--ease-out); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover span { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 2px; } }
.faq-answer { padding: 0 44px 22px 4px; max-width: 62ch; color: var(--ink-soft); }
.faq-answer p + p { margin-top: 0.75em; }
.faq-item[open] .faq-answer { animation: faqIn 240ms var(--ease-out) both; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content { block-size: 0; overflow: clip; transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; transition-duration: 300ms; }
}
.faq-item summary { transition: color 160ms ease; }
.faq-item summary:active .faq-icon { transform: scale(0.88); }
.faq-item[open] summary:active .faq-icon { transform: rotate(45deg) scale(0.88); }
.faq-icon { transition: transform 240ms var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
.faq-note { margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: rgba(146, 159, 142, 0.16); font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-answer { padding-right: 8px; }
}

.legal-wrap { padding-block: clamp(16px, 3vw, 40px) var(--section); }
.legal-page { max-width: 780px; margin-inline: auto; padding: clamp(28px, 6vw, 72px); background: var(--white); border-radius: calc(var(--radius) + 4px); }
.legal-page h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem); }
.legal-page .updated { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.legal-page h2 { margin-top: 44px; font-size: 1.3rem; letter-spacing: -0.02em; }
.legal-page p { margin-top: 12px; max-width: 64ch; }
.legal-page a:not(.back-link) { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--ink-line); overflow-wrap: anywhere; }
.legal-page .back-link { margin-top: 40px; margin-bottom: 0; }

/* ---------- Consultation guide (dialog) ---------- */

.guide {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0;
  border-radius: calc(var(--radius) + 4px);
  background: var(--beige); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(35, 39, 34, 0.45);
  overflow: auto;
  opacity: 0; transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete;
}
.guide[open] { opacity: 1; transform: none; transition: opacity 260ms ease, transform 320ms var(--ease-out), overlay 320ms allow-discrete, display 320ms allow-discrete; }
@starting-style { .guide[open] { opacity: 0; transform: translateY(12px) scale(0.98); } }
.guide::backdrop { background: rgba(35, 39, 34, 0); transition: background-color 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
.guide[open]::backdrop { background: rgba(35, 39, 34, 0.42); }
@starting-style { .guide[open]::backdrop { background: rgba(35, 39, 34, 0); } }
.guide-inner { padding: clamp(24px, 4vw, 40px); }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.guide-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.guide-close { flex: none; width: 44px; height: 44px; margin: -6px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.guide-close:active { transform: scale(0.94); }
.guide-close svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .guide-close:hover { background: rgba(35, 39, 34, 0.08); } }
.guide-intro { margin-top: 10px; color: var(--ink-soft); font-size: 0.98rem; }
.guide-progress { display: flex; gap: 8px; margin: 24px 0 8px; }
.guide-progress i { width: 12px; height: 12px; border-radius: 50%; background: rgba(35, 39, 34, 0.12); transition: background-color 400ms ease; }
.guide-progress i.is-lit:nth-child(1) { background: var(--light-1); box-shadow: inset 0 0 0 1px rgba(35, 39, 34, .3); }
.guide-progress i.is-lit:nth-child(2) { background: var(--light-2); }
.guide-progress i.is-lit:nth-child(3) { background: var(--light-3); }
.guide-step { display: none; }
.guide-step.is-active { display: block; animation: stepIn 280ms var(--ease-out); }
.guide-step.is-active.from-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-10px); } }
.guide-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.guide-step legend, .guide-step .step-title { padding: 0; margin: 16px 0 14px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.guide-step legend.sublegend { margin: 22px 0 10px; font-size: 0.95rem; }
.sublegend span, .field label span { font-weight: 400; color: var(--ink-soft); }
.options { display: grid; gap: 10px; }
.options--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 18px;
  border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px var(--ink-line);
  text-align: left; font-weight: 500; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.option:active { transform: scale(0.985); }
.option small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.option::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(35, 39, 34, 0.35); transition: background-color 200ms ease, box-shadow 200ms ease; }
.option[aria-pressed="true"] { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.option[aria-pressed="true"]::after { background: var(--gold); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .option:hover { background: var(--white); } }
.options--compact .option, .segmented .option { justify-content: center; text-align: center; min-height: 48px; padding: 10px 8px; gap: 8px; }
.options--compact .option::after, .segmented .option::after { display: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented .option svg { width: 18px; height: 18px; flex: none; }
.field { display: grid; gap: 8px; margin-top: 16px; }
.field label, .field .label { font-size: 0.95rem; font-weight: 600; }
.field .hint { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.5; margin-top: -2px; }
.input {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 0; border-radius: 14px; background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(35, 39, 34, 0.18);
  color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; caret-color: var(--ink);
  transition: box-shadow 200ms ease; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(35, 39, 34, 0.55); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(255, 189, 89, 0.45); }
textarea.input { min-height: 112px; resize: vertical; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #A2402B; }
.field-error { font-size: 0.875rem; color: #8E3524; font-weight: 500; }
.field-error:empty { display: none; }
.counter { justify-self: end; font-size: 0.8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.guide-actions { display: grid; margin-top: 24px; }
.guide-actions .btn { width: 100%; min-height: 56px; }
.guide-nav { display: flex; justify-content: space-between; margin-top: 12px; }
.guide-note { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); }
.done-lights { display: flex; gap: 10px; margin: 18px 0 22px; }
.done-lights i { width: 22px; height: 22px; border-radius: 50%; }
.done-lights i:nth-child(1) { background: var(--light-1); box-shadow: inset 0 0 0 1px rgba(35, 39, 34, 0.18); }
.done-lights i:nth-child(2) { background: var(--light-2); }
.done-lights i:nth-child(3) { background: var(--light-3); }
.guide-step.is-active .done-lights i { animation: light 600ms var(--ease-out) 80ms both; }
.guide-step.is-active .done-lights i:nth-child(2) { animation-delay: 240ms; }
.guide-step.is-active .done-lights i:nth-child(3) { animation-delay: 400ms; }
@keyframes light { from { opacity: 0; transform: scale(0.6); } }
.guide-done h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.guide-done p { margin-top: 12px; color: var(--ink-soft); }
.guide-done .btn { margin-top: 24px; width: 100%; }
@media (max-width: 600px) {
  .guide {
    width: 100%; max-width: none; max-height: 92dvh;
    margin: auto 0 0; border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 240ms var(--ease-out), opacity 240ms ease, overlay 240ms allow-discrete, display 240ms allow-discrete;
  }
  .guide[open] { transform: none; transition: transform 440ms var(--ease-drawer), opacity 200ms ease, overlay 440ms allow-discrete, display 440ms allow-discrete; }
  @starting-style { .guide[open] { transform: translateY(100%); } }
  .guide-inner::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 16px; border-radius: 4px; background: rgba(35, 39, 34, 0.2); }
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease-out), transform 560ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Page transitions ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms ease both; }
::view-transition-new(root) { animation: vt-in 280ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}



/* Ideas (próximamente) */
.coming { min-height: 52vh; display: grid; align-content: center; padding-block: clamp(40px, 8vw, 120px); }
.coming h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); }
.coming p { margin-top: 22px; max-width: 46ch; font-size: var(--fs-lead); color: var(--ink-soft); }
.coming .btn { margin-top: 32px; justify-self: start; }
.rating { padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px var(--gold-line); }

/* ---------- Floating WhatsApp ---------- */
.floats { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.floats > * { pointer-events: auto; }
body.is-locked .floats { visibility: hidden; }
.float-btn {
  display: grid; place-items: center;
  width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(35, 39, 34, 0.55);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.float-btn:active { transform: scale(0.94); }
.float-wa { background: #128C4A; color: var(--white); }
.float-wa svg { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) { .float-btn:hover { transform: translateY(-2px); } }




/* ==========================================================================
   V6 overrides for shared components (plans, FAQ, inner pages, dialog)
   ========================================================================== */

/* Formas de trabajar: paper sheets, the middle one in sage */
.plans .plans-title { text-align: center; }
.plans-grid { align-items: stretch; padding-block: 8px 16px; }
.plan { background: var(--white); box-shadow: 0 30px 60px -42px rgba(35, 39, 34, 0.45); transition: transform 280ms var(--ease-out); }
.plans-grid .plan:nth-child(1) { transform: rotate(-1.2deg); }
.plans-grid .plan:nth-child(2) { background: var(--sage); transform: translateY(-14px) rotate(0.8deg); }
.plans-grid .plan:nth-child(3) { transform: rotate(-0.5deg) translateY(6px); }
@media (hover: hover) and (pointer: fine) { .plans-grid .plan:hover { transform: none; } }
.plan h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: -0.035em; }
.plan h3 + p { color: var(--ink-soft); }
.plans-grid .plan:nth-child(2) h3 + p, .plans-grid .plan:nth-child(2) .plan-meta { color: var(--ink); }
.plans-grid .plan:nth-child(2) h3 em { color: var(--ink); }
.plan-meta { font-style: normal; font-weight: 500; color: var(--sage-deep); }
.plan-meta::before { background: var(--gold); }
.plans-grid .plan:nth-child(2) .plan-meta::before { background: var(--ink); }
.plan-btn { justify-content: space-between; }
.plans-grid .plan:nth-child(2) .plan-btn { background: var(--gold); box-shadow: none; }
@media (max-width: 860px) { .plans-grid .plan:nth-child(n) { transform: none; } }

/* FAQ */
.faq-list, .faq-item { border-color: var(--rule); }
.faq-item summary { font-weight: 500; }
.faq-note { background: rgba(146, 159, 142, 0.22); }

/* Sobre mí: sage hero with the curve */
.page-hero.section--sage {
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(12px, 2vw, 24px));
  border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve);
}
.page-hero h1 { font-weight: 300; letter-spacing: -0.04em; }
.page-hero h1 em { color: var(--ink); }
.page-hero .name-block b { font-weight: 600; }
.letter-body h2 { font-weight: 300; letter-spacing: -0.04em; }
.letter-list { border-color: var(--rule); }
.letter-quote blockquote p { font-weight: 300; }
.letter-quote blockquote em { font-family: var(--font-script); font-style: normal; font-size: 1.5em; line-height: 0.6; color: var(--sage-deep); font-weight: 400; padding-right: 0.18em; }

/* Legal, ideas, 404 */
.legal-page h1, .coming h1 { font-weight: 300; letter-spacing: -0.04em; }
.legal-page h2 { font-weight: 600; letter-spacing: -0.02em; }

/* Booking guide keeps a readable, steady voice */
.guide h2, .guide h3 { font-weight: 600; letter-spacing: -0.03em; }
.guide h2 em, .guide h3 em { font-family: inherit; font-size: inherit; line-height: inherit; }

.plans-grid .plan:nth-child(2) .plan-icon circle:not(:last-of-type) { fill: var(--ink); }
.plans-grid .plan:nth-child(2) .plan-icon path { stroke: var(--ink); }


/* ---------- V6.1 · Bienvenida ---------- */
.welcome { padding-bottom: clamp(24px, 4vw, 56px); }
.welcome-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); align-items: start; }
.welcome-title { grid-column: 1 / 7; max-width: 12ch; }
.welcome-copy { grid-column: 7 / 13; padding-top: clamp(4px, 1.2vw, 18px); }
.welcome-lead { font-size: var(--fs-lead); line-height: 1.55; }
.welcome-copy p:not(.welcome-lead) { color: var(--ink-soft); }
.welcome-note { margin-top: 1.4em !important; padding-top: 1.1em; border-top: 1px solid var(--rule); font-size: 0.95rem; }
@media (max-width: 820px) {
  .welcome-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .welcome-title, .welcome-copy { grid-column: 1; }
}

/* ---------- V6.1 · Cinta: photo inside a curve, words along it ---------- */
.ribbon { position: relative; margin-block: clamp(8px, 2vw, 24px); }
.ribbon-svg { display: block; width: 100%; height: auto; }
.ribbon-text { font-family: var(--font-sans); font-size: 19px; font-weight: 500; letter-spacing: 0.32em; fill: var(--sage-deep); }
@media (max-width: 700px) { .ribbon-svg { height: 400px; margin-bottom: -120px; } }

/* ---------- V6.1 · Enfoques (inside Mi manera de trabajar) ---------- */
.approaches { grid-column: 1 / 13; margin-top: clamp(44px, 5vw, 72px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid rgba(35, 39, 34, 0.25); }
.approaches-title { font-weight: 600; }
.approaches ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); margin: 20px 0 0; padding: 0; list-style: none; }
.approaches li { display: grid; gap: 6px; align-content: start; }
.approaches b { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.approaches span { font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
@media (max-width: 980px) { .approaches ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .approaches ul { grid-template-columns: 1fr; } }

/* ---------- V6.1 · Momento de marca ---------- */
.mindful {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--sage-deep); color: var(--beige);
  padding-block: clamp(96px, 11vw, 160px);
  border-radius: 50% / var(--curve);
  text-align: center;
}
.mindful::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .88 0 0 0 0 .84 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px; opacity: 0.12;
}
.mindful-inner { display: grid; justify-items: center; }
.mindful-brand { font-size: clamp(2.4rem, 1.4rem + 4vw, 5.2rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.mindful-leaf { width: 48px; height: 56px; margin-top: clamp(26px, 3vw, 40px); color: var(--gold); }
.mindful-title { margin-top: clamp(24px, 3vw, 36px); max-width: 22ch; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.25; color: var(--beige); }
.mindful-title em { color: var(--gold); }
.mindful :focus-visible { outline-color: var(--beige); }
@media (max-width: 820px) { .mindful { border-radius: 50% / 40px; } }
.ribbon-dot { fill: var(--gold); }
