:root{--bg:#ffffff;--text:#101828;--muted:#475467;--line:#e4e7ec;--soft:#f8fafc;--brand:#1363df;--brand-2:#0f172a;--radius:18px;--shadow:0 12px 30px rgba(16,24,40,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.6}a{color:inherit;text-decoration:none}img{max-width:100%}.container{width:min(1120px,calc(100% - 2rem));margin:0 auto}.narrow{width:min(820px,100%)}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.nav-wrap{display:flex;align-items:center;justify-content:space-between;padding:1rem 0}.brand{font-weight:800;font-size:1.1rem}.brand span{color:var(--brand)}.site-nav{display:flex;gap:1rem;align-items:center}.site-nav a{color:var(--muted)}.site-nav a:hover{color:var(--text)}.nav-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:.45rem .65rem}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;padding:.9rem 1.2rem;border-radius:12px;font-weight:700;border:none;cursor:pointer;box-shadow:var(--shadow)}.btn:hover{filter:brightness(.98)}.btn-secondary{background:#fff;color:var(--text);border:1px solid var(--line);box-shadow:none}.btn-sm{padding:.65rem .9rem;font-size:.95rem}.text-link{color:var(--brand);font-weight:700}
.hero{padding:5rem 0 4rem;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}.lex-theme .hero{background:linear-gradient(180deg,#fff 0%,#f7f8fb 100%)}.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:2rem;align-items:center}.eyebrow,.section-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:800;color:var(--brand);margin:0 0 .7rem}.hero h1,.page-hero h1{font-size:clamp(2rem,4vw,4rem);line-height:1.05;margin:.2rem 0 1rem}.lead{font-size:1.1rem;color:var(--muted);max-width:62ch}.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin:1.4rem 0}.microcopy{font-size:.95rem;color:var(--muted)}.hero-card{padding:1.4rem}.page-hero{padding:4rem 0 1.5rem;background:var(--soft);border-bottom:1px solid var(--line)}
.section{padding:4.5rem 0}.section.alt{background:var(--soft)}.section h2{font-size:clamp(1.6rem,2.5vw,2.6rem);line-height:1.15;margin:.25rem 0 1rem}.section-head{margin-bottom:1.5rem}.split-head{display:flex;justify-content:space-between;gap:1rem;align-items:end}
.grid{display:grid;gap:1.2rem}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow)}.compact-cards .card{padding:1rem}.service-card a{display:inline-block;margin-top:.5rem;color:var(--brand);font-weight:700}.check-list{padding-left:1.1rem;margin:0}.check-list li{margin:.5rem 0;color:var(--muted)}
.timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}.timeline div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1rem;position:relative}.timeline.vertical{grid-template-columns:1fr}.cta-section{padding-top:1rem}.cta-box{background:linear-gradient(135deg,#101828 0%,#1d2939 100%);color:#fff;border-radius:24px;padding:2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.cta-box .section-kicker{color:#93c5fd}.cta-box p{color:#cbd5e1}.contact-form{display:grid;gap:1rem}.contact-form label{display:grid;gap:.45rem;font-weight:700}.contact-form input,.contact-form textarea{width:100%;padding:.85rem 1rem;border:1px solid #d0d5dd;border-radius:12px;font:inherit}.form-status{margin:0;color:var(--muted)}
.site-footer{padding:3rem 0 1rem;background:#0f172a;color:#e5e7eb;margin-top:4rem}.footer-grid{display:grid;grid-template-columns:1.3fr .7fr .9fr;gap:2rem}.site-footer h3,.site-footer h4{margin-top:0;color:#fff}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin:.45rem 0}.site-footer a{color:#cbd5e1}.footer-bottom{padding-top:1rem;margin-top:1rem;border-top:1px solid rgba(255,255,255,.08);color:#94a3b8}
@media (max-width:900px){.hero-grid,.grid-3,.grid-4,.grid-2,.footer-grid,.timeline{grid-template-columns:1fr}.split-head,.cta-box{display:block}.nav-toggle{display:block}.site-nav{display:none;position:absolute;left:1rem;right:1rem;top:68px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:1rem;box-shadow:var(--shadow);flex-direction:column;align-items:flex-start}.site-nav.is-open{display:flex}}


/* Header superior seguro inspirado en la referencia */
.top-pill-bar{background:#f8fafc;border-bottom:1px solid var(--line)}
.top-pill-wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0}
.top-pill-brand,.top-pill-cta{display:inline-flex;align-items:center;justify-content:center}
.top-pill-brand{gap:.7rem;padding:.7rem 1rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font-weight:700;box-shadow:0 8px 20px rgba(16,24,40,.06)}
.top-pill-icon{width:28px;height:24px;color:var(--text);flex:0 0 auto}
.top-pill-cta{padding:.75rem 1rem;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;box-shadow:0 8px 20px rgba(19,99,223,.18)}
.top-pill-brand:hover,.top-pill-cta:hover{filter:brightness(.98)}
.site-header{background:rgba(255,255,255,.96)}
.nav-wrap{padding:.9rem 0}
@media (max-width:900px){
  .top-pill-wrap{padding:.55rem 0}
  .top-pill-brand{padding:.6rem .85rem;font-size:.95rem;max-width:calc(100% - 120px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-pill-cta{padding:.65rem .9rem;font-size:.92rem}
}


/* Header único tipo subnav */
.site-header--subnav{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.subnav__site-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;padding:.9rem 0;position:relative}
.subnav__brand{display:inline-flex;align-items:center;gap:.75rem;min-width:0;font-weight:800}
.subnav__brand-mark{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#0f172a 0%,#1363df 100%);color:#fff;font-size:.86rem;letter-spacing:.04em;box-shadow:0 12px 24px rgba(19,99,223,.18)}
.subnav__brand-text{font-size:1rem;white-space:nowrap}
.subnav__cta{display:inline-flex;align-items:center;justify-content:center;padding:.85rem 1.1rem;border-radius:999px;background:var(--brand);color:#fff;font-weight:800;box-shadow:0 8px 20px rgba(19,99,223,.18)}
.subnav__cta:hover{filter:brightness(.98)}

.subnav__switch{position:relative;width:100%;max-width:720px;justify-self:center;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 12px 30px rgba(16,24,40,.08);padding:7px}
.subnav__switch-list{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:0;position:relative;z-index:2}
.subnav__switch-list li{min-width:0}
.subnav__section-link{display:flex;align-items:center;justify-content:center;padding:.9rem 1rem;border-radius:999px;font-weight:700;color:var(--muted);white-space:nowrap;transition:color .25s ease}
.subnav__section-link span{overflow:hidden;text-overflow:ellipsis}
.subnav__section-link:hover,.subnav__section-link--active{color:var(--text)}
.subnav__switch-indicator{position:absolute;top:7px;left:7px;width:calc(25% - 3px);height:calc(100% - 14px);border-radius:999px;background:#eef4ff;box-shadow:0 8px 18px rgba(19,99,223,.12);transition:left .28s ease,width .28s ease;z-index:1}

.subnav__mobile-pill{display:none;align-items:center;justify-content:space-between;gap:.9rem;width:100%;padding:.95rem 1rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);box-shadow:0 12px 30px rgba(16,24,40,.08)}
.subnav__mobile-pill-sections-container{display:flex;flex-direction:column;gap:0;height:1.4rem;overflow:hidden;transform:translateY(calc(var(--active-index, 1) * -1.4rem));transition:transform .32s ease}
.subnav__mobile-pill-section-title{height:1.4rem;line-height:1.4rem;margin:0;font-weight:700;white-space:nowrap}
.subnav__mobile-pill-chevron-container{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.subnav__mobile-pill-chevron{width:14px;height:10px;transition:transform .25s ease;color:var(--text)}
.subnav__mobile-pill[aria-expanded="true"] .subnav__mobile-pill-chevron{transform:rotate(180deg)}

/* Neutraliza el header anterior */
.top-pill-bar,.nav-wrap,.site-nav,.nav-toggle{display:none !important}

@media (max-width:980px){
  .subnav__site-header{grid-template-columns:1fr auto;grid-template-areas:"brand cta" "mobile mobile";align-items:center}
  .subnav__brand{grid-area:brand}
  .subnav__cta{grid-area:cta}
  .subnav__mobile-pill{grid-area:mobile;display:flex}
  .subnav__switch{display:none;position:absolute;left:0;right:0;top:calc(100% - .2rem);max-width:none;border-radius:24px;padding:10px}
  .subnav__switch.is-open{display:block}
  .subnav__switch-list{grid-template-columns:1fr}
  .subnav__switch-indicator{display:none}
  .subnav__section-link{justify-content:flex-start;padding:1rem 1rem}
  .subnav__section-link--active{background:#eef4ff}
}

@media (max-width:680px){
  .subnav__site-header{gap:.85rem;padding:.8rem 0}
  .subnav__brand-text{font-size:.95rem;white-space:normal;line-height:1.1}
  .subnav__brand-mark{width:40px;height:40px;border-radius:12px}
  .subnav__cta{padding:.8rem .95rem;font-size:.95rem}
}
