/* ============================================================
   NAZARET SANTANA · Psicóloga Sanitaria y Forense
   Estilo editorial, elegante y sereno.
   Colores editables en :root.
   ============================================================ */

:root {
  --ink: #1d1b18;
  --ink-soft: #56514a;
  --ink-mute: #8a837a;
  --ivory: #f5f1ea;
  --paper: #fffdf9;
  --sand: #efe9df;
  --sand-2: #e7ded1;
  --line: #e2d9cb;
  --clay: #9a7b5f;      /* acento cálido */
  --clay-dark: #7f634b;
  --dark: #1d1b18;      /* sección oscura */
  --dark-soft: #2a2723;

  --shadow: 0 26px 60px -34px rgba(29, 27, 24, .45);
  --shadow-sm: 0 14px 34px -22px rgba(29, 27, 24, .4);
  --radius: 4px;        /* esquinas sobrias, editorial */
  --radius-lg: 8px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: .01em; }
h1 em { font-style: italic; color: var(--clay); }

p { margin: 0 0 1.1rem; color: var(--ink-soft); }
a { color: var(--clay-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }
strong { font-weight: 500; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.container--narrow { max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .7rem;
  font-weight: 500;
  color: var(--clay);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: #cbb79f; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--ink); color: var(--ivory);
  border: 1px solid var(--ink);
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-weight: 400; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--sm { padding: .6rem 1.25rem; font-size: .72rem; }
.btn--lg { padding: 1.1rem 2.4rem; font-size: .85rem; }
.btn--full { width: 100%; margin-bottom: .7rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #d8cfc0; font-size: .74rem; letter-spacing: .08em; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: .7rem; height: 34px; text-transform: uppercase; }
.topbar__sep { opacity: .4; }
@media (max-width: 560px){ .topbar__item:nth-child(3), .topbar__sep { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,234,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 62px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--ink-soft); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: var(--ivory); }
.nav__links a.btn:hover { color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 60; }
.nav__toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); transform-origin: center; }
.nav__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.lead { font-size: 1.15rem; max-width: 46ch; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.6rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; padding: 0; margin: 0; font-size: .82rem; letter-spacing: .04em; color: var(--ink-mute); text-transform: uppercase; }
.hero__badges li { position: relative; padding-left: 1.1rem; }
.hero__badges li::before { content: "—"; position: absolute; left: 0; color: var(--clay); }

/* Retrato / placeholders */
.hero__media { position: relative; }
.portrait { margin: 0; position: relative; z-index: 2; }
.portrait__ph, .portrait__img {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  object-fit: cover; box-shadow: var(--shadow);
}
.portrait--square .portrait__ph, .portrait--square .portrait__img { aspect-ratio: 1/1; }
.portrait--tall .portrait__img { aspect-ratio: 3/4; object-position: 50% 50%; }
.portrait__img { object-position: 50% 22%; background: var(--sand); }
.portrait__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(154,123,95,.05) 14px, rgba(154,123,95,.05) 15px),
    linear-gradient(160deg, var(--sand), var(--sand-2));
  border: 1px solid var(--line);
  color: var(--ink-mute);
}
.portrait__mono { font-family: "Cormorant Garamond", serif; font-size: 3.6rem; color: var(--clay); letter-spacing: .05em; }
.portrait__label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.hero__accent { position: absolute; inset: auto -8% -8% auto; width: 62%; aspect-ratio: 1; background: radial-gradient(circle, rgba(154,123,95,.16), transparent 68%); z-index: 1; }

/* Hero compacto (solo botón de reserva) */
.hero--compact { padding: clamp(2.6rem, 6vw, 4.6rem) 0; text-align: center; background: radial-gradient(900px 360px at 50% -35%, var(--sand-2), transparent 62%); }
.hero__compact { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.hero__compact .eyebrow { margin: 0; }
.hero__lead { font-family: "Cormorant Garamond", serif; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; color: var(--ink); max-width: 24ch; margin: 0; }
.hero__compact .hero__cta { margin: .2rem 0 0; justify-content: center; flex-wrap: wrap; }
.neae-highlight {
  display: flex; align-items: center; gap: 1.1rem; text-align: left;
  max-width: 660px; margin: 2rem auto 0; padding: 1.15rem 1.5rem;
  background: linear-gradient(115deg, rgba(154,123,95,.16), rgba(154,123,95,.05));
  border: 1px solid rgba(154,123,95,.35); border-left: 4px solid var(--clay);
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.neae-highlight__ico { font-size: 1.9rem; flex-shrink: 0; }
.neae-highlight__txt strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.28rem; color: var(--ink); margin-bottom: .15rem; }
.neae-highlight__txt span { font-size: .96rem; color: var(--ink-soft); line-height: 1.55; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Quote band ---------- */
.quote { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.quote p { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; text-align: center; color: var(--ink); margin: 0; max-width: 30ch; margin-inline: auto; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--sand); }
.section--soft { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark); color: #e7ded1; }
.section--dark h2, .section--dark h3 { color: #fbf7f0; }
.section--dark p { color: #c7bdae; }
.section__head { max-width: 680px; margin: 0 auto clamp(2.4rem, 4vw, 3.4rem); text-align: center; }
.section__sub { font-size: 1.08rem; }

.grid-2 { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }

.creds { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0; }
.creds li { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds strong { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; font-weight: 500; }

/* ---------- Cards ---------- */
.services__group { text-align: center; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.6rem; color: var(--clay-dark); margin: 2.6rem 0 1.4rem; }
.services__group:first-of-type { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; }

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(231,222,209,.18);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); background: rgba(255,255,255,.07); border-color: rgba(203,183,159,.5); }
.card__icon { font-size: 1.7rem; margin-bottom: .8rem; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .95rem; }
.services__note { text-align: center; margin: 2.8rem 0 0; font-style: italic; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; color: var(--clay-dark); }

/* Cards en fondo claro (por si se reutiliza) */
.section:not(.section--dark) .card { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-sm); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li { padding: 0 .4rem; }
.steps__num { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--clay); line-height: 1; margin-bottom: .6rem; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--clay); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.6rem, 5vw, 3.6rem) 0; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2rem; }
.cta p { color: rgba(255,255,255,.9); margin: 0; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1.5rem; transition: box-shadow .25s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-family: "Cormorant Garamond", serif; font-size: 1.28rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--clay); transition: transform .25s var(--ease); line-height: 1; font-family: "Jost", sans-serif; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.15rem; font-size: .98rem; }

