/* =================================================================
   Lic. Martina Ríos · Psicóloga - demo Pilotzu
   Estética: cálida, calma, editorial. Sage/eucalipto + crema +
   acento terracota. Mobile-first, optimizado para grabar en vertical.
   ================================================================= */

:root {
  /* Paleta */
  --cream:        #fbf7f0;
  --cream-2:      #f3ece0;
  --sage:         #7c9885;
  --sage-deep:    #5c7565;
  --sage-ink:     #3a4a40;
  --ink:          #2c332e;
  --ink-soft:     #55605a;
  --terra:        #c9744f;
  --terra-soft:   #e0a07f;
  --line:         #e3dccf;

  /* Tipografía */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, sans-serif;

  /* Espaciado / forma */
  --radius:    22px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 50px -24px rgba(58, 74, 64, 0.45);
  --shadow-card: 0 14px 40px -22px rgba(58, 74, 64, 0.40);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 85% -8%, #eef3ee 0%, rgba(238,243,238,0) 55%),
    radial-gradient(900px 600px at -5% 8%, #f6efe2 0%, rgba(246,239,226,0) 55%),
    var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Tipografía base ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.85rem;
}
.eyebrow--light { color: #fff3e8; }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--sage-ink);
  max-width: 16ch;
}
.section__title--light { color: var(--cream); }

.section__sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 46ch;
}
.section__sub--light { color: rgba(251, 247, 240, 0.82); }

.prose { color: var(--ink-soft); margin-bottom: 1rem; max-width: 50ch; }
.prose:last-child { margin-bottom: 0; }

.section { padding: clamp(64px, 12vw, 120px) 0; }
.section__head { margin-bottom: clamp(36px, 6vw, 56px); }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 22px;
  max-width: var(--maxw);
  margin-inline: auto;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(251,247,240,0.92), rgba(251,247,240,0.62));
  border-bottom: 1px solid rgba(227, 220, 207, 0.7);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  flex: none;
}
.nav__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--sage-ink);
}
.nav__links { display: none; gap: 1.6rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--terra);
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--sage-ink); }
.nav__links a:hover::after { width: 100%; }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  padding: clamp(40px, 9vw, 80px) 22px clamp(56px, 10vw, 96px);
  max-width: var(--maxw);
  margin-inline: auto;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.hero__blob--1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle at 30% 30%, #cfe0d3, transparent 70%);
  top: -60px; right: -80px;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 60% 40%, #f3d8c5, transparent 70%);
  bottom: -40px; left: -70px;
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(18px, -22px) scale(1.06); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(34px, 7vw, 56px);
  align-items: center;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--sage-ink);
  margin-top: 0.3rem;
}
.hero__title-accent {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
}
.hero__lead {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 4.4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 40ch;
}
.hero__cta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hero__badges {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}
.hero__badges li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-deep);
  background: rgba(124, 152, 133, 0.12);
  border: 1px solid rgba(124, 152, 133, 0.22);
  padding: 6px 13px;
  border-radius: 999px;
}

/* Retrato */
.hero__portrait { margin: 0; }
.portrait {
  position: relative;
  border-radius: 28px 28px 28px 80px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--cream);
  max-width: 420px;
  margin-inline: auto;
  transform: rotate(-1.2deg);
}
.portrait__img { width: 100%; height: auto; }
.portrait__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: var(--cream);
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

/* Scroll cue */
.hero__scroll {
  position: relative;
  z-index: 1;
  display: none;
  width: 26px; height: 42px;
  border: 2px solid rgba(92, 117, 101, 0.4);
  border-radius: 16px;
  margin: 36px auto 0;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  background: var(--sage-deep);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* =================================================================
   BOTONES
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.2s ease;
  line-height: 1;
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--wa {
  background: var(--sage);
  color: var(--cream);
  box-shadow: 0 12px 26px -14px rgba(92, 117, 101, 0.9);
}
.btn--wa:hover { background: var(--sage-deep); box-shadow: 0 16px 30px -14px rgba(92, 117, 101, 0.95); }

.btn--ghost {
  background: transparent;
  color: var(--sage-ink);
  border-color: rgba(92, 117, 101, 0.35);
}
.btn--ghost:hover { border-color: var(--sage-deep); background: rgba(124, 152, 133, 0.08); }

.btn--solid {
  background: var(--terra);
  color: var(--cream);
  box-shadow: 0 12px 26px -14px rgba(201, 116, 79, 0.85);
}
.btn--solid:hover { background: #b5623f; }

.btn--lg { padding: 16px 28px; font-size: 1.04rem; }
.btn--block { width: 100%; }

/* =================================================================
   SOBRE MÍ
   ================================================================= */
.sobre__grid { display: grid; gap: clamp(28px, 6vw, 52px); }
.sobre__card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  align-self: start;
}
.sobre__card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--sage-ink);
  margin-bottom: 1rem;
}
.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.facts__row:first-of-type { border-top: 0; }
.facts dt { color: var(--ink-soft); font-size: 0.9rem; }
.facts dd { font-weight: 700; color: var(--sage-ink); text-align: right; font-size: 0.92rem; }

