/* ═══════════════════════════════════════════════
   PSICOLOGÍA · Estilos — paleta azul serena y confiable
   ═══════════════════════════════════════════════ */

:root {
  --cream:       #EFF4FA;
  --cream-deep:  #E2EBF6;
  --white-warm:  #FDFEFF;
  --peach:       #BCD7EF;
  --peach-soft:  #DCEAF7;
  --terracotta:  #3E7CB1;
  --terra-dark:  #2C618C;
  --brown:       #21303F;
  --brown-soft:  #5C7085;
  --sage:        #64A8A5;
  --sage-deep:   #487F7C;
  --gold:        #E5B04C;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-soft: 0 10px 30px -12px rgba(33, 48, 63, .18);
  --shadow-lift: 0 24px 48px -18px rgba(33, 48, 63, .28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  overflow-x: hidden;
}

/* Textura de grano sutil sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.section { padding-block: clamp(4rem, 10vw, 6.5rem); }
.section--tinted { background: var(--cream-deep); }

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

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Tipografía común ───────────────────────── */
.eyebrow {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9rem;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 1.1rem;
}
.section-title em {
  font-style: italic;
  color: var(--terracotta);
}
.section-title--center { text-align: center; }

.squiggle { position: relative; display: inline-block; white-space: nowrap; }
.squiggle svg {
  position: absolute;
  left: 0; right: 0; bottom: -.28em;
  width: 100%; height: .32em;
  color: var(--gold);
  opacity: .85;
}

.section-sub {
  text-align: center;
  color: var(--brown-soft);
  max-width: 520px;
  margin-inline: auto;
}

/* ── Botones y chips ────────────────────────── */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white-warm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: .95em 2em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(62, 124, 177, .55);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover {
  transform: translateY(-3px);
  background: var(--terra-dark);
  box-shadow: 0 18px 30px -12px rgba(44, 97, 140, .6);
}
.btn--ghost {
  background: transparent;
  color: var(--brown);
  border-color: rgba(33, 48, 63, .3);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(62, 124, 177, .08); border-color: var(--terracotta); color: var(--terra-dark); }
.btn--small { font-size: .9rem; padding: .7em 1.5em; }
.btn--full { width: 100%; text-align: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white-warm);
  border: 1px solid rgba(100, 168, 165, .45);
  color: var(--sage-deep);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* ── Header / navegación ────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(239, 244, 250, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.header.scrolled { box-shadow: 0 8px 30px -14px rgba(33, 48, 63, .25); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.01em;
  z-index: 110;
}
.logo em { font-style: italic; color: var(--terracotta); }
.logo--light { color: var(--cream); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: .98rem;
  padding: .3rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav-link:hover { color: var(--terra-dark); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--white-warm);
  border: 1px solid rgba(33, 48, 63, .15);
  border-radius: 12px;
  cursor: pointer;
  z-index: 110;
  padding: 10px 11px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--peach-soft);
    box-shadow: -20px 0 60px rgba(33, 48, 63, .25);
    transform: translateX(105%);
    transition: transform .4s cubic-bezier(.77, 0, .18, 1);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1.25rem; font-family: var(--font-display); }
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
}

