/* ==========================================================================
   Inés Cerezo Goiz — Terapia Transgeneracional
   Paleta e identidad tomadas del manual de marca real (manual.pdf):
   Turquesa #00a199 · Lavanda #a37daa · Gris #58595b
   ========================================================================== */

:root{
  --turquoise:       #00a199;
  --turquoise-dark:  #027b74;
  --turquoise-light: #6cc9c2;
  --turquoise-pale:  #e6f5f4;

  --lavender:        #a37daa;
  --lavender-dark:   #815f88;
  --lavender-light:  #cdaed3;
  --lavender-pale:   #f4ecf5;

  --gray:            #58595b;
  --gray-light:      #8c8d8f;
  --gray-pale:       #e9e8e6;

  --cream:           #faf8f5;
  --white:           #ffffff;
  --text:            #2b2b2c;

  --font-display: 'Poppins', sans-serif;
  --font-script:  'Pacifico', cursive;
  --font-eyebrow: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  --shadow-sm: 0 2px 10px rgba(43,43,44,.06);
  --shadow-md: 0 10px 30px rgba(43,43,44,.10);
  --shadow-lg: 0 20px 50px rgba(43,43,44,.14);

  --radius: 18px;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 600;
}

p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-block;
  font-family: var(--font-eyebrow);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 500;
  color: var(--lavender-dark);
  margin-bottom: .9em;
}

.section{
  padding: 96px 0;
}
.section--tight{ padding: 64px 0; }
.section--pale{ background: var(--white); }

.section-head{
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p{ color: var(--gray); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--turquoise);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover{
  background: var(--turquoise-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--ghost{
  background: transparent;
  border-color: rgba(88,89,91,.25);
  color: var(--text);
}
.btn--ghost:hover{
  border-color: var(--turquoise);
  color: var(--turquoise-dark);
}

.btn--on-dark{
  background: var(--white);
  color: var(--turquoise-dark);
}
.btn--on-dark:hover{
  background: var(--turquoise-pale);
  transform: translateY(-2px);
}

.btn--sm{ padding: 10px 22px; font-size: .9rem; }
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Vista previa protegida ---------- */
body.is-locked .navbar,
body.is-locked main,
body.is-locked .footer,
body.is-locked .whatsapp-float{
  display: none;
}

.site-gate{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(600px 420px at 85% 5%, var(--turquoise-pale) 0%, transparent 70%),
    radial-gradient(560px 420px at 8% 95%, var(--lavender-pale) 0%, transparent 70%),
    var(--cream);
}
body.is-locked .site-gate{ display: flex; }

.site-gate__box{
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}
.site-gate__logo{ height: 40px; margin: 0 auto 1.5rem; }
.site-gate__box h1{ font-size: 1.3rem; margin-bottom: .5rem; }
.site-gate__box p{ color: var(--gray); font-size: .92rem; }
.site-gate__box form{
  display: flex;
  gap: .6rem;
  margin-top: 1.3rem;
}
.site-gate__box input{
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--gray-pale);
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
}
.site-gate__box input:focus{ outline: none; border-color: var(--turquoise); background: var(--white); }
.site-gate__error{
  color: #c0392b;
  font-size: .85rem;
  margin-top: 1rem;
}
.site-gate__box.is-shaking{ animation: gate-shake .4s ease; }
@keyframes gate-shake{
  0%, 100%{ transform: translateX(0); }
  25%{ transform: translateX(-8px); }
  75%{ transform: translateX(8px); }
}

/* ---------- Navbar ---------- */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(250,248,245,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(88,89,91,.08);
  transition: box-shadow .25s ease;
}
.navbar.is-scrolled{ box-shadow: var(--shadow-sm); }

.navbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.navbar__logo{ display: flex; align-items: center; }
.navbar__logo img{ height: 40px; width: auto; }

.navbar__links{
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.navbar__links a:not(.btn){
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.navbar__links a:not(.btn)::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--turquoise);
  transition: width .2s ease;
}
.navbar__links a:not(.btn):hover::after{ width: 100%; }

.navbar__actions{ display: flex; align-items: center; gap: 1rem; }
.navbar__admin{
  font-size: .82rem;
  color: var(--gray-light);
  margin-left: .25rem;
}
.navbar__admin:hover{ color: var(--gray); }

.navbar__toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.navbar__toggle span{
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.navbar__toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2){ opacity: 0; }
.navbar__toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 168px 0 100px;
  overflow: hidden;
}
.hero__bg{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 420px at 85% 5%, var(--turquoise-pale) 0%, transparent 70%),
    radial-gradient(560px 420px at 8% 95%, var(--lavender-pale) 0%, transparent 70%);
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero__title{
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -.01em;
}
.hero__title .script{
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--turquoise);
  font-size: 1.15em;
  line-height: 1;
  margin-bottom: .18em;
}
.hero__subtitle{
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 46ch;
}
.hero__actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero__trust{
  display: flex;
  gap: 1.75rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
}
.hero__trust div{ text-align: left; }
.hero__trust strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--turquoise-dark);
}
.hero__trust span{
  font-size: .82rem;
  color: var(--gray-light);
}

