
/* ============================================================
   ECOsistema 5C — Página comercial pública
   Sistema de diseño "Ejecutivo" · claro · Fraunces + IBM Plex Sans
   ============================================================ */
:root{
  --bg:#F2F5F9; --surface:#FFFFFF; --surface-2:#F7F9FC; --surface-3:#EDF1F7;
  --line:#DDE4EE; --line-2:#C9D3E2;
  --ink:#132437; --ink-2:#43556C; --muted:#6E7E93;
  --navy:#0A2540; --navy-2:#153A5F;
  --gold:#B8860B; --gold-soft:#F5EBD3;
  --c1:#B0330F; --c1-soft:#F9E9E3; --c1-line:#E5C4B6;
  --c2:#A67C00; --c2-strong:#D09C00; --c2-soft:#F8F0D8; --c2-line:#E6D6A3;
  --c3:#0E8A62; --c3-soft:#E1F3EC; --c3-line:#B4DECD;
  --c4:#245F9E; --c4-soft:#E4EDF7; --c4-line:#BBD0E8;
  --c5:#7A48A8; --c5-strong:#9C5BD1; --c5-soft:#F0E8F8; --c5-line:#D6C4EA;
  --wa:#25D366;
  --ok:#1B7F4D; --ok-soft:#E2F3E9;
  --risk:#C05621; --risk-soft:#FAEADF;
  --crit:#B3374B; --crit-soft:#F9E5E8;
  --r:14px; --rs:9px;
  --shadow:0 1px 2px rgba(10,37,64,.05), 0 4px 16px rgba(10,37,64,.06);
  --shadow-lg:0 4px 12px rgba(10,37,64,.08), 0 16px 48px rgba(10,37,64,.14);
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body); background:var(--bg); color:var(--ink);
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img,svg{max-width:100%}
a{text-decoration:none; color:var(--c4)}
button{font-family:inherit; cursor:pointer}
::selection{background:var(--gold-soft)}
.wrap{max-width:1160px; margin:0 auto; padding:0 28px}
@media(max-width:640px){.wrap{padding:0 20px}}

