/* Rocío Martínez Baesa · Psicóloga y psicoanalista en Madrid
   Hoja de estilos única, sin dependencias externas (ni fuentes ni scripts de terceros). */

:root {
	--ink: #211C30;
	--ink-2: #4A4458;
	--plum: #43285A;
	--plum-2: #5B3A78;
	--plum-3: #2B1A3B;
	--lilac: #F1ECF6;
	--lilac-2: #E4DAEE;
	--paper: #FCFBFD;
	--peach: #F5C3AE;
	--cta: #C2502D;
	--cta-2: #A5411F;
	--line: #DDD3E6;
	--serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
	--sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--r: 20px;
	--wrap: 1160px;
	--shadow: 0 18px 44px -22px rgba(43, 26, 59, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--cta); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--plum-3); margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px; background: var(--cta); color: #fff; text-decoration: none; border: 2px solid var(--cta);
	font: 600 17px/1 var(--sans); padding: 16px 28px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--cta-2); border-color: var(--cta-2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(165, 65, 31, .8); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ghost:hover { background: var(--plum); border-color: var(--plum); color: #fff; box-shadow: none; }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--plum); border-color: var(--plum); color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: var(--plum-3); border-color: #fff; }
.btn-light:hover { background: var(--peach); border-color: var(--peach); color: var(--plum-3); box-shadow: none; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 253, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(43, 26, 59, .5); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum-3); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font: 600 17px/1 var(--serif); letter-spacing: .04em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font: 600 18px/1.2 var(--serif); }
.brand-text small { font-size: 12.5px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15.5px; padding: 10px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav a.on { background: var(--lilac); color: var(--plum); }
.nav .btn { margin-left: 8px; }
.nav-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav-btn span { display: block; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .25s, opacity .25s; }
.top.open .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.open .nav-btn span:nth-child(2) { opacity: 0; }
.top.open .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { background: radial-gradient(1100px 520px at 88% 8%, #F3E2EA 0%, rgba(243, 226, 234, 0) 60%), linear-gradient(180deg, var(--lilac) 0%, var(--paper) 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); }
.eyebrow { margin: 0 0 14px; font: 600 13.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cta-2); }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); letter-spacing: -.01em; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--plum-2); }
.lead { font-size: clamp(19px, 2vw, 22px); color: var(--ink-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }
.facts { list-style: none; margin: 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 40px; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.facts strong { font: 600 17px/1.25 var(--serif); color: var(--plum-3); }
.hero-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 22%; border-radius: 24px; box-shadow: var(--shadow); }
.hero-photo figcaption { margin: 14px 0 0; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--plum); }