.hero__art{
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art svg{ width: 100%; height: 100%; }

/* ---------- Sobre mí ---------- */
.about{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}
.about__photo{
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--turquoise-pale), var(--lavender-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.about__photo svg{ width: 34%; opacity: .55; color: var(--turquoise-dark); }
.about__photo span{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.85);
  color: var(--gray);
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.about__badge{
  position: absolute;
  top: 18px; left: 18px;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-script);
  color: var(--lavender-dark);
  font-size: 1.1rem;
}
.about__body h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about__body p{ color: var(--gray); }
.about__list{
  margin-top: 1.5rem;
  display: grid;
  gap: .85rem;
}
.about__list li{
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--text);
}
.about__list svg{
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--turquoise);
}

/* ---------- Servicios ---------- */
.services__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(88,89,91,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card__icon{
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.service-card:nth-child(1) .service-card__icon{ background: var(--turquoise-pale); color: var(--turquoise-dark); }
.service-card:nth-child(2) .service-card__icon{ background: var(--lavender-pale); color: var(--lavender-dark); }
.service-card:nth-child(3) .service-card__icon{ background: var(--gray-pale); color: var(--gray); }
.service-card__icon svg{ width: 28px; height: 28px; }
.service-card h3{ font-size: 1.15rem; }
.service-card p{ color: var(--gray); font-size: .95rem; margin-bottom: 0; }
.service-card__tag{
  display: inline-block;
  margin-top: 1rem;
  font-size: .72rem;
  font-family: var(--font-eyebrow);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--turquoise-dark);
}

/* ---------- Proceso (pasos) ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: step;
  position: relative;
}
.steps::before{
  content: '';
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed var(--lavender-light);
  z-index: 0;
}
.step{
  position: relative;
  z-index: 1;
  text-align: center;
}
.step__num{
  width: 44px; height: 44px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--white);
}
.step:nth-child(even) .step__num{ background: var(--lavender); }
.step h3{ font-size: 1.05rem; margin-bottom: .4rem; }
.step p{ color: var(--gray); font-size: .88rem; margin: 0; }

/* ---------- CTA banda ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--turquoise-dark), var(--turquoise));
  color: var(--white);
  text-align: center;
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -220px; right: -120px;
}
.cta-band h2{ color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p{ color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Contacto ---------- */
.contact__grid{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3.5rem;
}
.contact-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(88,89,91,.06);
}
.contact-methods{ display: grid; gap: 1rem; margin-bottom: .5rem; }
.contact-method{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--cream);
  transition: background .2s ease;
}
.contact-method:hover{ background: var(--turquoise-pale); }
.contact-method__icon{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--turquoise-dark);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.contact-method__icon svg{ width: 20px; height: 20px; }
.contact-method strong{ display: block; font-size: .95rem; }
.contact-method span{ font-size: .85rem; color: var(--gray-light); }