/* ---------- Reveal on scroll ---------- */
.reveal{opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1)}
.reveal.in{opacity:1; transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1; transform:none; transition:none}
  html{scroll-behavior:auto}
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px) saturate(160%); -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--line);
}
.nav-in{max-width:1160px; margin:0 auto; padding:0 28px; height:66px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.logo{font-family:var(--font-display); font-size:20px; font-weight:700; color:var(--navy); letter-spacing:.01em; white-space:nowrap}
.logo .g{color:var(--gold); font-style:italic}
.nav-links{display:flex; align-items:center; gap:2px; list-style:none}
.nav-links a{
  color:var(--ink-2); font-size:13.5px; font-weight:500; padding:7px 13px; border-radius:20px; transition:.18s;
}
.nav-links a:hover{color:var(--navy); background:var(--surface-3)}
.nav-links a.on{color:var(--navy); background:var(--surface-3); font-weight:600}
.nav-cta{
  display:inline-flex; align-items:center; gap:7px; background:var(--navy); color:#fff!important;
  font-size:13.5px; font-weight:600; padding:9px 18px; border-radius:8px; white-space:nowrap; transition:.18s;
}
.nav-cta:hover{background:var(--navy-2); transform:translateY(-1px); box-shadow:var(--shadow)}
@media(max-width:940px){.nav-links{display:none}}
@media(max-width:640px){.nav-in{padding:0 20px; height:60px}}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(180deg,#FFFFFF 0%,var(--bg) 100%); border-bottom:1px solid var(--line)}
.hero-grid{
  max-width:1160px; margin:0 auto; padding:76px 28px 84px;
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px; background:var(--gold-soft); color:#7A5A08;
  border:1px solid #E9D9AC; font-size:11.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  padding:6px 14px; border-radius:20px; margin-bottom:26px;
}
.hero-badge::before{content:''; width:7px; height:7px; border-radius:50%; background:var(--gold)}
.hero h1{
  font-family:var(--font-display); font-weight:600; color:var(--navy);
  font-size:clamp(34px,4.6vw,54px); line-height:1.08; letter-spacing:-.015em; margin-bottom:22px;
}
.hero h1 em{font-style:italic; color:var(--gold)}
.hero-sub{color:var(--ink-2); font-size:17.5px; line-height:1.75; max-width:520px; margin-bottom:34px}
.hero-btns{display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius:10px; padding:14px 26px; font-size:15px; font-weight:600;
  border:1px solid transparent; transition:.2s; text-align:center;
}
.btn-wa{background:var(--navy); color:#fff}
.btn-wa:hover{background:var(--navy-2); transform:translateY(-2px); box-shadow:var(--shadow-lg)}
.btn-wa svg{width:19px; height:19px; flex-shrink:0}
.btn-ghost{background:var(--surface); border-color:var(--line-2); color:var(--navy)}
.btn-ghost:hover{border-color:var(--navy-2); transform:translateY(-2px); box-shadow:var(--shadow)}
.hero-stats{display:flex; gap:26px; flex-wrap:wrap}
.hstat{border-left:2px solid var(--line-2); padding-left:16px; min-width:0}
.hstat .n{font-family:var(--font-display); font-size:30px; font-weight:600; color:var(--navy); line-height:1.15}
.hstat .l{font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-top:4px; font-weight:600}
.hero-vis{display:flex; flex-direction:column; align-items:center; gap:10px}
.eco-svg{width:100%; max-width:520px; height:auto; display:block}
.eco-hint{font-size:12.5px; color:var(--muted)}
.ringG{cursor:pointer}
.ringG .ring-main{transition:stroke-width .25s, opacity .25s}
.ringG .ring-halo{opacity:0; transition:opacity .25s}
.ringG:hover .ring-main{stroke-width:2.6}
.ringG:hover .ring-halo{opacity:1}
.ringG .rlbl{transition:.25s}
.ringG:hover .rlbl{font-weight:700}
.core-g{cursor:pointer}
.core-pulse{transform-origin:260px 260px; animation:corePulse 3.2s ease-in-out infinite}
@keyframes corePulse{0%,100%{transform:scale(1); opacity:.55}50%{transform:scale(1.12); opacity:.2}}
@media(prefers-reduced-motion:reduce){.core-pulse{animation:none}}
@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr; padding:56px 24px 64px; text-align:center; gap:44px}
  .hero-sub{margin-left:auto; margin-right:auto}
  .hero-btns{justify-content:center}
  .hero-btns .btn{flex:1 1 240px}
  .hero-stats{justify-content:center}
  .hstat{text-align:left}
  .eco-svg{max-width:420px}
}

/* ---------- Section base ---------- */
.section{padding:96px 0}
.section.alt{background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.sec-lbl{
  display:inline-flex; align-items:center; gap:10px; font-size:11.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:.16em; color:var(--gold); margin-bottom:16px;
}
.sec-lbl::before{content:''; width:22px; height:2px; background:currentColor; border-radius:2px}
.sec-h{
  font-family:var(--font-display); font-weight:600; color:var(--navy);
  font-size:clamp(27px,3.4vw,38px); line-height:1.15; letter-spacing:-.01em; margin-bottom:14px;
}
.sec-h em{font-style:italic; color:var(--gold)}
.sec-sub{color:var(--ink-2); font-size:16.5px; line-height:1.75; max-width:640px; margin-bottom:52px}
@media(max-width:640px){.section{padding:68px 0}.sec-sub{margin-bottom:38px}}

/* ---------- Problema ---------- */
.prob-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.prob{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:30px 28px; box-shadow:var(--shadow); transition:.25s; position:relative; overflow:hidden;
}
.prob::before{content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--pa)}
.prob:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg)}
.prob .num{
  font-family:var(--font-display); font-size:38px; font-weight:600; color:var(--pa); line-height:1; margin-bottom:14px;
}
.prob h3{font-family:var(--font-display); font-size:19px; font-weight:600; color:var(--navy); margin-bottom:9px}
.prob p{font-size:14.5px; color:var(--ink-2); line-height:1.7}
.prob p strong{color:var(--ink)}
@media(max-width:900px){.prob-grid{grid-template-columns:1fr}}

