/* ============================================================
   Lic. Matías Hernández — Psicólogo · Psicoanalista
   Editorial · Crema + Carbón · Lora + Montserrat
   ============================================================ */

:root {
  --cream:       #EADDC6;  /* fondo principal (beige un poco más oscuro) */
  --cream-soft:  #FAF7F2;  /* marfil — secciones alternas (contraste con el crema) */
  --cream-dark:  #D8C5A6;  /* bordes finos */
  --carbon:      #1E1A16;  /* secciones oscuras, nav, footer */
  --carbon-soft: #2A2521;
  --text:        #2A241E;  /* texto sobre crema */
  --muted:       #6E655A;  /* texto secundario */
  --on-dark:     #EFE6D8;  /* texto sobre carbón */
  --on-dark-dim: #B7AC9B;
  --accent:      #A07D50;  /* bronce/arena cálido, muy sobrio */
  --accent-soft: #B89A6E;

  --maxw: 1140px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 500; line-height: 1.18; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--text); }

/* Texto de lectura justificado (pedido del cliente) */
.about__text p,
.method__card p,
.faq__body p { text-align: justify; hyphens: auto; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 800px; }

.section { padding: 104px 0; }
.section--cream      { background: var(--cream); }
.section--cream-soft { background: var(--cream-soft); }
.section--dark       { background: var(--carbon); color: var(--on-dark); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--accent-soft); }

.section__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--text); letter-spacing: -0.01em; }
.section--dark .section__title { color: var(--on-dark); }

.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__intro { margin-top: 22px; color: var(--muted); font-size: 1.05rem; }

.section__cta { text-align: center; margin-top: 56px; }

/* ---------- Divider ──•── ---------- */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 220px; margin: 26px auto 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(160, 125, 80, 0.45);
}
.divider span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.divider--light::before, .divider--light::after { background: rgba(184, 154, 110, 0.5); }
.divider--light span { background: var(--accent-soft); }
.section__head .divider { margin-top: 26px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(30, 26, 22, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(239, 230, 216, 0.08);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.28); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.nav__brand-name { font-family: 'Montserrat', sans-serif; font-size: 1.08rem; font-weight: 500; letter-spacing: 0.08em; color: var(--on-dark); }
.nav__brand-role { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-dark-dim); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 0.84rem; font-weight: 400; color: var(--on-dark-dim);
  text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s ease;
}
.nav__link:hover { color: var(--on-dark); }
.nav__cta {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--carbon); background: var(--accent-soft);
  padding: 9px 20px; border-radius: 100px; text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