/* ---------- Frases ---------- */
.quotes { background: var(--plum-3); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px; }
.quotes blockquote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--peach); }
.quotes blockquote p { font: italic 400 clamp(19px, 2vw, 23px)/1.4 var(--serif); margin: 0 0 12px; color: #fff; }
.quotes cite { font-style: normal; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }

/* ---------- Secciones ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-tint { background: var(--lilac); }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.005em; }
.sub { font-size: 20px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-rev { grid-template-columns: .9fr 1.1fr; }
.split-text p { max-width: 38em; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.photo-art img { box-shadow: none; border-radius: 0; }

.cred { display: grid; gap: 14px; }
.cred-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; transition: transform .25s, box-shadow .25s; }
.cred-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cred-n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); color: var(--plum); font: 600 19px/1 var(--serif); display: grid; place-items: center; }
.cred-card h3 { font-size: 20px; margin: 0 0 2px; }
.cred-card p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }

.chips { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--lilac-2); color: var(--plum); border-radius: 999px; padding: 8px 16px; font-size: 15.5px; line-height: 1.3; }

.psico { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.psico-art { position: sticky; top: 110px; display: grid; gap: 28px; }
.psico-art img { width: 100%; border-radius: var(--r); }
.psico-art .mente { max-width: 280px; margin: 0 auto; }
.prose { max-width: 40em; }
.prose p { font-size: 18.5px; }
.pull { margin: 34px 0; padding: 26px 30px; background: var(--lilac); border-radius: var(--r); border-left: 4px solid var(--plum-2); }
.pull p { font: italic 400 20px/1.55 var(--serif); margin: 0 0 12px; color: var(--plum-3); }
.pull cite { font-style: normal; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cta-2); }

.band { background: var(--plum); color: #fff; }
.band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; padding-left: 0; padding-right: 0; max-width: none; }
.band-img { margin: 0; min-height: 360px; }
.band-img img { width: 100%; height: 100%; object-fit: cover; }
.band-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 88px); max-width: 640px; }
.band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.band p { color: #E7DDF0; font-size: 19px; }

/* ---------- Precios ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 30px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-main { background: var(--plum); border-color: var(--plum); color: #fff; }
.plan-main h3, .plan-main .price { color: #fff; }
.plan h3 { font-size: 24px; margin-bottom: .3em; }
.price { font: 600 64px/1 var(--serif); color: var(--plum-3); margin: 6px 0 4px; }
.price span { font-size: 32px; margin-left: 4px; }
.plan-note { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.plan-main .plan-note { color: var(--peach); font-weight: 600; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.plan-main li { border-color: rgba(255, 255, 255, .2); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; border-left: 2px solid var(--cta); border-bottom: 2px solid var(--cta); transform: rotate(-45deg); }
.plan .btn { justify-content: center; }
.plan-main .btn { background: #fff; color: var(--plum-3); border-color: #fff; }
.plan-main .btn:hover { background: var(--peach); border-color: var(--peach); box-shadow: none; }
.pay { max-width: 760px; margin: 34px auto 0; text-align: center; font-size: 16px; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.contact-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 19px; }
.contact-list svg { width: 40px; height: 40px; padding: 10px; background: var(--lilac); border-radius: 50%; fill: var(--plum); flex: none; }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.benedetti { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.benedetti p { font: italic 400 19px/1.55 var(--serif); color: var(--ink-2); }
.benedetti cite { font-style: normal; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cta-2); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form p { margin: 0 0 18px; }
.form label { display: block; font-size: 14.5px; font-weight: 600; color: var(--plum-3); margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
	width: 100%; padding: 14px 16px; border: 1.5px solid var(--lilac-2); border-radius: 12px; background: var(--paper); color: var(--ink); font: 400 17px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--plum-2); box-shadow: 0 0 0 4px rgba(91, 58, 120, .15); }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15.5px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--plum); flex: none; }
.legal-mini { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); background: var(--lilac); border-radius: 12px; padding: 12px 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { background: #E6F4EA; color: #1B4D2A; }
.form-msg.err { background: #FDECEA; color: #7A1F14; }

/* ---------- Pie ---------- */
.foot { background: var(--plum-3); color: #D9CCE6; padding: 56px 0 40px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px 40px; align-items: start; }
.foot-name { font: 600 24px/1.2 var(--serif); color: #fff; margin: 0 0 4px; }
.foot-sub, .foot-contact { margin: 0; font-size: 15.5px; }
.foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.foot a:hover { color: var(--peach); }
.foot-links { display: grid; gap: 6px; justify-items: start; font-size: 15.5px; }
.foot-copy { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13.5px; color: #B9A9CB; }

/* ---------- Página legal ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal h2 { font-size: 28px; margin-top: 1.8em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; background: var(--lilac); border-radius: var(--r); padding: 22px 26px; }
.legal dt { font-weight: 600; color: var(--plum-3); }
.legal dd { margin: 0; }
.back { display: inline-block; margin-bottom: 24px; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Adaptación ---------- */
@media (max-width: 1000px) {
	.nav-btn { display: flex; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 5% 22px; flex-direction: column; align-items: stretch; gap: 2px; box-shadow: 0 24px 30px -24px rgba(43, 26, 59, .5); display: none; }
	.top.open .nav { display: flex; }
	.nav a:not(.btn) { padding: 14px 12px; font-size: 17px; }
	.nav .btn { margin: 10px 0 0; justify-content: center; }
	.hero-in, .split, .split-rev, .contact-in, .psico { grid-template-columns: 1fr; }
	.hero-photo { order: -1; width: min(78%, 340px); }
	.split-rev .photo { order: -1; max-width: 420px; }
	.psico-art { position: static; grid-template-columns: 1fr 1fr; align-items: center; }
	.quotes-grid, .plans { grid-template-columns: 1fr; }
	.band-in { grid-template-columns: 1fr; }
	.band-img { min-height: 260px; max-height: 360px; }
	.band-text { padding: 40px 5% 52px; }
	.foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 17px; }
	.facts { grid-template-columns: 1fr; gap: 14px; }
	.btn { width: 100%; justify-content: center; }
	.btn-sm { width: auto; }
	.brand-text small { display: none; }
	.psico-art { grid-template-columns: 1fr; }
	.legal dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	* { transition-duration: .01ms !important; }
}

/* foto de las manos y del joven en consulta */
.hands { margin: 0; padding: clamp(28px, 5vw, 56px) 0 clamp(8px, 2vw, 24px); }
.hands img { width: 100%; max-height: 420px; object-fit: cover; object-position: center 45%; border-radius: 28px; box-shadow: var(--shadow); }
.consulta-foto { margin: 30px 0; }
.benedetti p strong { font-weight: 700; }