/* ---------- Capas (tabs) ---------- */
.tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:44px}
.tab{
  display:inline-flex; align-items:center; gap:9px; padding:10px 20px; border-radius:30px;
  border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2);
  font-size:13.5px; font-weight:600; transition:.2s;
}
.tab .dot{width:9px; height:9px; border-radius:50%; background:var(--tc); flex-shrink:0}
.tab:hover{border-color:var(--tc); color:var(--tc)}
.tab.on{background:var(--tc); border-color:var(--tc); color:#fff; box-shadow:var(--shadow)}
.tab.on .dot{background:rgba(255,255,255,.55)}
.panel{display:none}
.panel.on{display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:start; animation:panelIn .4s ease}
@keyframes panelIn{from{opacity:0; transform:translateY(12px)}to{opacity:1; transform:none}}
.capa-n{font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.16em; color:var(--pc); margin-bottom:10px}
.capa-h{font-family:var(--font-display); font-size:clamp(26px,3vw,34px); font-weight:600; color:var(--navy); margin-bottom:6px}
.capa-sub{font-family:var(--font-display); font-style:italic; color:var(--pc); font-size:17px; font-weight:600; margin-bottom:18px}
.capa-desc{color:var(--ink-2); line-height:1.8; font-size:15.5px; margin-bottom:32px}
.kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.kpi{
  background:var(--pcs); border:1px solid var(--pcl); border-radius:var(--rs);
  padding:18px 12px; text-align:center;
}
.kpi-v{font-family:var(--font-display); font-size:23px; font-weight:600; color:var(--pc); line-height:1.2}
.kpi-k{font-size:11px; color:var(--ink-2); margin-top:6px; text-transform:uppercase; letter-spacing:.06em; font-weight:600}
.tools{display:flex; flex-direction:column; gap:16px}
.tool{
  background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--pc);
  border-radius:var(--rs); padding:24px 26px; box-shadow:var(--shadow); transition:.22s;
}
.tool:hover{transform:translateX(5px); box-shadow:var(--shadow-lg)}
.tool-name{display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-weight:700; font-size:16px; color:var(--navy); margin-bottom:7px}
.tool-tag{
  font-size:10.5px; font-weight:700; padding:3px 10px; border-radius:12px;
  background:var(--pcs); color:var(--pc); text-transform:uppercase; letter-spacing:.06em; border:1px solid var(--pcl);
}
.tool-desc{font-size:14px; color:var(--ink-2); line-height:1.7; margin-bottom:14px}
.tgs{display:flex; flex-wrap:wrap; gap:6px}
.tg{
  font-size:12px; padding:4px 11px; border-radius:14px;
  background:var(--surface-2); color:var(--ink-2); border:1px solid var(--line);
}
@media(max-width:980px){.panel.on{grid-template-columns:1fr}}
@media(max-width:520px){.kpis{grid-template-columns:1fr 1fr}}

/* ---------- DiagnóstICO ---------- */
#diagnostico{background:linear-gradient(160deg,#FFFFFF 0%,var(--gold-soft) 130%)}
.dx-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center}
.dx-cards{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:34px}
.dxc{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--rs);
  padding:20px; display:flex; align-items:flex-start; gap:13px; box-shadow:var(--shadow); transition:.22s;
}
.dxc:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
.dxc .ic{
  width:40px; height:40px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-size:19px; background:var(--gold-soft); border:1px solid #E9D9AC;
}
.dxc .t{font-weight:700; font-size:14.5px; color:var(--navy); margin-bottom:4px}
.dxc .d{font-size:13px; color:var(--ink-2); line-height:1.6}
.dx-vis{display:flex; align-items:center; justify-content:center}
.dx-rings{position:relative; width:280px; height:280px; display:flex; align-items:center; justify-content:center}
.dring{position:absolute; border-radius:50%; border:1px solid var(--gold); opacity:.35}
.dring.a{animation:dringPulse 3.4s ease-in-out infinite}
.dring.b{animation:dringPulse 3.4s ease-in-out .8s infinite}
.dring.c{animation:dringPulse 3.4s ease-in-out 1.6s infinite}
@keyframes dringPulse{0%,100%{transform:scale(1); opacity:.35}50%{transform:scale(1.04); opacity:.6}}
@media(prefers-reduced-motion:reduce){.dring{animation:none!important}}
.dx-core{
  width:132px; height:132px; border-radius:50%; background:var(--navy);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  box-shadow:0 18px 50px rgba(10,37,64,.3); z-index:2; text-align:center;
}
.dx-core .e{font-size:30px; line-height:1}
.dx-core .lb{font-family:var(--font-display); font-style:italic; color:var(--gold); font-size:14px; font-weight:600}
.dx-core .lb2{font-size:9px; color:#9FB4CC; text-transform:uppercase; letter-spacing:.14em; font-weight:600}
@media(max-width:980px){
  .dx-grid{grid-template-columns:1fr; gap:44px}
  .dx-vis{order:-1}
}
@media(max-width:560px){.dx-cards{grid-template-columns:1fr}}

/* ---------- Viaje ---------- */
.journey{display:grid; grid-template-columns:repeat(5,1fr); gap:0; position:relative}
.journey::before{
  content:''; position:absolute; top:44px; left:10%; right:10%; height:2px; z-index:0; border-radius:2px;
  background:linear-gradient(90deg,var(--c5),var(--c1),var(--c2),var(--c3),var(--c4)); opacity:.4;
}
.jstep{display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 12px; position:relative; z-index:1}
.jicon{
  width:88px; height:88px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:30px; margin-bottom:20px; background:var(--surface); border:2px solid var(--sc);
  box-shadow:var(--shadow); transition:transform .25s;
}
.jstep:hover .jicon{transform:translateY(-6px)}
.jnum{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.14em; color:var(--sc); margin-bottom:7px}
.jttl{font-family:var(--font-display); font-size:17px; font-weight:600; color:var(--navy); margin-bottom:8px}
.jdesc{font-size:13px; color:var(--ink-2); line-height:1.65}
@media(max-width:980px){
  .journey{grid-template-columns:1fr 1fr; gap:34px}
  .journey::before{display:none}
}
@media(max-width:560px){.journey{grid-template-columns:1fr}}

/* ---------- Roadmap ---------- */
.phases{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.phase{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:26px 24px; position:relative; overflow:hidden; box-shadow:var(--shadow); transition:.25s;
}
.phase::before{content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--phc)}
.phase:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg)}
.ph-n{font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.14em; color:var(--phc); margin-bottom:10px}
.ph-t{font-family:var(--font-display); font-size:22px; font-weight:600; color:var(--navy); margin-bottom:3px}
.ph-sub{font-size:13px; color:var(--muted); margin-bottom:20px; font-weight:500}
.ph-items{display:flex; flex-direction:column; gap:10px}
.ph-item{display:flex; align-items:flex-start; gap:9px; font-size:13.5px; color:var(--ink-2); line-height:1.5}
.ph-item::before{content:'→'; color:var(--phc); font-weight:700; flex-shrink:0}
@media(max-width:1040px){.phases{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.phases{grid-template-columns:1fr}}

/* ---------- ROI ---------- */
.roi-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:16px}
.roi{
  background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--rc);
  border-radius:var(--r); padding:26px 18px; text-align:center; box-shadow:var(--shadow); transition:.25s;
}
.roi:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg)}
.roi .cap{
  display:inline-block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.1em;
  color:var(--rc); background:var(--rcs); border:1px solid var(--rcl); padding:3px 11px; border-radius:12px; margin-bottom:16px;
}
.roi .m{font-family:var(--font-display); font-size:30px; font-weight:600; color:var(--rc); margin-bottom:8px; line-height:1}
.roi .d{font-size:13px; color:var(--ink-2); line-height:1.6}
@media(max-width:1040px){.roi-grid{grid-template-columns:repeat(2,1fr)}.roi-grid .roi:last-child{grid-column:1/-1}}
@media(max-width:600px){.roi-grid{grid-template-columns:1fr}.roi-grid .roi:last-child{grid-column:auto}}

