/* ═══════════════════════════════════════════════════════════
   JLSANCHO.COM — Design System
   Paleta gris/negro, coherente con LinkedIn profile
═══════════════════════════════════════════════════════════ */


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI Variable Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif; color: #242424; line-height: 1.6; -webkit-font-smoothing: antialiased; background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
svg { display: block; }

/* ── TOKENS ── */
:root {
  --c-ink:       #111111;
  --c-dark:      #1B1A19;
  --c-mid:       #424242;
  --c-muted:     #616161;
  --c-sub:       #616161;
  --c-white:     #FFFFFF;
  --c-off:       #FAFAFA;
  --c-off2:      #F5F5F5;
  --c-border:    #E0E0E0;

  /* page-level overrides (set per page in <style>) */
  --page-accent:    #111111;
  --page-accent-lt: #F0F0F0;

  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --sh-xs: 0 0 2px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.14);
  --sh-sm: 0 0 2px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.14);
  --sh:    0 0 2px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.14);
  --sh-md: 0 0 2px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.14);
  --sh-lg: 0 0 8px rgba(0,0,0,.12), 0 14px 28px rgba(0,0,0,.14);
}

/* ── LAYOUT ── */
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-lg { max-width: 1380px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 820px;  margin: 0 auto; padding: 0 32px; }

.sec { padding: 96px 0; }
.sec-sm { padding: 64px 0; }
.sec-alt { background: var(--c-off); }
.sec-dark { background: var(--c-ink); }
.sec-mid  { background: var(--c-dark); }