.nav__cta:hover { background: #c9ac80; transform: translateY(-1px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--on-dark); transition: 0.3s ease; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 28px 80px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/hero.jpg') center 38% / cover no-repeat;
  filter: saturate(0.5) brightness(1.14) contrast(0.95);
  transform: scale(1.03);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(245,237,224,0.66) 0%, rgba(243,233,215,0.5) 42%, rgba(234,221,198,0.82) 100%),
    radial-gradient(120% 85% at 50% 38%, rgba(245,237,224,0.12) 0%, rgba(234,221,198,0.5) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
}
.hero__text { max-width: 720px; margin: 0 auto; }
.hero .eyebrow--light { color: var(--accent); }
.hero .divider--light { margin: 28px auto; }
.hero .divider--light::before, .hero .divider--light::after { background: rgba(160,125,80,0.4); }
.hero .divider--light span { background: var(--accent); }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--carbon); letter-spacing: -0.012em;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lead {
  margin: 0 auto; max-width: 640px; color: var(--text);
  font-size: 1.06rem; font-weight: 400;
}
.hero__ctas { display: flex; justify-content: center; margin-top: 34px; }
.hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--carbon);
  background: rgba(30, 26, 22, 0.045);
  border: 1px solid rgba(160, 125, 80, 0.45);
  padding: 8px 18px; border-radius: 100px;
}
.hero__tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 15px 30px; border-radius: 100px; border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(160,125,80,0.3); }
.btn--primary:hover { background: #b08a59; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(160,125,80,0.4); }
.btn--wa { background: #1f8f5f; box-shadow: 0 8px 24px rgba(31,143,95,0.32); }
.btn--wa:hover { background: #23a06b; box-shadow: 0 12px 30px rgba(31,143,95,0.42); }
.btn--dark { background: var(--carbon); color: var(--on-dark); }
.btn--dark:hover { background: var(--carbon-soft); transform: translateY(-2px); }
.btn--ig {
  background: transparent; color: var(--on-dark); border-color: rgba(239,230,216,0.35);
}
.btn--ig:hover { background: rgba(239,230,216,0.08); transform: translateY(-2px); }

/* ============================================================
   2. ACERCA DE MÍ
   ============================================================ */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.about__text .eyebrow { margin-top: 0; }
.about__text .section__title { margin-bottom: 22px; }
.about__text p { color: var(--muted); }
.about__subhead {
  font-size: 1.22rem; font-weight: 600; color: var(--text);
  margin: 30px 0 12px;
}
.about__foot { text-align: center; margin-top: 28px; }
.about .btn { display: flex; width: fit-content; margin: 0 auto; }
.about__rule { border: none; border-top: 1px solid var(--cream-dark); margin: 30px auto 14px; max-width: 460px; }
.about__foot .about__matricula { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; margin: 0; text-align: center; font-weight: 600; }

/* Marco editorial de la foto */
.frame { position: relative; max-width: 380px; margin: 0 auto; }
.frame::before {
  content: ''; position: absolute; inset: -16px; z-index: 0;
  border: 1px solid var(--accent); border-radius: 2px;
}
.frame img {
  position: relative; z-index: 1; width: 100%; border-radius: 2px;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 24px 50px rgba(42,36,30,0.22);
  filter: saturate(0.95) contrast(1.02);
}

/* ============================================================
   3. ACERCA DE LA TERAPIA
   ============================================================ */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.method__card {
  background: var(--cream-soft); border: 1px solid var(--cream-dark);
  border-radius: var(--radius); padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.method__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42,36,30,0.1); }
.method__num {
  font-family: 'Lora', serif; font-size: 1.5rem; font-weight: 600;
  color: var(--accent); display: block; margin-bottom: 18px;
}
.method__num::after {
  content: ''; display: block; width: 36px; height: 2px;
  background: var(--accent); border-radius: 2px; margin-top: 12px;
}
.method__title { font-size: 1.28rem; color: var(--text); margin-bottom: 14px; }
.method__card p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   4. MOTIVOS DE CONSULTA
   ============================================================ */
.motivos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }

/* Cajas compactas: solo título + "Leer +", expandibles para un escaneo rápido */
.motivo-box {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, border-left-color 0.25s ease;
}
.motivo-box:hover { box-shadow: 0 10px 26px rgba(42,36,30,0.08); border-left-color: var(--accent-soft); }
.motivo-box[open] { box-shadow: 0 10px 26px rgba(42,36,30,0.08); }
.motivo-box summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 22px; min-height: 86px;
}
.motivo-box summary::-webkit-details-marker { display: none; }
.motivo-box__title { font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 500; color: var(--text); line-height: 1.3; }
.motivo-box__toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.motivo-box__toggle .plus { font-size: 1.1rem; line-height: 1; transition: transform 0.3s ease; }
.motivo-box[open] .motivo-box__toggle .plus { transform: rotate(45deg); }
.motivo-box__body { padding: 0 22px 22px; }
.motivo-box__body p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Card "Consultar" que rellena la última fila — solo desktop, misma altura que las cajas */
.motivo-cta {
  grid-column: span 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 86px; padding: 14px 32px;
  background: radial-gradient(160% 260% at 100% 0%, #38322b 0%, var(--carbon) 62%);
  border: 1px solid rgba(239, 230, 216, 0.07);
  border-left: 3px solid var(--accent-soft);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.motivo-cta:hover { box-shadow: 0 14px 32px rgba(0,0,0,0.22); }
.motivo-cta__copy { display: flex; flex-direction: column; gap: 4px; }
.motivo-cta__eyebrow { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-soft); }
.motivo-cta__title { font-family: 'Lora', serif; font-weight: 500; font-size: 1.18rem; color: var(--on-dark); line-height: 1.25; }
.motivo-cta__btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: #1f8f5f; color: #fff; font-weight: 500; font-size: 0.86rem;
  padding: 12px 24px; border-radius: 100px;
  box-shadow: 0 8px 22px rgba(31, 143, 95, 0.28);
  transition: transform 0.2s ease, background 0.25s ease;
}
.motivo-cta__btn svg { width: 17px; height: 17px; fill: currentColor; }
.motivo-cta:hover .motivo-cta__btn { background: #23a06b; transform: translateY(-2px); }

/* ============================================================
   5. FAQ ACORDEÓN
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--cream-dark); }
.faq__item { border-bottom: 1px solid var(--cream-dark); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 44px 26px 4px; position: relative;
  font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 500; color: var(--text);
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 300;
  color: var(--accent); transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body { padding: 0 44px 28px 4px; }
.faq__body p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ============================================================
   6. DAR EL PRIMER PASO
   ============================================================ */
.final { text-align: center; }
.final__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--on-dark); }
.final__text { max-width: 620px; margin: 28px auto 38px; color: rgba(239,230,216,0.82); font-size: 1.06rem; }
.final__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #15110E; color: var(--on-dark-dim); padding: 56px 0 30px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(239,230,216,0.08); }
.footer__name { font-family: 'Lora', serif; font-size: 1.2rem; color: var(--on-dark); margin: 0; }
.footer__role { font-size: 0.8rem; margin: 6px 0 0; }
.footer__social { display: flex; gap: 12px; }
.footer__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.2s ease, opacity 0.2s ease; }
.footer__icon svg { width: 20px; height: 20px; fill: #fff; }
.footer__icon--wa { background: #1f8f5f; }
.footer__icon--ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer__icon:hover { transform: translateY(-2px); opacity: 0.9; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 0.78rem; }
.footer__legal p { margin: 0; }
.footer__credit a { color: var(--on-dark-dim); text-decoration: underline; }
.footer__credit a:hover { color: var(--on-dark); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1f8f5f; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(31,143,95,0.45);
  transition: transform 0.25s ease, opacity 0.3s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #1f8f5f; z-index: -1; animation: wa-pulse 2.6s infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .about { grid-template-columns: 1fr; gap: 44px; }
  .frame { max-width: 320px; }
  .method { grid-template-columns: 1fr; gap: 18px; }
  .motivos { grid-template-columns: repeat(2, 1fr); }
  .motivo-box--last { grid-column: 1 / -1; }
  .motivo-cta {
    grid-column: 1 / -1;
    flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 22px 26px; min-height: 0;
  }
  .motivo-cta__btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(30,26,22,0.99); backdrop-filter: blur(12px);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 28px 28px;
    transform: translateY(-130%); transition: transform 0.35s ease;
    border-bottom: 1px solid rgba(239,230,216,0.1);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__link { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(239,230,216,0.07); font-size: 0.98rem; }
  .nav__cta { width: 100%; text-align: center; margin-top: 16px; padding: 13px; }
  .nav__burger { display: flex; }

  .motivos { grid-template-columns: 1fr; }
  .motivo-box summary { min-height: 0; }
  .section__head { margin-bottom: 44px; }

  /* Hero mobile (centrado, imagen beige) */
  .hero { padding: 100px 22px 56px; }
  .hero__bg { background-position: center 42%; }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(245,237,224,0.72) 0%, rgba(243,233,215,0.58) 45%, rgba(234,221,198,0.86) 100%);
  }
  .hero__content { padding: 0 18px; }
  .hero__text { max-width: 100%; }

  .faq__item summary { font-size: 1.02rem; }
  .footer__legal { flex-direction: column; gap: 8px; }
}