/* ---------- Planes ---------- */
.plans{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch}
.plan{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:34px 30px; box-shadow:var(--shadow); display:flex; flex-direction:column; position:relative; transition:.25s;
}
.plan:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg)}
.plan.hot{border:2px solid var(--gold); box-shadow:var(--shadow-lg)}
.plan-flag{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:var(--gold); color:#fff; font-size:11px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; padding:5px 16px; border-radius:20px; white-space:nowrap;
}
.plan h3{font-family:var(--font-display); font-size:22px; font-weight:600; color:var(--navy); margin-bottom:4px}
.plan .for{font-size:13px; color:var(--muted); margin-bottom:20px}
.plan .price{margin-bottom:4px}
.plan .price .d{font-size:12.5px; color:var(--muted); font-weight:600}
.plan .price .v{font-family:var(--font-display); font-size:38px; font-weight:600; color:var(--navy)}
.plan .price .per{font-size:13.5px; color:var(--muted)}
.plan .inc{font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--gold); margin:20px 0 12px}
.plan ul{list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:26px}
.plan li{display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--ink-2); line-height:1.5}
.plan li::before{content:'✓'; color:var(--c3); font-weight:700; flex-shrink:0}
.plan .btn{margin-top:auto; width:100%}
.btn-gold{background:var(--gold); color:#fff}
.btn-gold:hover{filter:brightness(1.08); transform:translateY(-2px); box-shadow:var(--shadow-lg)}
.plans-note{text-align:center; font-size:13.5px; color:var(--muted); margin-top:26px}
@media(max-width:980px){.plans{grid-template-columns:1fr; max-width:520px; margin:0 auto}}

/* ---------- FAQ ---------- */
.faq{max-width:760px}
.faq details{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--rs);
  margin-bottom:12px; box-shadow:var(--shadow); overflow:hidden;
}
.faq summary{
  list-style:none; cursor:pointer; padding:19px 24px; font-weight:600; font-size:15.5px; color:var(--navy);
  display:flex; align-items:center; justify-content:space-between; gap:14px; transition:.18s;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:'+'; font-family:var(--font-display); font-size:22px; color:var(--gold);
  line-height:1; transition:transform .25s; flex-shrink:0;
}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq summary:hover{background:var(--surface-2)}
.faq .ans{padding:0 24px 20px; font-size:14.5px; color:var(--ink-2); line-height:1.75}

