/* ===========================================================
   GROWWW · Template Psicólogo — "Océano calmo" v2
   =========================================================== */

   :root {
    --crema:        #F4F8FA;
    --crema-2:      #FAFCFD;
    --tinta:        #25333D;
    --tinta-soft:   #5A6B75;
    --salvia:       #3A6B8A;
    --salvia-dk:    #2D5470;
    --salvia-lt:    #e7eff4;
    --terracota:    #5BA4CF;
    --terracota-dk: #4488b3;
    --arena:        #D9E4EA;
    --arena-2:      #e8eff3;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans:  "Inter", system-ui, -apple-system, sans-serif;
    --maxw: 1120px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(37,51,61,.04), 0 8px 24px rgba(37,51,61,.06);
    --ease: cubic-bezier(.22,.61,.36,1);
  }  

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--tinta); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--salvia);
  margin-bottom: .9rem;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section__head { max-width: 620px; margin-bottom: 3rem; }
.section__head--center { text-align: center; margin: 0 auto 3rem; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section__sub { color: var(--tinta-soft); font-size: 1.08rem; margin-top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  text-decoration: none;
}
.btn--primary { background: var(--terracota); color: var(--crema); box-shadow: 0 6px 18px rgba(192,133,82,.32); }
.btn--primary:hover { background: var(--terracota-dk); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192,133,82,.4); }
.btn--secondary {
  background: transparent;
  color: var(--tinta);
  border: 1.5px solid var(--arena);
}
.btn--secondary:hover { background: var(--arena-2); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.btn__icon { flex-shrink: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,239,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--arena); box-shadow: 0 2px 14px rgba(46,42,38,.05); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__brand { display: flex; align-items: center; gap: .65rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.nav__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--salvia); color: var(--crema);
  border-radius: 50%;
  font-size: .9rem; font-weight: 600; font-family: var(--sans);
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .95rem; color: var(--tinta-soft); transition: color .2s; }
.nav__links a:hover { color: var(--tinta); }
.nav__cta {
  color: var(--salvia) !important;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border: 1px solid var(--salvia);
  border-radius: 999px;
  transition: background .2s, color .2s !important;
}
.nav__cta:hover { background: var(--salvia); color: var(--crema) !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--tinta); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -.01em; margin-bottom: 1.1rem; }
.hero__subtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--tinta-soft); max-width: 32ch; }

/* MEJORA 1: datos contextuales */
.hero__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.2rem 0 1.8rem;
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  color: var(--tinta-soft);
}
.hero__meta-item svg { color: var(--salvia); flex-shrink: 0; }
.hero__meta-sep { color: var(--arena); font-size: .9rem; }

/* MEJORA 2: dos botones */
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--tinta-soft);
}
.hero__trust svg { color: var(--salvia); flex-shrink: 0; }

.hero__media { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius) var(--radius);
  background: var(--salvia-lt) center/cover no-repeat;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__photo-fallback { font-family: var(--serif); font-size: 4rem; color: var(--salvia); opacity: .35; }
.hero__photo.has-img .hero__photo-fallback { display: none; }

/* MEJORA 3: badge de credibilidad */
.hero__badge {
  position: absolute;
  bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--crema);
  color: var(--salvia-dk);
  font-size: .85rem; font-weight: 500;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero__badge::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--terracota);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Sobre mí ---------- */
.sobre { background: var(--crema-2); }
.sobre__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sobre__p { color: var(--tinta-soft); margin-bottom: 1.2rem; font-size: 1.08rem; }
.sobre__card { background: var(--crema); border: 1px solid var(--arena); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.sobre__card-title { font-size: 1.2rem; margin-bottom: 1.2rem; }
.cred { list-style: none; }
.cred li { position: relative; padding-left: 1.7rem; margin-bottom: .9rem; color: var(--tinta-soft); font-size: .98rem; }
.cred li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--terracota); }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--cards { grid-template-columns: repeat(3, 1fr); }
.grid--modalidad { grid-template-columns: repeat(2, 1fr); max-width: 800px; }

.card {
  background: var(--crema-2);
  border: 1px solid var(--arena);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--salvia-lt);
  border-radius: 12px;
  color: var(--salvia);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--tinta-soft); font-size: .98rem; }

/* MEJORA 4: bullets en tarjetas de modalidad */
.card--modalidad { background: var(--crema-2); }
.card--modalidad .card__icon { background: var(--arena-2); color: var(--terracota-dk); }
.card__bullets {
  list-style: none;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  border-top: 1px solid var(--arena);
  padding-top: 1rem;
}
.card__bullets li {
  font-size: .9rem;
  color: var(--tinta-soft);
  padding-left: 1.2rem;
  position: relative;
}
.card__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--terracota);
}

/* ---------- Obras sociales ---------- */
.obras {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--salvia); color: var(--crema);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
}
.obras__text h3 { color: var(--crema); font-size: 1.35rem; margin-bottom: .5rem; }
.obras__text p { opacity: .9; max-width: 46ch; font-size: .98rem; }
.obras__logos { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; }
.obras__logos li {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: .5rem 1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
}

/* ---------- Proceso ---------- */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.paso { position: relative; padding: 2rem 1.6rem 1.6rem; }
.paso::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--terracota), transparent);
  border-radius: 3px;
}
.paso__num { font-family: var(--serif); font-size: 2.2rem; color: var(--salvia); opacity: .5; display: block; margin-bottom: .6rem; }
.paso h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.paso p { color: var(--tinta-soft); font-size: .98rem; }

/* MEJORA 5: FAQ con acordeón */
.faq { background: var(--crema-2); }
.faq__lista {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.faq__item {
  background: var(--crema);
  border: 1px solid var(--arena);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .25s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__pregunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--tinta);
  list-style: none;
  user-select: none;
}
.faq__pregunta::-webkit-details-marker { display: none; }
.faq__pregunta:hover { background: var(--crema-2); }
.faq__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--terracota);
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq__respuesta {
  padding: 0 1.5rem 1.3rem;
  color: var(--tinta-soft);
  font-size: .98rem;
  line-height: 1.75;
}

/* ---------- Contacto ---------- */
.contacto { background: var(--salvia-lt); }
.contacto__inner { text-align: center; max-width: 620px; }
.contacto .section__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.contacto .section__sub { margin: 1rem auto 2.2rem; }
.contacto__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; justify-content: center; margin-top: 1.8rem; color: var(--tinta-soft); font-size: .95rem; }
.contacto__meta a:hover { color: var(--salvia); }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: var(--arena); padding: 2rem 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer__by a { color: var(--crema); border-bottom: 1px solid var(--salvia); }

/* ---------- FAB WhatsApp ---------- */
.fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.08); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { width: 100%; max-width: 420px; margin: 0 auto; order: -1; }
  .hero__subtitle { max-width: none; }
  .sobre__inner { grid-template-columns: 1fr; }
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: 1fr; }
  .obras { flex-direction: column; align-items: flex-start; }
  .nav__links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--crema);
    border-bottom: 1px solid var(--arena);
    padding: .5rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--arena-2); width: 100%; }
  .nav__cta { border: none; text-align: left; padding: .9rem 0 !important; }
  .nav__cta:hover { background: none; color: var(--salvia) !important; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid--cards, .grid--modalidad { grid-template-columns: 1fr; }
  .container { padding: 0 1.2rem; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .faq__icon { transition: none; }
}