/* ── TYPE ── */
.syne { font-family: 'Segoe UI Variable Display', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; }
.d-xxl { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.d-xl  { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.018em; }
.d-lg  { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 700; line-height: 1.18; letter-spacing: -.012em; }
.d-md  { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.28; }
.body-xl { font-size: 1.15rem; color: #424242; line-height: 1.8; }
.body-lg { font-size: 1.02rem; color: #424242; line-height: 1.78; }
.body    { font-size: .925rem; color: #424242; line-height: 1.76; }
.body-sm { font-size: .84rem;  color: #616161; line-height: 1.72; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content:''; display:inline-block; width:20px; height:2px; border-radius:1px; background:currentColor; flex-shrink:0; }
.ey-dark  { color: var(--c-ink); }
.ey-white { color: rgba(255,255,255,.65); }
.ey-muted { color: var(--c-muted); }
/* backwards compat aliases */
.ey-blue  { color: var(--c-mid); }
.ey-sky   { color: var(--c-muted); }

/* ── GRID ── */
.g2   { display: grid; grid-template-columns: 1fr 1fr;     gap: 48px; align-items: start; }
.g3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.g4   { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.g-21 { display: grid; grid-template-columns: 1.5fr 1fr;    gap: 64px; align-items: center; }
.g-12 { display: grid; grid-template-columns: 1fr 1.5fr;    gap: 64px; align-items: center; }
.flex-c { display: flex; align-items: center; }
.flex-cc{ display: flex; align-items: center; justify-content: center; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.mt-2   { margin-top: 8px; }
.mt-3   { margin-top: 12px; }
.mt-4   { margin-top: 16px; }
.mt-6   { margin-top: 24px; }
.mt-8   { margin-top: 32px; }
.mt-12  { margin-top: 48px; }
.tc     { text-align: center; }

/* ── SEC HEADER ── */
.sh { margin-bottom: 56px; }
.sh .eyebrow { margin-bottom: 16px; }
.sh .d-xl { margin-bottom: 20px; }
.sh .body-lg { max-width: 620px; }
.sh.center { text-align: center; }
.sh.center .body-lg { margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: var(--r); font-size: .9rem; font-weight: 700; border: 2px solid transparent;
  transition: all .2s cubic-bezier(.4,0,.2,1); cursor: pointer; white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--page-accent); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: #333333; box-shadow: var(--sh-md); transform: translateY(-2px); }
.btn-dark { background: var(--c-ink); color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--c-ink); box-shadow: var(--sh-sm); }
.btn-white:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: .97rem; border-radius: var(--r-lg); }
.btn-sm { padding: 9px 18px; font-size: .82rem; border-radius: var(--r-sm); }

/* ── CARDS ── */
.card {
  background: #fff; border-radius: var(--r-lg); padding: 32px;
  border: 1px solid var(--c-border); box-shadow: var(--sh-xs);
  transition: all .24s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden;
}
.card-lift:hover { box-shadow: var(--sh-md); transform: translateY(-5px); }
.card-border-t { border-top: 3px solid var(--page-accent); }
.card-border-l { border-left: 4px solid var(--page-accent); }

/* Icon box */
.icon-box {
  width: 52px; height: 52px; border-radius: var(--r);
  background: var(--c-off2);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .22s;
}
.icon-box svg { color: var(--page-accent); }
.card:hover .icon-box { background: var(--page-accent); box-shadow: var(--sh-sm); }
.card:hover .icon-box svg { color: #fff; }

/* ── INCLUDE LIST ── */
.inc-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.inc-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: #424242; padding: 7px 0;
  border-bottom: 1px solid var(--c-border); line-height: 1.6;
}
.inc-list li:last-child { border-bottom: none; }
.inc-list .ico { flex-shrink: 0; margin-top: 2px; color: var(--c-ink); }

/* ── STAT BOX ── */
.stat-box { text-align: center; padding: 24px 16px; }
.stat-num { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.stat-label { font-size: .8rem; margin-top: 6px; line-height: 1.5; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px; font-size: .73rem; font-weight: 700; letter-spacing: .03em;
}
.badge-dark   { background: var(--c-off2); color: var(--c-ink); border: 1px solid var(--c-border); }
.badge-green  { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-navy   { background: var(--page-accent); color: #fff; }
.badge-white  { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.badge-amber  { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
/* backwards compat */
.badge-blue   { background: var(--c-off2); color: var(--c-ink); border: 1px solid var(--c-border); }
.badge-sky    { background: var(--c-off);  color: var(--c-mid); border: 1px solid var(--c-border); }

/* ── TAG ── */
.tag { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: .73rem; font-weight: 600; background: var(--c-off); color: #424242; border: 1px solid var(--c-border); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ── RESOLVE BOX ── */
.resolve {
  margin-top: 16px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--c-off2); border-left: 3px solid var(--c-ink);
  font-size: .8rem; color: var(--c-dark); font-weight: 500; line-height: 1.55;
}

/* ── STEP / TIMELINE ── */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 27px; top: 28px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #333, rgba(51,51,51,.1));
  z-index: 0;
}
.step { display: flex; gap: 24px; padding: 0 0 36px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%; background: #fff;
  border: 2px solid var(--page-accent); color: var(--page-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 0 0 4px rgba(0,0,0,.08), var(--sh-sm);
}
.step.active .step-dot { background: var(--page-accent); color: #fff; }
.step-body { padding-top: 12px; }
.step-title { font-size: 1.05rem; font-weight: 800; color: var(--c-dark); margin-bottom: 6px; }
.step-desc  { font-size: .9rem; color: #424242; line-height: 1.72; }
.step-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

/* ── PAGE HERO (inner) ── */
.inner-hero {
  padding: 130px 0 80px; position: relative; overflow: hidden;
}
.ih-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: 22px; }
.ih-breadcrumb a { color: rgba(255,255,255,.6); transition: color .15s; }
.ih-breadcrumb a:hover { color: #fff; }
.ih-breadcrumb .sep { color: rgba(255,255,255,.25); }
.ih-title { color: #fff; margin: 10px 0 18px; }
.ih-lead  { color: rgba(255,255,255,.75); font-size: 1.08rem; max-width: 600px; line-height: 1.78; }
.ih-deco {
  position: absolute; border-radius: 50%; pointer-events: none;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all .3s;
}
.nav-inner {
  display: flex; align-items: stretch; height: 68px;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.nav.transparent .nav-inner { border-bottom: 1px solid rgba(255,255,255,.1); }
.nav.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(20px); box-shadow: 0 2px 20px rgba(0,0,0,.09); }

.nav-logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }

.nav-links { display: flex; align-items: stretch; }
.nav-link {
  display: flex; align-items: center; padding: 0 14px;
  font-size: .94rem; font-weight: 600; color: rgba(255,255,255,.82);
  transition: color .15s; position: relative; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: #fff; transform: scaleX(0); transition: transform .2s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav.scrolled .nav-link { color: #424242; }
.nav.scrolled .nav-link:hover, .nav.scrolled .nav-link.active { color: var(--page-accent); }
.nav.scrolled .nav-link::after { background: var(--page-accent); }

.nav-cta {
  display: flex; align-items: center; align-self: center; height: 42px; padding: 0 22px; margin-left: 10px;
  background: var(--page-accent); color: #fff; font-size: .84rem; font-weight: 700;
  border-radius: var(--r); transition: background .2s; gap: 6px; box-shadow: var(--sh-sm);
}
.nav-cta:hover { background: #333333; }
.nav-cta svg { flex-shrink: 0; }

.nav-li {
  display: flex; align-items: center; justify-content: center; align-self: center;
  width: 38px; height: 38px; border-radius: var(--r); margin-left: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85);
  transition: all .2s;
}
.nav-li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; transform: translateY(-2px); }
.nav.scrolled .nav-li { background: #F5F5F5; border-color: #E0E0E0; color: #242424; }
.nav.scrolled .nav-li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }

.nav-ham { display: none; flex-direction: column; gap: 5px; align-self: center; cursor: pointer; padding: 8px; }
.nav-ham span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 1px; transition: all .3s; }
.nav.scrolled .nav-ham span { background: var(--c-ink); }

.mob-menu { display: none; position: fixed; inset: 0; background: #fff; z-index: 999; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 90px; gap: 6px; }
.mob-menu.open { display: flex; }
.mob-close { position: absolute; top: 22px; right: 26px; background: #F5F5F5; border: 1px solid #E0E0E0; border-radius: 50%; width: 40px; height: 40px; color: #242424; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mob-link { font-size: 1.25rem; font-weight: 700; color: #242424; padding: 12px 36px; border-radius: 10px; transition: all .15s; }
.mob-link:hover { color: #242424; background: #F5F5F5; }

/* ── FOOTER ── */
.site-footer { background: #1B1A19; color: rgba(255,255,255,.78); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand-name { font-size: .96rem; font-weight: 800; color: #fff; margin: 12px 0 3px; }
.footer-brand-role { font-size: .73rem; opacity: .65; margin-bottom: 14px; }
.footer-desc { font-size: .84rem; line-height: 1.75; opacity: .72; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.soc-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.72); transition: all .2s;
}
.soc-btn:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); color: #fff; transform: translateY(-2px); }
.footer-col-title { font-size: .74rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-link { display: block; font-size: .84rem; color: rgba(255,255,255,.68); margin-bottom: 8px; transition: color .15s; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; flex-wrap: wrap; gap: 12px; }
.footer-copy { color: rgba(255,255,255,.72); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,.72); transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* ── CTA BAND ── */
.cta-band { background: #1B1A19; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.04), transparent); top: -300px; right: -100px; pointer-events: none; }
.cta-band-inner { position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ── ANIMATIONS ──
   Solo se ocultan con opacity:0 cuando la clase "js-reveal" ya está en <html>
   (se añade con un script inline al principio del <head>, antes de pintar
   nada). Así, si el JS tarda o falla, las imágenes/bloques se quedan
   visibles desde el principio en vez de parpadear (aparecer-desaparecer). */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.vis { opacity: 1; transform: none; }
.js-reveal .reveal-l { opacity: 0; transform: translateX(-24px); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
.reveal-l.vis { opacity: 1; transform: none; }
.js-reveal .reveal-r { opacity: 0; transform: translateX(24px); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
.reveal-r.vis { opacity: 1; transform: none; }

/* ── IMAGE ── */
.img-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.img-frame img { width: 100%; display: block; }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .8rem; font-weight: 700; color: var(--c-dark); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 15px; border: 2px solid var(--c-border);
  border-radius: var(--r); font-size: .9rem; font-family: inherit;
  color: var(--c-dark); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--page-accent); box-shadow: 0 0 0 4px rgba(0,0,0,.08); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; padding: 15px; background: var(--page-accent); color: #fff;
  border-radius: var(--r); font-size: .96rem; font-weight: 700;
  transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--sh-sm);
}
.form-submit:hover { background: #333333; transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ── RESPONSIVE ── */
@media (max-width: 1060px) {
  .g2, .g-21, .g-12 { grid-template-columns: 1fr; gap: 40px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .sec { padding: 64px 0; }
  .wrap, .wrap-sm { padding: 0 20px; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .btn-lg { padding: 14px 22px; font-size: .9rem; }
}
