/* =========================================================
   Encontrándonos · Psicoterapia
   style.css — hoja de estilos base
   Clases principales: .container / .item / .info / .foro
   ========================================================= */

:root{
  --white: #ffffff;
  --primary: #ef95cf;        /* magenta pastel */
  --primary-dark: #d976b0;
  --secondary: #08958f;      /* cian vivido */
  --secondary-dark: #067370;
  --text: #2c2a30;
  --text-soft: #635f6b;
  --bg-soft: #fdf5fa;
  --bg-soft-2: #eefbfa;
  --border: #eee0ea;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(44, 42, 48, 0.08);
}

/* ---------- Reset base ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
}
p{ margin: 0 0 1em; color: var(--text-soft); }
a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }

/* ---------- Utilidades de texto ---------- */
.eyebrow{
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}
.text-center{ text-align: center; }

/* ---------- Botones ---------- */
.btn-brand{
  display: inline-block;
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary{
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover{
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--white);
}
.btn-outline{
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}
.btn-outline:hover{
  background: var(--secondary);
  color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow .25s ease;
}
.navbar.scrolled{
  box-shadow: 0 4px 20px rgba(44, 42, 48, 0.08);
}
.navbar-brand{
  height: 4.5rem;
}
.navbar-brand span{
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.navbar-brand span em{
  font-style: normal;
  color: var(--primary);
}
.nav-link{
  font-weight: 500;
  color: var(--text) !important;
  margin: 0 .4rem;
  position: relative;
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--secondary);
  transition: width .25s ease;
}
.nav-link:hover::after{ width: 100%; }
.nav-link.disabled{
  opacity: .45;
  pointer-events: none;
}
.nav-link.active{ color: var(--secondary) !important; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
}
.breathing-circle{
  position: absolute;
  top: 50%; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, var(--secondary) 0%, var(--primary) 100%);
  opacity: .18;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe{
  0%, 100%{ transform: translateY(-50%) scale(1); }
  50%{ transform: translateY(-50%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce){
  .breathing-circle{ animation: none; }
}
.hero h1{
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: 14ch;
}
.hero h1 em{
  font-style: normal;
  color: var(--primary);
}
.hero p.lead{
  font-size: 1.15rem;
  max-width: 46ch;
}

/* ---------- Container (caja general de secciones/items) ---------- */
.section{
  padding: 4.5rem 0;
  scroll-margin-top: 5.5rem;
}
.section-alt{
  background: var(--bg-soft-2);
}
.container{
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ---------- Item (tarjetas) ---------- */
.item{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.item:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.item-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  background: var(--bg-soft);
  color: var(--primary);
}
.item h3{ font-size: 1.25rem; }
.item p{ font-size: .95rem; margin-bottom: 1.2rem; }

/* variante para plan destacado */
.item-featured{
  border-color: var(--secondary);
  box-shadow: var(--shadow);
  position: relative;
}
.item-featured .badge-pop{
  position: absolute;
  top: -12px; left: 1.6rem;
  background: var(--secondary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 50px;
}
.item-price{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: .2rem;
}
.item-price small{
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-soft);
  font-weight: 400;
}
.item ul{ margin-bottom: 1.4rem; }
.item ul li{
  font-size: .9rem;
  color: var(--text-soft);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: .5rem;
}
.item ul li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ---------- Info (bloques de información / bio / formulario) ---------- */
.info{
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.info-bio{
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.info-bio img{
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-soft);
}
.info-bio-text{ flex: 1; min-width: 220px; }

.info ul li{
  font-size: .98rem;
  color: var(--text-soft);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.info ul li:last-child{ border-bottom: none; }

/* Formulario dentro de .info */
.info form label{
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .3rem;
  display: block;
}
.info .form-control,
.info .form-select{
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .65rem .9rem;
  font-family: var(--font-body);
}
.info .form-control:focus,
.info .form-select:focus{
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(8,149,143,.15);
}

/* ---------- Chip (modalidad de atención, etiquetas cortas) ---------- */
.chip{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 50px;
  background: var(--bg-soft-2);
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: .88rem;
  margin: 0 .5rem .5rem 0;
}
.chip i{ color: var(--secondary); }

/* ---------- Foro (placeholder para próxima actualización) ---------- */
.foro{
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ---------- Reveal al hacer scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
/* pequeño desfasaje entre tarjetas de una misma fila */
.row > *:nth-child(1) .reveal{ transition-delay: .05s; }
.row > *:nth-child(2) .reveal{ transition-delay: .15s; }
.row > *:nth-child(3) .reveal{ transition-delay: .25s; }
.row > *:nth-child(4) .reveal{ transition-delay: .35s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---------- Botón volver arriba ---------- */
.back-to-top{
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
}
.back-to-top.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover{ background: var(--secondary-dark); }

/* ---------- Acordeón (FAQ de Consultas) ---------- */
.accordion-item{
  border: 1px solid var(--border);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 1rem;
}
.accordion-button{
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}
.accordion-button:not(.collapsed){
  background: var(--bg-soft-2);
  color: var(--secondary-dark);
  box-shadow: none;
}
.accordion-button:focus{
  box-shadow: 0 0 0 3px rgba(8,149,143,.15);
}

/* ---------- Footer ---------- */
footer{
  background: var(--text);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
footer .footer-brand{
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: .6rem;
}
footer a{
  color: #d8d5dd;
  transition: color .2s ease;
}
footer a:hover{ color: var(--primary); }
footer .footer-links li{ margin-bottom: .5rem; }
footer hr{ border-color: rgba(255,255,255,.12); margin: 2rem 0 1rem; }
footer small{ color: #b3aeb9; }

/* =========================================================
   MEDIA QUERIES — mobile primero
   ========================================================= */

/* Celular chico*/
@media (max-width: 575.98px){
  .hero{ padding: 3.5rem 0 4rem; text-align: center; }
  .hero p.lead{ margin: 0 auto 1.5rem; }
  .breathing-circle{ width: 260px; height: 260px; right: -80px; opacity: .12; }
  .section{ padding: 3rem 0; }
  .info-bio{ flex-direction: column; text-align: center; }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px){
  .hero{ padding: 4rem 0 5rem; }
  .breathing-circle{ width: 340px; height: 340px; }
  .section{ padding: 4rem 0; }
}

/* PC / escritorio */
@media (min-width: 992px){
  .hero .container{
    display: flex;
    align-items: center;
  }
}
