/*
Theme Name: Jesús Valdés - Terapia Gestalt
Theme URI: https://jesusvaldes.es
Author: Jesús Valdés
Description: Tema personalizado para el sitio de acompañamiento terapéutico de Jesús Valdés (Home, Sobre mí, Cómo trabajo, Servicios, Formación y Contacto).
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jesusvaldes
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Catamaran:wght@300;400;500;600;700&display=swap');

:root{
  --bg:#FFFBF5;
  --nav-bg:#FCEFDD;
  --ink:#2C1A0E;
  --ink-soft:#5B4636;

  --terracotta:#FF7A5C;
  --terracotta-soft:#FFE1D6;
  --sage:#2FB8A6;
  --sage-soft:#D6F3EE;
  --stone:#8B7FD1;
  --stone-soft:#EAE5FB;
  --clay:#F4A93B;
  --clay-soft:#FDECC8;

  --whatsapp:#25D366;
  --whatsapp-dark:#1DA851;

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

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Catamaran',sans-serif;
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,.display{
  font-family:'Lora',serif;
  color:var(--ink);
  margin:0 0 .5em 0;
  font-weight:600;
}

p{margin:0 0 1em 0;}

a{color:inherit;text-decoration:none;}

img{max-width:100%;display:block;}

.wrap{
  max-width:1080px;
  margin:0 auto;
  padding:0 28px;
}

/* ---------- NAV ---------- */
header.site-nav{
  background:var(--nav-bg);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(44,26,14,0.08);
}
.nav-inner{
  max-width:1080px;
  margin:0 auto;
  padding:18px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}
.logo{
  font-family:'Lora',serif;
  font-size:1.3rem;
  letter-spacing:.5px;
  color:var(--ink);
  font-weight:600;
}
nav.tabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
nav.tabs a{
  font-family:'Catamaran',sans-serif;
  font-size:.92rem;
  letter-spacing:.3px;
  padding:9px 16px;
  border-radius:999px;
  color:var(--ink-soft);
  font-weight:600;
  transition:background .2s ease, color .2s ease;
}
nav.tabs a:hover{background:rgba(44,26,14,0.08);}
nav.tabs a.active{
  background:var(--ink);
  color:var(--bg);
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:56vh;
  display:flex;
  align-items:flex-end;
  background-size:cover;
  background-position:center;
  color:#fff;
}
.hero.short{min-height:34vh;}
.hero::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(44,26,14,0.15) 0%, rgba(44,26,14,0.65) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  padding:56px 28px 48px;
  max-width:1080px;
  margin:0 auto;
  width:100%;
}
.hero h1{
  color:#fff;
  font-size:clamp(1.9rem, 4vw, 2.9rem);
  max-width:820px;
  line-height:1.25;
}
.hero .subtitle{
  font-style:italic;
  font-family:'Lora',serif;
  font-size:1.15rem;
  color:#F3E9DC;
  max-width:620px;
  margin-top:.4em;
}
.eyebrow{
  display:inline-block;
  letter-spacing:1.5px;
  font-size:.8rem;
  font-weight:700;
  background:rgba(255,255,255,0.18);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}

/* ---------- SECTIONS ---------- */
section{
  padding:64px 0;
}
section.tight{padding:40px 0;}
.section-title{
  font-size:clamp(1.5rem,2.6vw,2rem);
  margin-bottom:.3em;
}
.section-lead{
  color:var(--ink-soft);
  max-width:640px;
  margin-bottom:2em;
  font-size:1.05rem;
}

/* ---------- CARDS ---------- */
.card-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}
.card-grid.cols-1{grid-template-columns:1fr;}
.card-grid.cols-3{grid-template-columns:repeat(3,1fr);}

.card{
  border-radius:var(--radius);
  padding:30px 28px;
  box-shadow:var(--shadow);
  background:#fff;
}
.card h3{
  font-size:1.5rem;
  line-height:1.3;
  margin-bottom:.4em;
}
.card p{
  color:var(--ink-soft);
  margin-bottom:0;
  text-align:justify;
  font-size:1.12rem;
  line-height:1.65;
}
.card .tag{
  display:inline-block;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.6px;
  padding:5px 13px;
  border-radius:999px;
  margin-bottom:14px;
}