.contact-note{
  margin-top: 1.5rem;
  font-size: .82rem;
  color: var(--gray-light);
  border-top: 1px solid var(--gray-pale);
  padding-top: 1.2rem;
}
.contact-note a{ color: var(--turquoise-dark); border-bottom: 1px dotted currentColor; }

.form-field{ margin-bottom: 1.15rem; }
.form-field label{
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-field input,
.form-field textarea{
  width: 100%;
  border: 1.5px solid var(--gray-pale);
  background: var(--cream);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--turquoise);
  background: var(--white);
}
.form-field textarea{ resize: vertical; min-height: 110px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.form-status{
  display: none;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--turquoise-pale);
  color: var(--turquoise-dark);
  font-size: .9rem;
}
.form-status.is-visible{ display: flex; }
.form-status svg{ width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Aviso de privacidad ---------- */
.privacy{
  background: var(--white);
  border-top: 1px solid var(--gray-pale);
  border-bottom: 1px solid var(--gray-pale);
}
.privacy__box{
  max-width: 820px;
  margin: 0 auto;
  font-size: .9rem;
  color: var(--gray);
}
.privacy__box h2{ font-size: 1.3rem; }
.privacy__box p{ margin-bottom: 1em; }

/* ---------- Footer ---------- */
.footer{
  background: #232324;
  color: rgba(255,255,255,.72);
  padding: 64px 0 28px;
}
.footer__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo img{ height: 34px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .92; }
.footer__grid p{ font-size: .9rem; color: rgba(255,255,255,.55); max-width: 32ch; }
.footer h4{
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-eyebrow);
  margin-bottom: 1rem;
}
.footer ul{ display: grid; gap: .65rem; }
.footer a{ font-size: .9rem; color: rgba(255,255,255,.62); transition: color .2s ease; }
.footer a:hover{ color: var(--turquoise-light); }
.footer__bottom{
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: var(--white);
  padding: 14px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  font-weight: 600;
  font-size: .88rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover{ transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 32px rgba(37,211,102,.5); }
.whatsapp-float svg{ width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float__pulse{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse{
  0%{ opacity: .55; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.6); }
}
.whatsapp-float__label{ white-space: nowrap; }

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

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--turquoise);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 999;
}
.skip-link:focus{ left: 0; }

/* ==========================================================================
   Responsivo — mobile first (los estilos base ya son fluidos;
   aquí se ajustan los layouts de escritorio hacia abajo)
   ========================================================================== */
@media (max-width: 960px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__art{ order: -1; max-width: 320px; margin: 0 auto; }
  .about{ grid-template-columns: 1fr; }
  .about__photo{ max-width: 340px; margin: 0 auto; }
  .services__grid{ grid-template-columns: 1fr 1fr; }
  .steps{ grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 1.75rem; }
  .steps::before{ display: none; }
  .step{ text-align: left; display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; }
  .step__num{ grid-row: span 2; margin: 0; }
  .contact__grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .navbar__links{
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 24px 2rem;
    gap: 1.1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .navbar__links.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar__links .btn{ width: 100%; justify-content: center; }
  .navbar__toggle{ display: flex; }
  .navbar__admin{ margin-left: 0; font-size: .85rem; }

  .hero{ padding: 132px 0 72px; }
  .hero__trust{ gap: 1.4rem; }
  .services__grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; text-align: left; }
  .footer__bottom{ flex-direction: column; align-items: flex-start; }
  .form-row{ grid-template-columns: 1fr; }
  .whatsapp-float__label{ display: none; }
  .whatsapp-float{ padding: 14px; }
}

@media (max-width: 420px){
  .container{ padding: 0 18px; }
  .section{ padding: 72px 0; }
}

/* ---------- Hilos del hero (animación de trazo) ---------- */
.thread{
  stroke-dasharray: 1;
  animation: thread-draw 2.6s ease-out var(--d, 0s) both;
}
@keyframes thread-draw{
  from{ stroke-dashoffset: 1; }
  to{ stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce){
  .thread{ animation: none; }
}
