:root{
--bg:#faf7f2;
--white:#fff;
--text:#1f1f1f;
--muted:#666;
--accent:#c86440;
--green:#2f6b55;
--border:#e7ddd3;
--shadow:0 15px 40px rgba(0,0,0,.07);
--soft:#f4ece2;
--danger:#b3261e;
--danger-soft:#fcebea;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{scroll-behavior:smooth}

body{
font-family:Inter,sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.6;
}

.container{
max-width:1200px;
margin:auto;
padding:0 20px;
}

header{
background:white;
border-bottom:1px solid var(--border);
position:sticky;
top:0;
z-index:999;
}

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

nav{
display:flex;
gap:25px;
align-items:center;
}

nav a{
text-decoration:none;
color:var(--text);
}

.logo{
font-size:28px;
font-family:Fraunces,serif;
color:var(--accent);
}

.btn-primary{
background:var(--accent);
color:white;
padding:15px 28px;
border-radius:100px;
text-decoration:none;
display:inline-block;
font-weight:600;
border:0;
font-family:inherit;
font-size:16px;
cursor:pointer;
}

nav a.btn-primary{color:white}

.btn-secondary{
background:white;
border:1px solid var(--border);
padding:15px 28px;
border-radius:100px;
text-decoration:none;
color:var(--text);
}

.hero{
padding:100px 0;
}

.hero-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
align-items:center;
}

.hero h1{
font-size:68px;
line-height:1.05;
font-family:Fraunces,serif;
margin-bottom:20px;
}

.hero p{
font-size:20px;
color:var(--muted);
margin-bottom:25px;
}

.badge{
display:inline-block;
background:white;
padding:10px 18px;
border-radius:40px;
margin-bottom:25px;
}

.hero-buttons{
display:flex;
gap:15px;
margin-bottom:25px;
flex-wrap:wrap;
}

.trust-bar{
display:flex;
flex-wrap:wrap;
gap:12px;
}

.trust-bar div{
background:white;
padding:10px;
border-radius:40px;
}

.hero-card{
background:white;
padding:40px;
border-radius:30px;
box-shadow:var(--shadow);
}

.hero-card ul,
.service-card ul,
.pricing-card ul{
list-style:none;
margin-top:15px;
display:grid;
gap:8px;
}

.price{
font-size:54px;
font-weight:700;
color:var(--accent);
margin-bottom:15px;
}

.stats{
padding:80px 0;
background:white;
}

.stats-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
text-align:center;
}

.stats-grid h3{
font-size:42px;
color:var(--accent);
}

.section-title{
font-size:50px;
font-family:Fraunces,serif;
text-align:center;
margin-bottom:50px;
}

.diagnostico,
.services,
.steps,
.testimonials,
.professionals,
.pricing,
.faq,
.cta{
padding:100px 0;
}

.diagnostico .container{
max-width:760px;
}

.diagnostico h2{
font-family:Fraunces,serif;
font-size:42px;
line-height:1.1;
margin-bottom:10px;
}

.diagnostico > .container > p{
color:var(--muted);
margin-bottom:25px;
}

textarea,
select{
width:100%;
padding:16px;
border:1px solid var(--border);
border-radius:14px;
margin-bottom:15px;
font-size:16px;
font-family:inherit;
background:white;
}

textarea{
height:180px;
resize:none;
}

.form-note{
font-size:14px;
color:var(--muted);
margin-top:12px;
}

.services-grid,
.professional-grid,
.steps-grid,
.testimonial-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

.services-grid{
grid-template-columns:repeat(2,1fr);
}

.service-card,
.pro-card,
.testimonial,
.faq-item,
.pricing-card{
background:white;
padding:30px;
border-radius:24px;
box-shadow:var(--shadow);
}

.faq .container{max-width:820px}
.faq-item{margin-bottom:15px}
.faq-item p{color:var(--muted);margin-top:6px}

.pro-card{text-align:center}
.pro-card span{color:var(--muted);font-size:14px}

.pro-card img{
width:120px;
height:120px;
border-radius:50%;
object-fit:cover;
margin-bottom:15px;
background:var(--soft);
}

/* Si falta la foto, se muestra un círculo con la inicial */
.pro-avatar{
width:120px;
height:120px;
border-radius:50%;
margin:0 auto 15px;
background:var(--soft);
color:var(--accent);
font:700 44px Fraunces,serif;
display:flex;
align-items:center;
justify-content:center;
}

.step-number{
width:60px;
height:60px;
background:var(--accent);
color:white;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
font-size:24px;
margin-bottom:15px;
}