.card.terracotta{background:var(--terracotta-soft);}
.card.terracotta .tag{background:var(--terracotta);color:#fff;}
.card.sage{background:var(--sage-soft);}
.card.sage .tag{background:var(--sage);color:#fff;}
.card.stone{background:var(--stone-soft);}
.card.stone .tag{background:var(--stone);color:#fff;}
.card.clay{background:var(--clay-soft);}
.card.clay .tag{background:var(--clay);color:#fff;}

.card.dark{
  background:var(--ink);
  color:#F3E9DC;
}
.card.dark h3, .card.dark p{color:#F3E9DC;}

.card.quote{
  background:#fff;
  border:1px solid rgba(44,26,14,0.12);
}
.card.quote p{
  font-family:'Lora',serif;
  font-style:italic;
  font-size:1.25rem;
  line-height:1.6;
  color:var(--ink);
}

/* situation cards linking to services */
.situation-card{
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
  display:block;
}
.situation-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(44,26,14,0.14);
}
.situation-card h3{font-size:1.3rem;line-height:1.3;margin-bottom:.4em;}
.situation-card p{color:var(--ink-soft);margin-bottom:.6em;font-size:1.08rem;}
.situation-card .goto{
  font-size:.88rem;
  font-weight:700;
  letter-spacing:.3px;
}

/* ---------- QUOTE / PROMISE BAND ---------- */
.band{
  background:var(--ink);
  color:#F3E9DC;
  padding:52px 0;
  text-align:center;
}
.band h2{color:#F3E9DC;font-size:clamp(1.5rem,2.8vw,2.1rem);max-width:720px;margin:0 auto .3em;}
.band p{color:#D9C9B6;max-width:560px;margin:0 auto 1.6em;font-size:1.1rem;}

/* ---------- CTA BUTTON ---------- */
.btn-whatsapp{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--whatsapp);
  color:#fff;
  font-weight:700;
  letter-spacing:.3px;
  padding:15px 30px;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(37,211,102,0.35);
  transition:background .2s ease, transform .18s ease;
}
.btn-whatsapp:hover{background:var(--whatsapp-dark);transform:translateY(-2px);}
.btn-whatsapp svg{width:20px;height:20px;fill:#fff;}

.cta-center{text-align:center;}

/* floating whatsapp button */
.float-whatsapp{
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:80;
  width:58px;height:58px;
  border-radius:50%;
  background:var(--whatsapp);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px rgba(37,211,102,0.45);
  transition:transform .18s ease;
}
.float-whatsapp:hover{transform:scale(1.08);}
.float-whatsapp svg{width:28px;height:28px;fill:#fff;}

/* ---------- CONTACT INTRO / PHOTO ---------- */
.contact-intro{
  display:flex;
  align-items:center;
  gap:32px;
  margin-bottom:2.6em;
}
.photo-frame{
  flex:0 0 auto;
  width:150px;
  height:150px;
  border-radius:50%;
  padding:5px;
  background:linear-gradient(145deg, #FFFFFF 0%, #F1E6D8 60%, #E7D8C4 100%);
  box-shadow:
    9px 9px 18px rgba(44,26,14,0.16),
    -7px -7px 16px rgba(255,255,255,0.85),
    inset 1px 1px 2px rgba(255,255,255,0.6);
}
.photo-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
  box-shadow:
    inset 2px 2px 4px rgba(44,26,14,0.35),
    inset -2px -2px 4px rgba(255,255,255,0.55),
    0 0 0 1px rgba(44,26,14,0.06);
}
.photo-frame.portrait{
  width:200px;
  height:280px;
  max-width:100%;
  border-radius:20px;
  padding:6px;
}
.photo-frame.portrait img{
  border-radius:17px;
  box-shadow:
    inset 3px 3px 6px rgba(44,26,14,0.35),
    inset -3px -3px 6px rgba(255,255,255,0.55),
    0 0 0 1px rgba(44,26,14,0.06);
}
.contact-intro .intro-text h2{margin-bottom:.25em;}
.contact-intro .intro-text p{color:var(--ink-soft);margin:0;font-size:1.05rem;max-width:420px;}
@media (max-width:600px){
  .contact-intro{flex-direction:column;text-align:center;gap:18px;}
  .contact-intro .intro-text p{max-width:100%;}
}
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin:2.4em 0;
}
.step{
  text-align:center;
  padding:26px 18px;
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
}
.step .num{
  font-family:'Lora',serif;
  font-size:1.8rem;
  color:var(--terracotta);
  margin-bottom:.2em;
}
.step .icon{
  width:46px;
  height:46px;
  margin:0 auto 14px;
  color:var(--terracotta);
}
.step .icon svg{width:100%;height:100%;}

/* ---------- FOOTER ---------- */
footer{
  padding:36px 0 60px;
  text-align:center;
  color:var(--ink-soft);
  font-size:.9rem;
}
footer .foot-logo{
  font-family:'Lora',serif;
  color:var(--ink);
  font-size:1.1rem;
  margin-bottom:.4em;
  display:block;
}
.footer-social{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-top:16px;
}
.footer-social a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:var(--nav-bg);
  color:var(--ink-soft);
  transition:background .2s ease, color .2s ease, transform .18s ease;
}
.footer-social a:hover{
  background:var(--terracotta);
  color:#fff;
  transform:translateY(-2px);
}
.footer-social svg{width:19px;height:19px;}

/* ---------- CHIP LIST (home body) ---------- */
.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:1.6em 0;
}
.chip{
  background:var(--nav-bg);
  color:var(--ink-soft);
  padding:8px 15px;
  border-radius:999px;
  font-size:.92rem;
  font-weight:600;
  border:1px solid rgba(44,26,14,0.1);
}

/* ---------- FORMACIÓN TIMELINE (also reused across all pages) ---------- */
.timeline{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.timeline-item{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:22px;
  align-items:start;
  padding:26px 28px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  background:#fff;
  scroll-margin-top:110px;
}
a.timeline-item{
  transition:transform .18s ease, box-shadow .18s ease;
}
a.timeline-item:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(44,26,14,0.14);
}
.timeline-item .role{
  font-family:'Lora',serif;
  font-weight:600;
  font-size:1.02rem;
  color:var(--terracotta);
}
.timeline-item h3{font-size:1.35rem;margin-bottom:.3em;}
.timeline-item p{color:var(--ink-soft);font-size:1.08rem;margin-bottom:0;text-align:justify;}
.timeline-item .goto{
  display:inline-block;
  margin-top:.7em;
  font-size:.88rem;
  font-weight:700;
  color:var(--terracotta);
}
@media (max-width:600px){
  .timeline-item{grid-template-columns:1fr;}
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px){
  .card-grid{grid-template-columns:1fr;}
  .card-grid.cols-3{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
  nav.tabs{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:4px;}
  .nav-inner{flex-direction:column;align-items:flex-start;}
}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important;}
}