/* ---------- CTA final ---------- */
.final{background:var(--navy); color:#DCE6F2; text-align:center}
.final .sec-h{color:#fff}
.final .sec-h em{color:var(--gold)}
.final p{color:#9FB4CC; font-size:16.5px; max-width:560px; margin:0 auto 34px; line-height:1.75}
.btn-wa-green{background:var(--wa); color:#fff; font-size:16px; padding:16px 32px}
.btn-wa-green:hover{filter:brightness(1.06); transform:translateY(-2px); box-shadow:0 16px 44px rgba(37,211,102,.35)}

/* ---------- Footer ---------- */
footer{background:var(--navy); color:#B9C9DC; padding:70px 0 36px; border-top:1px solid rgba(255,255,255,.08)}
.f-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px; margin-bottom:52px}
.f-logo{font-family:var(--font-display); font-size:21px; font-weight:700; color:#fff; display:block; margin-bottom:14px}
.f-logo .g{color:var(--gold); font-style:italic}
.f-desc{font-size:13.5px; line-height:1.8; color:#8FA6C0; max-width:300px; margin-bottom:24px}
.f-contacts{display:flex; flex-direction:column; gap:11px}
.fc{display:inline-flex; align-items:center; gap:11px; color:#B9C9DC; font-size:13.5px; transition:.18s}
.fc:hover{color:#fff}
.fc .ic{
  width:32px; height:32px; flex-shrink:0; border-radius:8px; background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; font-size:14px;
}
footer h4{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.16em; color:#7590AD; margin-bottom:18px; font-family:var(--font-body)}
.f-links{list-style:none; display:flex; flex-direction:column; gap:10px}
.f-links a{color:#B9C9DC; font-size:13.5px; transition:.18s}
.f-links a:hover{color:#fff}
.f-social{display:flex; gap:10px; flex-wrap:wrap}
.f-social a{
  width:38px; height:38px; border-radius:9px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center; color:#B9C9DC; transition:.18s;
}
.f-social a:hover{background:rgba(255,255,255,.14); color:#fff; transform:translateY(-2px)}
.f-social svg{width:17px; height:17px; fill:currentColor}
.f-bot{
  border-top:1px solid rgba(255,255,255,.1); padding-top:26px; display:flex; align-items:center;
  justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:12.5px; color:#7590AD;
}
.f-bot strong{color:#DCE6F2; font-weight:600}
@media(max-width:980px){.f-grid{grid-template-columns:1fr 1fr; gap:36px}}
@media(max-width:560px){.f-grid{grid-template-columns:1fr}.f-bot{justify-content:center; text-align:center}}

/* ---------- Modal DiagnóstICO interactivo ---------- */
.dxm{
  position:fixed; inset:0; z-index:300; display:flex; align-items:center; justify-content:center;
  padding:22px; background:rgba(10,37,64,.52); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px);
  animation:dxmFade .22s ease;
}
.dxm[hidden]{display:none}
@keyframes dxmFade{from{opacity:0}to{opacity:1}}
.dxm-panel{
  background:var(--bg); width:100%; max-width:880px; height:min(92vh,940px);
  border-radius:18px; overflow:hidden; display:flex; flex-direction:column;
  box-shadow:0 30px 90px rgba(10,37,64,.35); animation:dxmUp .28s cubic-bezier(.2,.7,.3,1);
}
@keyframes dxmUp{from{opacity:0; transform:translateY(22px)}to{opacity:1; transform:none}}
.dxm-head{background:var(--surface); border-bottom:1px solid var(--line); padding:16px 24px 14px; flex-shrink:0}
.dxm-head-row{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:11px}
.dxm-title{font-family:var(--font-display); font-size:19px; font-weight:600; color:var(--navy)}
.dxm-title em{font-style:italic; color:var(--gold)}
.dxm-x{
  border:1px solid var(--line); background:var(--surface-3); border-radius:8px; width:34px; height:34px;
  font-size:17px; color:var(--ink-2); line-height:1; transition:.15s; flex-shrink:0;
}
.dxm-x:hover{background:var(--crit-soft); color:var(--crit); border-color:#EBC4CB}
.dxm-prog{display:flex; align-items:center; gap:12px}
.dxm-track{flex:1; height:8px; background:var(--surface-3); border-radius:5px; overflow:hidden}
.dxm-fill{display:block; height:100%; width:0%; border-radius:5px; background:var(--gold); transition:width .35s ease}
.dxm-count{font-size:12.5px; color:var(--muted); font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums}
.dxm-body{flex:1; overflow-y:auto; padding:22px 24px 26px; -webkit-overflow-scrolling:touch}
.dxm-foot{
  background:var(--surface); border-top:1px solid var(--line); padding:14px 24px; flex-shrink:0;
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.dxm-hint{font-size:13px; color:var(--muted)}
.dxm-hint.ready{color:var(--ok); font-weight:600}
@media(max-width:680px){
  .dxm{padding:0}
  .dxm-panel{max-width:none; height:100%; border-radius:0}
  .dxm-body{padding:18px 16px 24px}
  .dxm-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .dxm-foot .btn{flex:1 1 auto}
}
/* Intro / datos */
.dx-intro{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:20px 24px; margin-bottom:16px; box-shadow:var(--shadow);
}
.dx-intro h4{font-family:var(--font-display); font-size:16.5px; font-weight:600; color:var(--navy); margin-bottom:3px}
.dx-intro .op{font-size:12.5px; color:var(--muted); margin-bottom:14px}
.dx-fields{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.dx-fields label{display:block; font-size:12px; font-weight:600; color:var(--ink-2); margin-bottom:5px}
.dx-fields input{
  width:100%; background:var(--surface); border:1px solid var(--line-2); border-radius:8px;
  padding:10px 13px; font-family:inherit; font-size:14.5px; color:var(--ink); outline:none; transition:.15s;
}
.dx-fields input:focus{border-color:var(--navy-2); box-shadow:0 0 0 3px rgba(21,58,95,.1)}
@media(max-width:560px){.dx-fields{grid-template-columns:1fr}}
/* Secciones por capa */
.dxsec{
  background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--dc);
  border-radius:var(--r); padding:20px 24px; margin-bottom:16px; box-shadow:var(--shadow);
}
.dxsec-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:4px}
.dxsec-pill{
  display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:700;
  color:var(--dc); background:var(--dcs); border:1px solid var(--dcl);
  padding:4px 13px; border-radius:20px; letter-spacing:.04em;
}
.dxsec-cnt{
  font-size:12px; font-weight:700; color:var(--muted); background:var(--surface-3);
  padding:3px 11px; border-radius:14px; font-variant-numeric:tabular-nums;
}
.dxsec-cnt.full{background:var(--ok-soft); color:var(--ok)}
.dxsec-desc{font-size:13px; color:var(--muted); margin-bottom:8px}
.dxq{padding:15px 0; border-bottom:1px solid var(--line)}
.dxq:last-child{padding-bottom:4px; border-bottom:none}
.dxq .qt{font-size:14.5px; font-weight:500; color:var(--ink); line-height:1.55; margin-bottom:11px}
.dxq .qt .qn{color:var(--muted); font-weight:600; font-variant-numeric:tabular-nums}
.scale{display:grid; grid-template-columns:repeat(5,1fr); gap:8px; max-width:480px}
.sc-btn{
  border:1px solid var(--line-2); background:var(--surface); border-radius:10px;
  padding:8px 3px 7px; min-height:54px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:2px; transition:.15s;
}
.sc-btn .v{font-family:var(--font-display); font-size:18px; font-weight:600; color:var(--ink-2); line-height:1}
.sc-btn .c{font-size:9px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.02em; line-height:1.15; text-align:center}
.sc-btn:hover{border-color:var(--dc); transform:translateY(-1px)}
.sc-btn.on{background:var(--dc); border-color:var(--dc); box-shadow:var(--shadow)}
.sc-btn.on .v,.sc-btn.on .c{color:#fff}
@media(max-width:680px){.scale{max-width:none}.sc-btn{min-height:58px}}
/* Resultados */
.dxr-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:26px 28px; margin-bottom:16px; box-shadow:var(--shadow);
}
.dxr-top{display:flex; gap:28px; align-items:center; flex-wrap:wrap}
.dxr-ring{position:relative; width:150px; height:150px; flex-shrink:0}
.dxr-ring svg{transform:rotate(-90deg)}
.dxr-ring .track{stroke:var(--surface-3)}
.dxr-ring .val{transition:stroke-dashoffset 1.1s cubic-bezier(.25,.6,.25,1)}
.dxr-num{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.dxr-num .g{font-family:var(--font-display); font-size:42px; font-weight:700; line-height:1}
.dxr-num .of{font-size:12px; color:var(--muted); font-weight:600}
.dxr-nivel{
  display:inline-block; font-size:13px; font-weight:700; padding:5px 16px; border-radius:20px; margin-bottom:10px;
}
.dxr-texto{font-size:14.5px; color:var(--ink-2); line-height:1.75}
.dxr-bars{display:flex; flex-direction:column; gap:11px; margin-top:22px; padding-top:20px; border-top:1px solid var(--line)}
.dxr-brow{display:flex; align-items:center; gap:12px; font-size:13px}
.dxr-brow .bl{width:128px; flex-shrink:0; font-weight:600; color:var(--ink-2); white-space:nowrap}
.dxr-brow .btk{flex:1; height:9px; background:var(--surface-3); border-radius:5px; overflow:hidden}
.dxr-brow .btk i{display:block; height:100%; width:0%; border-radius:5px; transition:width 1s cubic-bezier(.25,.6,.25,1)}
.dxr-brow .bv{width:34px; text-align:right; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums}
.dxr-two{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px}
.dxr-fx{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px 22px; box-shadow:var(--shadow)}
.dxr-fx .lab{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.12em; margin-bottom:8px}
.dxr-fx .cap{font-family:var(--font-display); font-size:18px; font-weight:600; margin-bottom:5px}
.dxr-fx .dd{font-size:13px; color:var(--ink-2); line-height:1.65}
.dxr-cta{
  background:var(--navy); border-radius:var(--r); padding:28px; text-align:center; color:#DCE6F2;
}
.dxr-cta h4{font-family:var(--font-display); font-size:21px; font-weight:600; color:#fff; margin-bottom:6px}
.dxr-cta h4 em{font-style:italic; color:var(--gold)}
.dxr-cta p{font-size:13.5px; color:#9FB4CC; margin-bottom:20px}
.dxr-btns{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.btn-repeat{background:transparent; border-color:rgba(255,255,255,.3); color:#DCE6F2}
.btn-repeat:hover{border-color:#fff; color:#fff}
@media(max-width:680px){
  .dxr-two{grid-template-columns:1fr}
  .dxr-top{justify-content:center; text-align:center}
  .dxr-btns .btn{flex:1 1 auto}
  .dxr-brow .bl{width:104px; font-size:12px}
}

/* ---------- WhatsApp flotante ---------- */
.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:150;
  width:58px; height:58px; border-radius:50%; background:var(--wa);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 28px rgba(37,211,102,.45); transition:.2s;
}
.wa-float:hover{transform:scale(1.08) translateY(-2px); box-shadow:0 14px 36px rgba(37,211,102,.55)}
.wa-float svg{width:30px; height:30px; fill:#fff}
@media(max-width:640px){.wa-float{right:16px; bottom:16px; width:54px; height:54px}}


/* ===== Sitio multipágina · complementos ===== */
.nav-links a.on{color:var(--navy); background:var(--surface-3); font-weight:600}
.nav-burger{display:none; width:42px; height:42px; border:1px solid var(--line-2); background:var(--surface); border-radius:9px; align-items:center; justify-content:center; flex-direction:column; gap:5px}
.nav-burger span{display:block; width:18px; height:2px; background:var(--navy); border-radius:2px; transition:.2s}
.nav-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav-right{display:flex; align-items:center; gap:10px}
@media(max-width:940px){
  .nav-burger{display:inline-flex}
  .nav-links{display:none; position:absolute; top:66px; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); flex-direction:column; align-items:stretch; padding:10px 20px 16px; gap:2px; box-shadow:var(--shadow-lg)}
  .nav.open .nav-links{display:flex}
  .nav-links a{display:block; padding:12px 14px; font-size:15px; border-radius:10px}
  .nav-cta{display:none}
}
@media(max-width:640px){.nav-links{top:60px}}
.page-hero{background:linear-gradient(180deg,#FFFFFF 0%,var(--bg) 100%); border-bottom:1px solid var(--line); padding:64px 0 52px}
.page-hero .sec-h{margin-bottom:14px}
.page-hero .sec-sub{margin-bottom:0}
.crumbs{font-size:12.5px; color:var(--muted); margin-bottom:22px; display:flex; gap:8px; flex-wrap:wrap}
.crumbs a{color:var(--muted)} .crumbs a:hover{color:var(--navy)}
.crumbs span::before{content:'›'; margin-right:8px}
.section.tight{padding:64px 0}
/* Capas apiladas en /capas/ */
.capas-full .panel{display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:start; padding:56px 0; border-top:1px solid var(--line); animation:none}
.capas-full .panel:first-of-type{border-top:0; padding-top:0}
@media(max-width:860px){.capas-full .panel{grid-template-columns:1fr}}
.capa-anchor{scroll-margin-top:90px}
.capas-index{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px}
.capas-index a{display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:20px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2); font-size:13.5px; font-weight:500}
.capas-index a:hover{border-color:var(--navy-2); color:var(--navy)}
.capas-index .dot{width:8px; height:8px; border-radius:50%; background:var(--tc)}
/* Comparativa de planes */
.cmp{width:100%; border-collapse:separate; border-spacing:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; font-size:14px}
.cmp th,.cmp td{padding:14px 16px; text-align:center; border-bottom:1px solid var(--line); vertical-align:middle}
.cmp th{background:var(--surface-2); font-weight:600; color:var(--navy); font-size:13px}
.cmp td:first-child,.cmp th:first-child{text-align:left; color:var(--ink-2)}
.cmp tr:last-child td{border-bottom:0}
.cmp .ok{color:var(--c3); font-weight:700} .cmp .no{color:var(--line-2)}
.cmp .hot{background:#FFFBF0}
.cmp-wrap{overflow-x:auto; margin-top:8px}
/* Blog */
.posts{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
@media(max-width:900px){.posts{grid-template-columns:1fr}}
.post-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:26px; display:flex; flex-direction:column; gap:12px; transition:.2s; box-shadow:var(--shadow)}
.post-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
.post-card .cap{font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--pc,var(--gold))}
.post-card h3{font-family:var(--font-display); font-size:20px; line-height:1.3; color:var(--navy); font-weight:600}
.post-card h3 a{color:inherit}
.post-card p{font-size:14px; color:var(--ink-2); line-height:1.7; flex:1}
.post-card .meta{font-size:12.5px; color:var(--muted)}
.article{max-width:760px; margin:0 auto}
.article h1{font-family:var(--font-display); font-size:clamp(30px,4vw,44px); line-height:1.15; color:var(--navy); font-weight:600; letter-spacing:-.01em; margin-bottom:16px}
.article .lead{font-size:18px; color:var(--ink-2); line-height:1.75; margin-bottom:28px}
.article .meta{font-size:13px; color:var(--muted); margin-bottom:34px; display:flex; gap:14px; flex-wrap:wrap}
.article h2{font-family:var(--font-display); font-size:26px; color:var(--navy); font-weight:600; margin:38px 0 14px; line-height:1.25}
.article h3{font-size:18px; color:var(--navy); margin:26px 0 10px}
.article p{font-size:16.5px; line-height:1.8; color:var(--ink); margin-bottom:18px}
.article ul,.article ol{margin:0 0 20px 22px; font-size:16px; line-height:1.75; color:var(--ink)}
.article li{margin-bottom:8px}
.article blockquote{border-left:3px solid var(--gold); background:var(--gold-soft); padding:16px 20px; border-radius:0 var(--rs) var(--rs) 0; margin:24px 0; font-size:16px; color:#5A4406}
.article .cta-box{background:var(--navy); color:#DCE6F2; border-radius:var(--r); padding:30px; margin:40px 0 0; text-align:center}
.article .cta-box h3{color:#fff; font-family:var(--font-display); font-size:24px; margin:0 0 8px}
.article .cta-box p{color:#9FB4CC; font-size:15px; margin-bottom:20px}
/* Contacto */
.contact-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:start}
@media(max-width:860px){.contact-grid{grid-template-columns:1fr}}
.form{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:30px; box-shadow:var(--shadow)}
.form .row{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media(max-width:560px){.form .row{grid-template-columns:1fr}}
.form label{display:block; font-size:12.5px; font-weight:600; color:var(--ink-2); margin:14px 0 6px}
.form input,.form select,.form textarea{width:100%; font-family:inherit; font-size:15px; padding:11px 13px; border:1px solid var(--line-2); border-radius:9px; background:#fff; color:var(--ink)}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--gold-soft); border-color:var(--gold)}
.form textarea{min-height:120px; resize:vertical}
.form .btn{margin-top:20px; width:100%}
.form .fine{font-size:12px; color:var(--muted); margin-top:12px; line-height:1.6}
.ccard{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:24px; margin-bottom:16px}
.ccard h3{font-family:var(--font-display); font-size:19px; color:var(--navy); margin-bottom:8px}
.ccard p,.ccard a{font-size:14.5px; color:var(--ink-2); line-height:1.7}
.ccard a.big{display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--navy); font-size:16px}
.social-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.social-row a{display:inline-flex; align-items:center; gap:8px; padding:9px 14px; border-radius:20px; border:1px solid var(--line-2); background:#fff; color:var(--navy); font-size:13.5px; font-weight:500}
.social-row a:hover{border-color:var(--navy-2)}
.social-row svg{width:16px; height:16px; fill:currentColor}
/* Nosotros */
.vals{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
@media(max-width:860px){.vals{grid-template-columns:1fr}}
.val{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:26px; box-shadow:var(--shadow)}
.val .ic{font-size:26px; margin-bottom:10px}
.val h3{font-family:var(--font-display); font-size:19px; color:var(--navy); margin-bottom:8px}
.val p{font-size:14.5px; color:var(--ink-2); line-height:1.7}
.prose{max-width:760px; font-size:16.5px; line-height:1.8; color:var(--ink)}
.prose p{margin-bottom:18px}
.prose h2{font-family:var(--font-display); font-size:26px; color:var(--navy); font-weight:600; margin:38px 0 14px}
.prose h3{font-size:18px; color:var(--navy); margin:24px 0 8px}
.prose ul{margin:0 0 18px 22px}
.prose li{margin-bottom:8px}
/* Footer extra */
.f-social a svg{width:18px; height:18px; fill:currentColor}
.f-bot{display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between; font-size:12.5px; color:#7590AD; padding-top:24px; border-top:1px solid rgba(255,255,255,.08)}
.f-bot a{color:#B9C9DC}
/* 404 */
.p404{text-align:center; padding:120px 20px}
.p404 .n{font-family:var(--font-display); font-size:96px; color:var(--gold); line-height:1}
