/* ============================================================
   Mi Psicóloga Online — estilos
   Paleta cálida y serena: salvia, crema y terracota
   ============================================================ */

:root {
  --cream: #faf6f1;
  --cream-2: #f3ece3;
  --sage: #7c9a86;
  --sage-dark: #5c7866;
  --sage-deep: #3f5849;
  --terracotta: #d99477;
  --terracotta-dark: #c97d5d;
  --ink: #2f3a34;
  --muted: #6f7a72;
  --white: #ffffff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px rgba(63, 88, 73, 0.08);
  --shadow: 0 18px 48px rgba(63, 88, 73, 0.14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, sans-serif;

  --container: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--sage-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }
.section { padding: 92px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin: 0 0 .6rem;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 2px rgba(92, 120, 102, .35);
}
.btn-ghost:hover { background: rgba(124, 154, 134, .12); color: var(--sage-deep); box-shadow: inset 0 0 0 2px var(--sage); }
.btn-light { background: #fff; color: var(--sage-deep); }
.btn-light:hover { background: var(--cream-2); color: var(--sage-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 88, 73, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--sage-deep); }
.brand:hover { color: var(--sage-deep); }
.brand-mark { color: var(--terracotta); font-size: 1.2rem; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-list a:hover { color: var(--terracotta-dark); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; }
.blob-1 { width: 420px; height: 420px; background: #cfe0d4; top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: #f3d8c8; bottom: -120px; left: -90px; }
.blob-3 { width: 280px; height: 280px; background: #e3ead9; top: 40%; left: 45%; opacity: .4; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-text .lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 0; color: var(--sage-deep); font-weight: 600; font-size: .92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; }

.hero-figure { position: relative; display: flex; justify-content: center; }
.hero-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #e7eee5, #f6e6db);
  border: 6px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute;
  bottom: 18px;
  left: 0;
  background: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hero-card strong { font-family: var(--serif); color: var(--sage-deep); }
.hero-card span { font-size: .85rem; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: center; }
.checklist { list-style: none; margin: 0; padding: 28px; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.checklist li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid rgba(63,88,73,.08); font-weight: 600; color: var(--sage-deep); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Services ---------- */
.services { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(63,88,73,.05);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--cream-2); font-size: 1.6rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num {
  display: inline-grid; place-items: center;
  width: 70px; height: 70px; border-radius: 50%;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--sage-deep);
  background: var(--cream-2);
  box-shadow: inset 0 0 0 2px rgba(124,154,134,.4);
  margin-bottom: 18px;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 6px 24px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--sage-deep);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--terracotta); font-size: 1.5rem; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 18px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--white); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  position: relative;
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 34px 28px 26px;
  box-shadow: var(--shadow-sm);
}
.quote-mark {
  position: absolute;
  top: 6px; left: 22px;
  font-family: var(--serif);
  font-size: 4rem; line-height: 1;
  color: var(--terracotta);
  opacity: .35;
}
.quote blockquote { margin: 16px 0 16px; color: var(--ink); font-size: .98rem; }
.quote figcaption { font-family: var(--serif); color: var(--sage-deep); font-weight: 600; }
.reviews-more { text-align: center; margin: 38px 0 0; }
.reviews-more a { font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--sage-dark), var(--sage-deep));
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 36em; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-deep); color: rgba(255,255,255,.82); padding-top: 64px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand-text { color: #fff; }
.footer-about p { margin: .2rem 0; }
.footer-about .muted { color: rgba(255,255,255,.55); font-size: .9rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-list li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--terracotta); }
.social { display: flex; gap: 16px; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .cards, .steps-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .nav-burger span { width: 24px; height: 2px; background: var(--sage-deep); border-radius: 2px; transition: .25s; }
  .nav-list {
    position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(63,88,73,.1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-list li { width: 100%; text-align: center; border-bottom: 1px solid rgba(63,88,73,.06); }
  .nav-list li a { display: block; padding: 16px; }
  .nav-toggle:checked ~ .nav-list { max-height: 420px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .cards, .steps-grid, .quotes, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
