/* ==========================================================
   Yaneli García Ríos · Psicóloga
   Tipografía inspirada en "La erótica del buentrato":
   grotesca apretada + serif clásica + etiquetas (EN PARÉNTESIS)
   ========================================================== */

:root {
  --bg: #f1dfdb;
  --bg-soft: #f7ebe8;
  --ink: #161414;
  --ink-soft: #4a3f3d;
  --line: rgba(22, 20, 20, 0.28);
  --accent: #8a3b2e;
  --dark: #1c1513;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --display: "Instrument Serif", "EB Garamond", serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.15vw + 12px, 21px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipos ---------- */
.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.label::before { content: "("; }
.label::after { content: ")"; }

h1, h2, h3, .h-sans {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
}
h1 { font-size: clamp(48px, 9.5vw, 136px); }
h2 { font-size: clamp(40px, 6.5vw, 92px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.05; }
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.lead { font-size: clamp(20px, 1.6vw + 12px, 27px); line-height: 1.3; max-width: 34ch; }
.serif-it { font-style: italic; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-family: var(--sans); font-weight: 600; letter-spacing: -0.04em; font-size: 20px; text-decoration: none; line-height: 1; }
.brand small { display: block; font-weight: 500; font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; margin-top: 4px; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
/* Selector de idioma: siempre visible, también en móvil */
.lang { display: inline-flex; flex: none; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.lang a, .lang span { padding: 6px 12px; text-decoration: none; }
.lang a:hover { background: rgba(22, 20, 20, .08); }
.lang span[aria-current] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; background: none; border: 0; font: 500 15px var(--sans); color: var(--ink); cursor: pointer; padding: 8px 0; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease;
    font-size: 28px; letter-spacing: -0.03em;
  }
  .nav-links.open { transform: none; }
  .nav-links > a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 18px; font-size: 16px; }
  .lang { margin-left: auto; }
}
@media (max-width: 420px) { .brand small { display: none; } .lang a, .lang span { padding: 6px 9px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Secciones ---------- */
section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: clamp(36px, 5vw, 72px); gap: 16px; }
.sec-head .label:last-child { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: 0; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 4vw, 48px); }
.hero h1 { max-width: 11ch; }
.hero h1 .display { font-size: 1.08em; letter-spacing: -0.03em; }
.hero-sub { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; margin-top: clamp(32px, 5vw, 64px); }
.hero-sub .lead { margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--ink); }
.facts > div { padding: 16px 16px 20px 0; border-right: 1px solid var(--line); }
.facts > div + div { padding-left: 16px; }
.facts > div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--sans); font-weight: 500; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.045em; line-height: 1; margin-top: 10px; }
.facts span.small { display: block; font-size: 16px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 860px) {
  .hero-sub { grid-template-columns: 1fr; }
  .hero-ctas { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Bloques "foto" con grano (como las diapositivas oscuras) ---------- */
.photo {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 70% at 18% 85%, rgba(70, 30, 20, .85), transparent 70%),
    radial-gradient(55% 60% at 85% 20%, rgba(244, 184, 196, .9), transparent 70%),
    radial-gradient(70% 80% at 55% 55%, rgba(205, 126, 120, .9), transparent 75%),
    linear-gradient(160deg, #c99a92, #5b2f27);
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .35; mix-blend-mode: overlay;
}
.photo.warm {
  background:
    radial-gradient(50% 60% at 30% 40%, rgba(246, 196, 150, .95), transparent 70%),
    radial-gradient(60% 70% at 80% 80%, rgba(90, 40, 20, .95), transparent 70%),
    linear-gradient(120deg, #d99a6c, #3a1d12);
}
.photo.dusk {
  background:
    radial-gradient(50% 60% at 70% 30%, rgba(246, 196, 208, .95), transparent 70%),
    radial-gradient(60% 70% at 10% 90%, rgba(150, 85, 90, .9), transparent 70%),
    linear-gradient(200deg, #e2aab4, #a86a6e);
}
.statement { padding: 0; }
.statement .photo { min-height: min(92vh, 820px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(36px, 6vw, 72px); }
.statement .photo > * { position: relative; z-index: 1; }
.statement .top { display: flex; justify-content: space-between; }
.statement h2 { max-width: 14ch; text-shadow: 0 2px 30px rgba(0,0,0,.15); }
.statement p { font-size: clamp(19px, 1.5vw + 10px, 26px); max-width: 38ch; margin-top: 18px; }

/* ---------- Listas con filas (como "Qué vamos a trabajar") ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows li .label { padding-top: 4px; }
.rows li strong { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; display: block; }
.rows li span.desc { display: block; color: var(--ink-soft); margin-top: 6px; font-size: 0.92em; }
.rows.plain li { grid-template-columns: 1fr; }
.rows.two-col li { grid-template-columns: 200px 1fr; }
@media (max-width: 600px) { .rows.two-col li { grid-template-columns: 1fr; gap: 4px; } .rows li { grid-template-columns: 48px 1fr; } }

.topics { columns: 2; column-gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--ink); }
.topics li { break-inside: avoid; }
@media (max-width: 700px) { .topics { columns: 1; } }

/* ---------- Buentrato ---------- */
.buentrato .big { font-size: clamp(72px, 15vw, 220px); line-height: .85; margin: 0 0 .1em -0.04em; }
.buentrato .sub { font-family: var(--sans); font-weight: 500; letter-spacing: -0.035em; font-size: clamp(26px, 3vw, 42px); line-height: 1.05; margin-bottom: 40px; }
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.approach-grid > div { padding: 24px 24px 32px 0; border-bottom: 1px solid var(--line); }
.approach-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.approach-grid > div:nth-child(even) { padding-left: 24px; }
.approach-grid h3 { margin: 10px 0 12px; }
.approach-grid p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid > div:nth-child(odd) { border-right: 0; }
  .approach-grid > div:nth-child(even) { padding-left: 0; }
}

/* ---------- Sobre mí ---------- */
.portrait { aspect-ratio: 4 / 5; border-radius: 2px; align-self: start; }
/* La foto acompaña al texto al hacer scroll solo cuando hay dos columnas */
@media (min-width: 861px) { .portrait { position: sticky; top: 96px; } }
@media (max-width: 860px) { .portrait { aspect-ratio: auto; height: min(70vh, 520px); max-width: 440px; width: 100%; } }
.portrait img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; }
.about-name { margin-bottom: 32px; }
.quote { font-style: italic; font-size: clamp(22px, 1.8vw + 10px, 30px); line-height: 1.25; margin: 40px 0 0; padding: 0; border: 0; }
.quote cite { display: block; font-style: normal; margin-top: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill { font-family: var(--sans); font-size: 14px; font-weight: 500; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 12px; }

/* ---------- Formación ---------- */
.cred-year { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.subhead { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 20px; }

/* ---------- Sesiones ---------- */
.rose {
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(244, 184, 196, .55), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(214, 150, 140, .35), transparent 70%),
    #e9cdc7;
}
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
.mode { border: 1px solid var(--line); background: rgba(247, 235, 232, .55); padding: 22px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.mode h3 { font-size: clamp(30px, 3vw, 44px); margin: 28px 0 12px; }
.mode p { margin: 0; color: var(--ink-soft); font-size: .95em; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } .mode { min-height: 0; } }
.price-table { border-top: 1px solid var(--ink); margin-top: 8px; }
.price-table > div { display: grid; grid-template-columns: 200px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); gap: 16px; align-items: baseline; }
@media (max-width: 600px) { .price-table > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Agenda ---------- */
.booking-box { background: var(--bg-soft); border: 1px solid var(--line); min-height: 700px; position: relative; }
.booking-box .calendly-inline-widget { min-width: 300px; height: 760px; }
.booking-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 18px; }
.booking-placeholder p { max-width: 38ch; color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 30px; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); max-width: 62ch; padding-bottom: 8px; }

/* ---------- Contacto ---------- */
form.contact { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.field { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--line); align-items: start; }
.field label { padding: 20px 0; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: transparent; border: 0; outline: 0;
  padding: 16px 0; width: 100%; resize: vertical; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 150px; }
.field:focus-within { border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(22,20,20,.4); }
@media (max-width: 600px) { .field { grid-template-columns: 1fr; } .field label { padding: 16px 0 0; } .field input, .field textarea, .field select { padding-top: 6px; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); padding: 20px 0; }
.consent input { margin-top: 5px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-family: var(--sans); font-size: 15px; margin: 0; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.contact-aside .rows li { grid-template-columns: 110px 1fr; }
.contact-aside a { text-underline-offset: 3px; }
.notice { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--ink); font-size: 16px; line-height: 1.4; }
.notice strong { font-family: var(--sans); font-weight: 600; }

/* ---------- Footer ---------- */
footer { padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid var(--ink); }
.foot-big { font-family: var(--sans); font-weight: 500; letter-spacing: -0.05em; font-size: clamp(44px, 9vw, 140px); line-height: .9; margin: 0 0 48px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 16px; }
.foot-grid .label { display: block; margin-bottom: 8px; }
.foot-grid a { display: block; text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Botón flotante móvil ---------- */
/* bottom: 76px deja libre la esquina para el sello "Powered by Netlify" (plan gratuito) */
.float-cta { position: fixed; right: 16px; bottom: 76px; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s; }
.float-cta.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Aparición suave ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 40px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin: 40px 0 12px; line-height: 1.1; }