.pricing-card{
max-width:600px;
margin:auto;
text-align:center;
}

.pricing-card ul{justify-content:center;margin-bottom:25px}

.big-price{
font-size:72px;
font-weight:700;
color:var(--accent);
margin:20px 0;
}

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

.cta h2{
font-size:54px;
margin-bottom:25px;
font-family:Fraunces,serif;
}

footer{
padding:40px 20px 60px;
text-align:center;
font-size:14px;
color:var(--muted);
}

footer p{margin-bottom:12px}
footer a{color:inherit}
footer .sos{
background:var(--danger-soft);
border:1px solid #f2b8b5;
border-radius:16px;
padding:14px 18px;
color:var(--text);
max-width:820px;
margin:0 auto 18px;
}
footer .legal{max-width:820px;margin:0 auto 12px}

[hidden]{display:none !important}

/* ===== Asistente (chat) ===== */
.chat{background:white;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;height:600px;max-height:80vh;overflow:hidden}
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--soft)}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.chat-head small{display:block;color:var(--muted);font-size:13px}
.chat-free{margin-left:auto;font-size:12px;font-weight:600;background:#e3f0ea;color:var(--green);padding:4px 10px;border-radius:999px}
.chat-body{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:10px}
.msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:15px;white-space:pre-line;animation:pop .2s ease}
.msg.bot{background:var(--soft);border-bottom-left-radius:4px;align-self:flex-start}
.msg.user{background:var(--text);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.msg.tip{background:#fff8e6;border:1px solid #f1dfa9;align-self:flex-start}
.msg.tip b{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#8a6a12;margin-bottom:2px}
@keyframes pop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.typing{align-self:flex-start;background:var(--soft);border-radius:16px;padding:12px 14px;display:flex;gap:4px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{0%,100%{opacity:.25}50%{opacity:1}}
.options{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start;max-width:100%}
.opt{border:1.5px solid var(--accent);background:#fff;color:var(--accent);border-radius:999px;padding:8px 14px;font:500 15px Inter,sans-serif;cursor:pointer;text-align:left}
.opt:hover{background:var(--accent);color:#fff}
.opt.secondary{border-color:var(--border);color:var(--muted)}
.chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border)}
.chat-input textarea{flex:1;height:auto;min-height:46px;max-height:120px;margin:0;padding:10px 12px}
.chat-input textarea:disabled{background:#f7f3ee}
.chat-input button{flex:0 0 auto;width:46px;height:46px;border-radius:50%;border:0;background:var(--accent);color:#fff;cursor:pointer;font-size:18px}
.chat-input button:disabled{background:var(--border);cursor:default}
.summary{align-self:stretch;border:1.5px solid var(--border);border-radius:16px;padding:14px 16px;background:#fff}
.summary h4{margin-bottom:8px;font-family:Fraunces,serif;font-size:18px}
.summary dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin-bottom:12px;font-size:14px}
.summary dt{color:var(--muted)} .summary dd{word-break:break-word}
.summary .btn{display:block;width:100%;text-align:center;margin-top:8px;padding:13px 20px;border-radius:999px;font-weight:600;text-decoration:none;border:0;font-family:inherit;font-size:15px;cursor:pointer}
.summary .btn-primary{color:#fff}
.btn-dark{background:var(--text);color:#fff}
.btn-ghost{background:transparent;border:1.5px solid var(--border) !important;color:var(--text)}
.summary .fine{font-size:12px;color:var(--muted);margin-top:10px}
.crisis{align-self:stretch;background:var(--danger-soft);border:1.5px solid #f2b8b5;border-radius:16px;padding:14px 16px}
.crisis h4{margin-bottom:6px;color:var(--danger);font-size:16px}
.crisis a.call{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border-radius:12px;padding:10px 12px;margin-top:8px;text-decoration:none;font-weight:600;color:var(--text)}
.crisis a.call span{font-weight:400;color:var(--muted);font-size:13px;text-align:right}

@media(max-width:900px){

.hero-grid,
.services-grid,
.professional-grid,
.steps-grid,
.testimonial-grid,
.stats-grid{
grid-template-columns:1fr;
}

.hero{padding:60px 0}

.hero h1{
font-size:42px;
}

.price{font-size:42px}
.big-price{font-size:56px}

.section-title{
font-size:34px;
}

.diagnostico h2{font-size:32px}

.cta h2{
font-size:38px;
}

.diagnostico,
.services,
.steps,
.testimonials,
.professionals,
.pricing,
.faq,
.cta{
padding:60px 0;
}

nav{
display:none;
}

.chat{height:560px}

}