/* =================================================================
   SERVICIOS
   ================================================================= */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--sage), var(--terra-soft));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -24px rgba(58, 74, 64, 0.5);
  border-color: rgba(124, 152, 133, 0.4);
}
.card:hover::before { opacity: 1; }
.card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--terra);
  display: block;
  margin-bottom: 0.6rem;
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  color: var(--sage-ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.card__text { color: var(--ink-soft); font-size: 0.98rem; }

.modalidad {
  margin-top: 22px;
  display: grid;
  gap: 22px;
  background: linear-gradient(135deg, #eef3ee, #f3ece0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.modalidad__item h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--sage-ink);
  margin-bottom: 0.35rem;
}
.modalidad__item p { color: var(--ink-soft); font-size: 0.96rem; }
.modalidad__divider { height: 1px; background: var(--line); }

/* =================================================================
   HONORARIOS (sección oscura sage para contraste editorial)
   ================================================================= */
.honorarios {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(201,116,79,0.18), transparent 60%),
    linear-gradient(160deg, var(--sage-deep), var(--sage-ink));
  border-radius: clamp(28px, 6vw, 48px);
  margin-inline: 12px;
  position: relative;
  overflow: hidden;
}
.honorarios .container { position: relative; z-index: 1; }
.honorarios__grid { display: grid; gap: 22px; }

.price {
  background: rgba(251, 247, 240, 0.08);
  border: 1px solid rgba(251, 247, 240, 0.18);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(2px);
}
.price__label {
  color: rgba(251,247,240,0.78);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.price__amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 13vw, 3.8rem);
  color: var(--cream);
  line-height: 1;
  margin: 0.4rem 0 0.5rem;
}
.price__note { color: rgba(251,247,240,0.7); font-size: 0.9rem; }

.paylist { list-style: none; display: grid; gap: 14px; }
.paylist li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: rgba(251, 247, 240, 0.06);
  border: 1px solid rgba(251, 247, 240, 0.14);
  border-radius: var(--radius-sm);
}
.paylist__k { font-weight: 700; color: var(--cream); font-size: 0.98rem; }
.paylist__v { color: rgba(251,247,240,0.74); font-size: 0.9rem; }

/* =================================================================
   TURNO
   ================================================================= */
.turno__grid { display: grid; gap: clamp(28px, 6vw, 44px); }
.turno__hint { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.88rem; }

.form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.form__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--sage-ink);
  margin-bottom: 1.2rem;
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #aaa49a; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(124, 152, 133, 0.16);
}
.form__msg {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sage-deep);
  min-height: 1.2em;
}
.form__legal { margin-top: 0.6rem; font-size: 0.78rem; color: #6b6559; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--sage-ink);
  color: rgba(251,247,240,0.82);
  padding-top: clamp(48px, 9vw, 72px);
  margin-top: clamp(20px, 5vw, 40px);
}
.footer__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
}
.footer__brand .nav__mark { background: var(--sage); margin-bottom: 12px; }
.footer__name { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); }
.footer__role { font-size: 0.88rem; color: rgba(251,247,240,0.6); }
.footer__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-soft);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.footer__col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer__col a, .footer__col li { font-size: 0.95rem; color: rgba(251,247,240,0.8); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--cream); }
.footer__bottom {
  border-top: 1px solid rgba(251,247,240,0.14);
  padding-block: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(251,247,240,0.55);
}
.footer__made a { color: var(--terra-soft); font-weight: 700; }

/* =================================================================
   WHATSAPP FLOTANTE
   ================================================================= */
.wa-float {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--sage);
  color: var(--cream);
  border-radius: 50%;
  box-shadow: 0 14px 30px -8px rgba(58, 74, 64, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: var(--sage-deep); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 30px -8px rgba(58,74,64,0.6), 0 0 0 0 rgba(124,152,133,0.45); }
  50%      { box-shadow: 0 14px 30px -8px rgba(58,74,64,0.6), 0 0 0 12px rgba(124,152,133,0); }
}

/* =================================================================
   REVEAL ON SCROLL
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =================================================================
   BREAKPOINTS
   ================================================================= */
@media (min-width: 700px) {
  .hero__scroll { display: block; }
  .modalidad { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .modalidad__divider { width: 1px; height: 60px; }
}

@media (min-width: 880px) {
  body { font-size: 18px; }
  .nav__links { display: flex; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__portrait { order: 2; }

  .sobre__grid { grid-template-columns: 1.4fr 0.95fr; align-items: start; }
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .honorarios__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .turno__grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
