/* =============================================================
   ROMINA SCAFETTO — PSICÓLOGA — sistema visual
   Paleta: cálida y calma — malva, salvia, marfil, dorado tenue.
   Tipografía editorial cálida (Newsreader + Karla).
   Sin testimonios, sin promesas de resultado — por norma ética
   de publicidad profesional en psicología (Fe.P.R.A. / Colegio
   de Psicólogos). Matrícula visible en hero y footer.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --paper:      #FBF7F4;
  --paper-2:    #F3EAE4;
  --paper-3:    #EADFD8;

  --ink:        #2E2A28;
  --ink-2:      #5C534E;
  --ink-3:      #8A8079;

  --mauve:      #8B5D6B;  /* acento primario — calidez */
  --mauve-dim:  #6E4854;
  --sage:       #6B7A63;  /* acento secundario — calma, crecimiento */
  --gold:       #B08D57;  /* detalle, subrayados */

  --line:      rgba(46,42,40,0.14);
  --line-2:    rgba(46,42,40,0.07);
  --shadow:    rgba(90,60,70,0.16);

  --display: "Newsreader", "Georgia", serif;
  --sans:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --fs-h1:      clamp(2.4rem, 5.6vw, 4.6rem);
  --fs-h2:      clamp(1.9rem, 4vw, 3rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.6rem);
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-caption: 0.85rem;
  --fs-label:   0.74rem;

  --sp-1: 0.5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem; --sp-6: 4rem; --sp-7: 6rem; --sp-8: 8rem;

  --radius: 8px;
  --radius-lg: 20px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1080px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; text-wrap: balance; line-height: 1.15; color: var(--ink); }
em { font-style: italic; color: var(--mauve); }
::selection { background: var(--mauve); color: var(--paper); }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; border-radius: var(--radius); }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: var(--radius); font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-3); }
@media (min-width: 720px) { .container { padding-inline: var(--sp-5); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.kicker {
  font-family: var(--sans); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--mauve); display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: ""; width: 1.4em; height: 1px; background: var(--mauve); display: inline-block; }

.section { position: relative; padding-block: var(--sp-7); border-top: 1px solid var(--line-2); }
.section-head { max-width: 42rem; margin-bottom: var(--sp-5); }
.section-head h2 { margin-top: var(--sp-2); }
.section-head p { margin-top: var(--sp-3); color: var(--ink-2); font-size: var(--fs-lead); }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1rem 1.8rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
  min-height: 44px;
}
.btn-primary { background: var(--mauve); color: var(--paper); }
.btn-primary:hover { background: var(--mauve-dim); transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--shadow); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--mauve); color: var(--mauve); transform: translateY(-2px); }
.btn-link { color: var(--ink-2); border-bottom: 1px solid var(--line); padding: 0; min-height: auto; border-radius: 0; }
.btn-link:hover { color: var(--mauve); border-color: var(--mauve); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; padding-block: var(--sp-3);
  background: linear-gradient(180deg, rgba(251,247,244,.92), rgba(251,247,244,0));
  transition: background .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(251,247,244,.94); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  padding-block: var(--sp-2); border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.nav-brand { font-family: var(--display); font-style: italic; font-size: 1.3rem; letter-spacing: .01em; }
.nav-links { display: none; gap: var(--sp-4); align-items: center; }
.nav-links a { font-size: .92rem; color: var(--ink-2); transition: color .25s var(--ease-out); }
.nav-links a:hover { color: var(--mauve); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }
.nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: var(--radius); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 18px; height: 1px; background: var(--ink); position: relative; }
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-mobile {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: var(--sp-5);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-mobile a { font-family: var(--display); font-style: italic; font-size: 2rem; padding-block: var(--sp-2); border-bottom: 1px solid var(--line-2); }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-top: 7rem; padding-bottom: var(--sp-7); overflow: hidden; background: var(--paper-2); }
.hero-decor {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(139,93,107,.16), transparent 70%),
    radial-gradient(50% 45% at 10% 85%, rgba(107,122,99,.14), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--sp-6); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }
.hero-meta { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(107,122,99,.2); }
.hero-title { font-size: var(--fs-h1); font-style: italic; max-width: 14ch; margin-bottom: var(--sp-3); }
.hero-sub { max-width: 46ch; font-size: var(--fs-lead); color: var(--ink-2); margin-bottom: var(--sp-4); }
.hero-cred { font-size: var(--fs-caption); color: var(--ink-2); margin-bottom: var(--sp-4); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.hero-portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--mauve) 0%, var(--sage) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-portrait-initials {
  font-family: var(--display); font-style: italic; font-size: 5rem; color: rgba(251,247,244,.92);
}
.hero-portrait-tag {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3); right: var(--sp-3);
  font-size: .78rem; color: rgba(251,247,244,.85); background: rgba(46,42,40,.35);
  padding: .5rem .8rem; border-radius: var(--radius); backdrop-filter: blur(4px);
}

/* =============================================================
   7. Sobre mí / secciones con imagen
   ============================================================= */
.split-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }
.split-figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; }
.split-figure img { width: 100%; height: 100%; object-fit: cover; }
.split-text p { color: var(--ink-2); margin-bottom: var(--sp-3); }
.split-text p:last-child { margin-bottom: 0; }

/* =============================================================
   8. Cards genéricas
   ============================================================= */
.grid-2 { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-4); transition: transform .4s var(--ease-out), border-color .4s var(--ease-out);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--mauve); }
.info-card .kicker { margin-bottom: var(--sp-2); }
.info-card h3 { font-size: 1.3rem; font-style: italic; margin-bottom: var(--sp-2); }
.info-card p { color: var(--ink-2); font-size: .95rem; }

/* =============================================================
   9. Proceso (pasos)
   ============================================================= */
.steps { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--sp-5); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-style: italic; color: var(--gold); font-size: 1.6rem;
  position: absolute; top: 0; left: 0;
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--sp-1); }
.step p { color: var(--ink-2); font-size: .92rem; }

/* =============================================================
   10. FAQ
   ============================================================= */
.faq-list { max-width: 44rem; }
.faq-item { border-top: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-3); font-family: var(--display); font-style: italic; font-size: 1.15rem; text-align: left; }
.faq-q .plus { font-family: var(--sans); font-weight: 300; font-size: 1.4rem; color: var(--mauve); transition: transform .35s var(--ease-out); flex-shrink: 0; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { color: var(--ink-2); padding-bottom: var(--sp-3); max-width: 42rem; font-size: .95rem; }

/* =============================================================
   11. CTA final
   ============================================================= */
.cta-final { text-align: center; padding-block: var(--sp-8); position: relative; background: var(--paper-2); overflow: hidden; }
.cta-final-halo { position: absolute; inset: -20% 10% -20% 10%; background: radial-gradient(45% 45% at 50% 50%, rgba(139,93,107,.18), transparent 70%); filter: blur(80px); pointer-events: none; }
.cta-final h2 { font-size: var(--fs-h2); font-style: italic; max-width: 18ch; margin-inline: auto; margin-bottom: var(--sp-3); position: relative; z-index: 2; }
.cta-final p { color: var(--ink-2); max-width: 38ch; margin-inline: auto; margin-bottom: var(--sp-4); position: relative; z-index: 2; }
.cta-final .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* =============================================================
   12. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line-2); padding-block: var(--sp-6) var(--sp-4); background: var(--paper-2); }
.footer-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; margin-bottom: var(--sp-5); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { font-family: var(--display); font-style: italic; font-size: 1.5rem; margin-bottom: var(--sp-2); }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--sp-2); font-weight: 700; }
.footer-col p, .footer-col a { color: var(--ink-2); font-size: .9rem; display: block; margin-bottom: .5rem; }
.footer-col a:hover { color: var(--mauve); }
.footer-matricula { font-size: .85rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; display: inline-block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line-2); font-size: .78rem; color: var(--ink-2); }

/* =============================================================
   13. Reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   14. WhatsApp flotante
   ============================================================= */
.whatsapp-float {
  position: fixed; right: var(--sp-3); bottom: var(--sp-3); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--mauve);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px var(--shadow); transition: transform .35s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* =============================================================
   15. Breakpoints reference
   ============================================================= */
@media (min-width: 540px) { }
@media (min-width: 720px) { }
@media (min-width: 960px) { }
@media (min-width: 1280px) { }
@media (min-width: 1600px) { }