/* manchas orgánicas de fondo */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
}
.hero::before {
  width: 480px; height: 480px;
  right: -120px; top: -80px;
  background: radial-gradient(circle, rgba(188, 215, 239, .85), transparent 65%);
}
.hero::after {
  width: 380px; height: 380px;
  left: -140px; bottom: -100px;
  background: radial-gradient(circle, rgba(100, 168, 165, .35), transparent 65%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.chip--leaf { animation: fadeUp .8s .1s both; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 1.3rem 0 1.2rem;
  animation: fadeUp .8s .2s both;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero__lead {
  font-size: 1.13rem;
  color: var(--brown-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
  animation: fadeUp .8s .32s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--brown-soft);
}
.hero__trust li { display: flex; align-items: center; gap: .55rem; }
.hero__trust li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* Retrato blob */
.hero__photo {
  position: relative;
  justify-self: center;
  animation: fadeUp 1s .4s both;
}

.blob-frame {
  width: min(400px, 78vw);
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--peach) 0%, #9CC1E4 55%, #dfa075 100%);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  padding: 14px;
  box-shadow: var(--shadow-lift);
  animation: morph 12s ease-in-out infinite alternate;
}
.blob-frame svg {
  width: 100%; height: 100%;
  border-radius: inherit;
}
.blob-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

@media (max-width: 920px) {
  .hero { padding-bottom: 3rem; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__photo { order: -1; margin-top: .5rem; }
  .blob-frame { width: min(300px, 72vw); }
}

/* ── Sobre mí ───────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.polaroid {
  background: var(--white-warm);
  padding: 1rem;
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-2.5deg);
  transition: transform .4s ease;
  max-width: 360px;
  margin-inline: auto;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid svg { border-radius: 16px; width: 100%; }
.polaroid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--peach-soft);
  border-radius: 16px;
}

.about__text p { color: var(--brown-soft); margin-bottom: 1rem; }
.about__text p.reveal:first-of-type { color: var(--brown); }

.about__subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 1.8rem 0 1rem;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .65rem 1.5rem;
  margin-bottom: 2.2rem;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
  font-size: .97rem;
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0; top: .05rem;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  font-size: .7rem;
  color: var(--white-warm);
  background: var(--sage);
  border-radius: 50%;
}

@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; }
  .polaroid { transform: rotate(-1.5deg); }
}

/* ── Servicios ──────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white-warm);
  border: 1px solid rgba(33, 48, 63, .07);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.service-card:hover {
  transform: translateY(-8px) rotate(-.6deg);
  box-shadow: var(--shadow-lift);
}

.service-card__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  margin-bottom: .4rem;
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card__icon--terracotta { background: #DCEBFA; color: var(--terra-dark); }
.service-card__icon--sage       { background: #DDEEEA; color: var(--sage-deep); }
.service-card__icon--peach      { background: var(--peach-soft); color: #3E7CB1; }
.service-card__icon--blush      { background: #DBE7F5; color: #2C618C; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.service-card p {
  color: var(--brown-soft);
  font-size: .97rem;
  flex-grow: 1;
}
.service-card__tag {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--terra-dark);
  background: rgba(62, 124, 177, .1);
  padding: .35rem .85rem;
  border-radius: 999px;
}

/* ── Formación ──────────────────────────────── */
.training__text {
  max-width: 760px;
  margin: 1.8rem auto 0;
  color: var(--brown-soft);
}
.training__text p { margin-bottom: 1rem; }
.training__closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terra-dark);
}

/* ── Contacto ───────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact__info > p { color: var(--brown-soft); margin-bottom: 2rem; max-width: 44ch; }

.contact-list { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list small {
  display: block;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown-soft);
}
.contact-list a { font-weight: 700; color: var(--terra-dark); }
.contact-list a:hover { text-decoration: underline; }

.contact-list__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--white-warm);
  border: 1px solid rgba(33, 48, 63, .1);
  border-radius: 15px;
  font-size: 1.25rem;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.schedule { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.8rem; }
.schedule__chip {
  font-size: .85rem;
  font-weight: 700;
  background: var(--white-warm);
  border: 1px solid rgba(100, 168, 165, .5);
  color: var(--sage-deep);
  padding: .45rem 1rem;
  border-radius: 999px;
}
.schedule__chip--alt { color: var(--terra-dark); border-color: rgba(62, 124, 177, .45); background: #EAF3FB; }

.socials { display: flex; gap: .8rem; }
.socials a {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  transition: transform .25s ease, background .25s ease;
}
.socials a:hover { transform: translateY(-4px) rotate(-4deg); background: var(--terracotta); }
.socials svg { width: 20px; height: 20px; }

.contact-form {
  background: var(--white-warm);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(33, 48, 63, .06);
}
.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .98rem;
  color: var(--brown);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: .85em 1.1em;
  transition: border-color .25s ease, background .25s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #b39a8b; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white-warm);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  text-align: center;
  font-size: .82rem;
  color: var(--brown-soft);
  margin-top: .8rem;
}
.form-status {
  display: none;
  text-align: center;
  font-weight: 700;
  color: var(--sage-deep);
  background: #DFF0EA;
  border-radius: 12px;
  padding: .7rem 1rem;
  margin-top: .9rem;
}
.form-status.show { display: block; }
.form-status.error { color: #A34430; background: #F9E0DC; }

@media (max-width: 920px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: #14202B;
  color: var(--cream);
  padding-top: 3.5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(239, 244, 250, .15);
}
.footer__brand p {
  margin-top: .9rem;
  color: rgba(239, 244, 250, .65);
  font-size: .95rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: flex-start;
}
.footer__links a {
  font-weight: 500;
  font-size: .95rem;
  color: rgba(239, 244, 250, .8);
  transition: color .25s ease;
}
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.4rem;
  font-size: .85rem;
  color: rgba(239, 244, 250, .55);
}

/* ── Animaciones ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes morph {
  from { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  to   { border-radius: 45% 55% 42% 58% / 55% 45% 58% 42%; }
}

/* Revelado al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .22s; }
.reveal[data-delay="3"] { transition-delay: .34s; }
.reveal[data-delay="4"] { transition-delay: .46s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