/* ---------- Opiniones ---------- */
.rating { display: inline-flex; align-items: center; gap: .55rem; margin-top: .3rem; flex-wrap: wrap; justify-content: center; }
.rating__stars { color: #d9a441; letter-spacing: .1em; font-size: 1.25rem; }
.rating__num { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: var(--ink); line-height: 1; }
.rating__meta { font-size: .9rem; color: var(--ink-soft); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .7rem; }
.review__stars { color: #d9a441; letter-spacing: .08em; font-size: 1rem; }
.review__text { margin: 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--ink); }
.review__who { margin: 0; display: flex; flex-direction: column; margin-top: auto; }
.review__who strong { font-size: 1rem; }
.review__who span { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--clay); }
.reviews__cta { text-align: center; margin-top: 2.4rem; }

/* ---------- Mapa ---------- */
.map { margin-top: 2.6rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }
.map__facade { width: 100%; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; padding: 2.2rem 1.5rem; cursor: pointer; background: linear-gradient(150deg, var(--sand), var(--sand-2)); transition: background .25s var(--ease); }
.map__facade:hover { background: linear-gradient(150deg, var(--sand-2), var(--sand)); }
.map__pin { font-size: 2.1rem; }
.map__addr { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.map__hint { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.map__actions { text-align: center; margin-top: 1.3rem; }

/* ---------- Páginas legales ---------- */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: clamp(2.2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 2.5rem) 4.5rem; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .1em; }
.legal .legal__updated { color: var(--ink-mute); font-size: .85rem; letter-spacing: .04em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .3rem; }
.legal a { color: var(--clay-dark); text-decoration: underline; }
.legal .legal__data { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.legal .legal__data p { margin: .2rem 0; }

@media (max-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.contact__list li { display: flex; gap: 1rem; }
.contact__ico { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }
.contact__list strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.15rem; margin-bottom: .1rem; }
.contact__list div { color: var(--ink-soft); font-size: .98rem; }
.contact__card { background: var(--dark); color: var(--ivory); border-radius: var(--radius-lg); padding: 2.2rem 1.9rem; box-shadow: var(--shadow); }
.contact__card h3 { color: #fff; margin-bottom: .3rem; }
.contact__card > p { color: #c7bdae; margin-bottom: 1.5rem; font-size: .95rem; }
.contact__card .btn { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.contact__card .btn:hover { background: var(--clay); color: #fff; border-color: var(--clay); }
.contact__card .btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(245,241,234,.4); }
.contact__card .btn--ghost:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(231,222,209,.75); padding: 3rem 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; }
.footer__logo { height: 132px; width: auto; filter: invert(1) brightness(1.7); opacity: .95; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.footer__links a { color: rgba(231,222,209,.85); font-size: .8rem; letter-spacing: .04em; }
.footer__links a:hover { color: #fff; }
.footer__note { font-size: .8rem; line-height: 1.7; color: rgba(231,222,209,.7); margin: 0; max-width: 64ch; }
.footer__note strong { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { background: var(--ivory); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__toggle { display: flex; position: relative; z-index: 60; }
  .nav__links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: center; justify-content: center; gap: 1.7rem;
    background: var(--ivory); padding: 5rem 2rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease), visibility .35s;
    visibility: hidden; pointer-events: none;
  }
  .nav__links.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav__links a { font-size: 1.15rem; }
  .nav__links a.btn { margin-top: .4rem; }
  /* Con el menú abierto, la X se fija a la pantalla (siempre accesible, aunque haya scroll) */
  .nav__toggle[aria-expanded="true"] { position: fixed; top: 1.6rem; right: 1.5rem; z-index: 65; }
  /* Bloqueo de scroll del fondo mientras el menú está abierto */
  body.menu-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
  /* Ocultar el botón flotante de WhatsApp mientras el menú está abierto */
  body.menu-open .wa-float { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 320px; margin-inline: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
  .contact { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 520px) {
  .cards, .cards--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .creds li { grid-template-columns: 1fr; gap: .1rem; padding: .8rem 0; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
