/*-----------------------------------*\
  style.css — Karla Mialaret · Psicóloga Clínica
\*-----------------------------------*/

:root {
  --cream: hsl(38, 42%, 95%);
  --cream-alt: hsl(36, 38%, 90%);
  --paper: hsl(34, 30%, 85%);
  --surface: hsl(0, 0%, 100%);

  --terracotta: hsl(16, 52%, 47%);
  --terracotta-dark: hsl(16, 58%, 37%);
  --terracotta-soft: hsl(16, 55%, 92%);

  --sage: hsl(84, 12%, 40%);
  --sage-dark: hsl(80, 14%, 26%);
  --sage-soft: hsl(84, 20%, 91%);

  --ink: hsl(70, 8%, 27%);
  --ink-soft: hsl(60, 6%, 45%);

  --ff-script: 'Caveat', cursive;
  --ff-serif: 'Playfair Display', 'Georgia', serif;
  --ff-body: 'Nunito', 'Segoe UI', sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-1: 0 2px 10px hsla(20, 40%, 20%, 0.08);
  --shadow-2: 0 18px 40px -12px hsla(20, 40%, 20%, 0.22);

  --maxw: 1120px;
  --transition: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  color: var(--sage-dark);
  line-height: 1.2;
  font-weight: 700;
}

.script {
  font-family: var(--ff-script);
  font-weight: 600;
  color: var(--terracotta);
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: 88px; }

@media (max-width: 640px) {
  section { padding-block: 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--terracotta);
  display: inline-block;
  border-radius: 2px;
}

.section-title {
  font-family: var(--ff-script);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .section-lede { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--terracotta);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* -------------------- topbar -------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsla(38, 42%, 95%, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}
.brand-mark { font-size: 20px; flex-shrink: 0; }
.brand-text {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--terracotta-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  display: block;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-links a:hover { color: var(--terracotta); }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper);
  align-items: center; justify-content: center;
  color: var(--sage-dark);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--paper);
    box-shadow: var(--shadow-2);
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--paper); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
}

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--terracotta-dark); box-shadow: var(--shadow-2); }
.btn-outline {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}
.btn-outline:hover { background: var(--terracotta-soft); }
.btn svg { width: 16px; height: 16px; }

/* -------------------- hero -------------------- */
.hero { padding-block: 64px 88px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; max-width: 280px; margin-inline: auto; }
}

.hero-eyebrow {
  font-weight: 700;
  color: var(--sage);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: block;
}

.hero-title {
  font-family: var(--ff-script);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: var(--terracotta);
  margin-bottom: 18px;
}

.hero-text {
  color: var(--ink);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 26px;
}

.credential-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.credential-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-portrait-frame {
  position: relative;
  width: 300px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-2);
}
.hero-portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait-tag {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--surface);
  color: var(--terracotta-dark);
  font-family: var(--ff-script);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}

/* -------------------- about -------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.about-copy p { margin-bottom: 16px; color: var(--ink); }
.about-copy p:last-child { margin-bottom: 0; }

.quals-panel {
  background: var(--surface);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  padding: 28px;
}
.quals-panel h4 {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 700;
}
.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--paper);
}
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--terracotta);
  box-sizing: border-box;
}
.timeline-item.in-progress::before { border-color: var(--sage); }
.timeline-item h5 { font-family: var(--ff-body); font-size: 0.93rem; color: var(--sage-dark); margin-bottom: 2px; }
.timeline-item .tl-org { font-size: 0.85rem; color: var(--terracotta-dark); font-weight: 700; }
.timeline-item .tl-date {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.timeline-item.in-progress .tl-date { color: var(--sage); font-weight: 700; }

.also-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--paper);
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.also-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.also-row span {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-weight: 700;
}

/* -------------------- approach cards -------------------- */
.approach-intro {
  max-width: 680px;
  margin-bottom: 44px;
  color: var(--ink);
}
.approach-intro b { color: var(--terracotta-dark); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .approach-grid { grid-template-columns: 1fr; } }

.approach-card {
  background: var(--surface);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.approach-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--terracotta); }

.approach-icon {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  margin-bottom: 16px;
}
.approach-icon svg { width: 22px; height: 22px; }
.approach-card h3 { font-family: var(--ff-body); font-size: 1rem; margin-bottom: 8px; color: var(--terracotta-dark); }
.approach-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* -------------------- how it works -------------------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .how-grid { grid-template-columns: 1fr; } }

.how-card {
  background: var(--surface);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
}
.how-icon svg { width: 21px; height: 21px; }
.how-card h4 { font-family: var(--ff-body); font-size: 0.98rem; margin-bottom: 6px; color: var(--sage-dark); }
.how-card p { font-size: 0.9rem; color: var(--ink-soft); }

.how-cta {
  margin-top: 28px;
  background: var(--sage-dark);
  border-radius: var(--radius);
  padding: 30px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: hsl(80, 30%, 95%);
}
.how-cta p { max-width: 46ch; font-size: 0.95rem; }
.how-cta .btn-primary { background: var(--terracotta); }
.how-cta .btn-primary:hover { background: var(--terracotta-dark); }

/* -------------------- closing / contact -------------------- */
.closing {
  text-align: center;
  max-width: 640px;
  margin-inline: auto 44px;
}
.closing p { color: var(--ink); margin-bottom: 14px; }
.closing .signature { font-family: var(--ff-script); font-size: 1.6rem; color: var(--terracotta); margin-top: 18px; }

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 240px;
  max-width: 300px;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.contact-card .icon-box {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  background: var(--sage-soft);
  color: var(--sage-dark);
}
.contact-card .icon-box svg { width: 20px; height: 20px; }
.contact-card h4 { font-family: var(--ff-body); font-size: 0.95rem; color: var(--sage-dark); }
.contact-card p { font-size: 0.9rem; color: var(--ink-soft); word-break: break-word; }
.contact-card:hover p { color: var(--terracotta-dark); }

/* -------------------- footer -------------------- */
.site-footer {
  padding-block: 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  border-top: 1px solid var(--paper);
}
.site-footer .crisis-note {
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* -------------------- reveal -------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
