/* =============================================
   ADRIANA LARRAÍN — PSICÓLOGA
   Design: Warm refined minimalism
   Palette: Warm cream, sage green, deep slate
   Typography: Cormorant (display) + DM Sans (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- CSS Variables ---- */
:root {
  --cream:        #F5F0E8;
  --cream-dark:   #EDE6D6;
  --sage:         #7A9E87;
  --sage-light:   #A8C4B0;
  --sage-dark:    #4E7260;
  --slate:        #2C3440;
  --slate-mid:    #4A5568;
  --warm-white:   #FDFAF4;
  --gold:         #B8965A;
  --gold-light:   #D4B483;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:        1100px;
  --section-gap:  7rem;
  --radius:       4px;

  --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--warm-white);
  color: var(--slate);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

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

a {
  color: var(--sage-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold); }

/* ---- Layout Helpers ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: var(--section-gap) 0; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--slate);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 1.2rem;
}

/* ---- Navigation ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), padding var(--transition);
}

#nav.scrolled {
  border-bottom-color: var(--cream-dark);
  padding: 0.9rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-mid);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--sage-dark); }

.nav-cta {
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--sage);
  border-radius: 50px;
  color: var(--sage-dark) !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--sage-dark) !important;
  color: var(--warm-white) !important;
  border-color: var(--sage-dark) !important;
}

/* Language toggle */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--slate-mid);
  padding: 0.2rem 0.1rem;
  transition: color var(--transition);
}

.lang-btn:hover { color: var(--sage-dark); }
.lang-btn.active { color: var(--sage-dark); font-weight: 700; }

.lang-divider {
  font-size: 0.65rem;
  color: var(--cream-dark);
  user-select: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--slate);
  transition: all var(--transition);
}

/* ---- Hero ---- */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 5rem 2rem;
  max-width: 580px;
  margin-left: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.hero-name {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 0.3rem;
  color: var(--slate);
}

.hero-name em {
  font-style: italic;
  color: var(--sage-dark);
}

.hero-title-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--slate-mid);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--slate-mid);
  margin-bottom: 3rem;
  max-width: 380px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--sage-dark);
  color: var(--warm-white);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--sage-dark);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--warm-white);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: var(--slate);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--cream-dark);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--slate-mid);
  color: var(--sage-dark);
}

.hero-photo-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream) 100%);
  opacity: 0.3;
  z-index: 1;
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--sage-dark);
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 2rem;
  text-align: center;
}

.hero-photo-placeholder .placeholder-icon {
  font-size: 4rem;
  opacity: 0.4;
}

.hero-photo-placeholder p {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.6;
  max-width: 200px;
}

/* Decorative element */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-mid);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  animation: fadeInUp 1.5s ease 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ---- About Section ---- */
#about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 6rem;
}

.about-photo-small {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  filter: grayscale(15%);
  box-shadow: 0 20px 60px rgba(44, 52, 64, 0.12);
  margin-bottom: 1.5rem;
}

.about-photo-placeholder-small {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--cream-dark), var(--sage-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.about-location {
  font-size: 0.78rem;
  color: var(--slate-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-location::before {
  content: '📍';
  font-size: 0.9rem;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--slate-mid);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.about-text p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.6;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--sage-light));
  margin: 2.5rem 0;
  border-radius: 2px;
}

/* ---- Education Section ---- */
#education {
  background: var(--warm-white);
}

.education-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.edu-item {
  padding: 2.2rem 2rem;
  background: var(--warm-white);
  border: none;
  transition: background var(--transition);
  position: relative;
}

.edu-item:hover {
  background: var(--cream);
}

.edu-item + .edu-item {
  border-left: 1px solid var(--cream-dark);
}

.edu-year {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.edu-institution {
  font-size: 0.82rem;
  color: var(--sage-dark);
  font-weight: 400;
}

/* ---- Services Section ---- */
#services {
  background: var(--slate);
  color: var(--cream);
}

#services .section-label {
  color: var(--sage-light);
}

#services h2 {
  color: var(--cream);
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--slate);
  transition: background var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
  background: rgba(255,255,255,0.04);
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.75;
}

/* ---- Approach Section ---- */
#approach {
  background: var(--cream-dark);
  padding: calc(var(--section-gap) * 0.8) 0;
}

.approach-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}

.approach-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--slate);
}

.approach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--sage);
  border-radius: 50px;
  color: var(--sage-dark);
  background: transparent;
}

/* ---- Booking Section ---- */
#booking {
  background: var(--warm-white);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.booking-info h2 {
  margin-bottom: 1.2rem;
}

.booking-intro {
  font-size: 0.95rem;
  color: var(--slate-mid);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.booking-cal-btn {
  display: inline-block;
  margin-bottom: 1rem;
}

.booking-calendar-note {
  font-size: 0.78rem;
  color: var(--sage-dark);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.booking-calendar-note::before {
  content: '✓';
  font-weight: 700;
}

/* Setup note (shown when Google Calendar URL not configured) */
.setup-note {
  background: #FFF8E7;
  border: 1px solid #F0D070;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  color: var(--slate-mid);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.setup-note code {
  background: rgba(0,0,0,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-family: monospace;
}

/* Or divider */
.booking-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.booking-or::before,
.booking-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-dark);
}

.booking-or-contact {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--slate-mid);
  white-space: nowrap;
}

/* Contact list */
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--slate-mid);
}

.contact-details .ci {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ci-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-mid);
  opacity: 0.6;
  margin-bottom: 0.1rem;
}

/* Booking card (right side) */
.booking-card {
  position: sticky;
  top: 7rem;
}

.booking-card-inner {
  background: var(--slate);
  color: var(--cream);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.booking-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.booking-card-tagline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.booking-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.booking-features li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.88rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.4;
}

.feat-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

/* ---- Footer ---- */
#footer {
  background: var(--slate);
  color: rgba(245,240,232,0.5);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 300;
}

.footer-note {
  font-size: 0.75rem;
  text-align: right;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root { --section-gap: 5rem; }

  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo-wrapper {
    height: 55vh;
    order: -1;
  }

  .hero-photo-placeholder {
    min-height: 55vh;
  }

  .hero-content {
    padding: 3rem 2rem 4rem;
    max-width: 100%;
    margin: 0;
  }

  .about-grid,
  .approach-inner,
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .booking-card { position: static; }

  .about-sidebar { position: static; }

  .about-photo-small,
  .about-photo-placeholder-small {
    aspect-ratio: 4/3;
    max-height: 350px;
  }

  .education-grid { grid-template-columns: 1fr 1fr; }

  .edu-item + .edu-item { border-left: none; border-top: 1px solid var(--cream-dark); }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--warm-white);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .nav-links.open a {
    font-size: 1.1rem;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .education-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
