/* ============================================================
   Sistema de diseño heredado de lumini.dev (lu-frontend)
   Valores exactos: src/index.css + App.tsx + NavBar/Footer
   ============================================================ */
:root{
  --font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'Cascadia Code',Menlo,monospace;
  --gray-950:#030712;
  --gray-800:#1f2937;
  --gray-600:#4b5563;
  --gray-400:#9ca3af;
  --gray-200:#e5e7eb;
  --sev1:#f87171;
  --sev2:#fbbf24;
  --ease:cubic-bezier(0.25,0.46,0.45,0.94);
}
*{margin:0;padding:0;box-sizing:border-box;font-family:var(--font-sans)}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  min-height:100vh;background:var(--gray-950);color:#fff;
  overflow-x:hidden;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
::selection{background:#fff;color:#000}
.bg-white ::selection{background:#000;color:#fff}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* ---- layout ---- */
.container{width:100%;max-width:80rem;margin:0 auto;padding-left:1rem;padding-right:1rem}
@media(min-width:640px){.container{padding-left:1.5rem;padding-right:1.5rem}}
@media(min-width:1024px){.container-nav{padding-left:2rem;padding-right:2rem}}
.section{padding:4rem 1rem}
@media(min-width:640px){.section{padding:6rem 1.5rem}}
@media(min-width:1024px){.section{padding:8rem 1.5rem}}
.section-top{padding-bottom:1rem}
@media(min-width:640px){.section-top{padding-bottom:1.5rem}}
@media(min-width:1024px){.section-top{padding-bottom:2rem}}
.section-bottom{padding-top:1rem}
@media(min-width:640px){.section-bottom{padding-top:1.5rem}}
@media(min-width:1024px){.section-bottom{padding-top:2rem}}
.bg-black{background:#000}
.bg-white{background:#fff;color:#000}
.bg-dark{background:var(--gray-950)}
.anchor-offset{scroll-margin-top:6rem}

/* ---- tipografía ---- */
.logo-text{font-weight:700;letter-spacing:-0.02em}
.hero-title{
  font-size:clamp(2.25rem,6vw,5.5rem);font-weight:900;line-height:0.95;
  letter-spacing:-0.02em;
}
.h2{font-size:1.875rem;line-height:1.15;font-weight:700;margin-bottom:2rem}
@media(min-width:640px){.h2{font-size:2.25rem}}
@media(min-width:768px){.h2{font-size:3.75rem;line-height:1.05}}
.h2-center{font-size:2.25rem;line-height:1.1;font-weight:700;margin-bottom:1.5rem}
@media(min-width:640px){.h2-center{font-size:3rem}}
@media(min-width:768px){.h2-center{font-size:3.75rem}}
@media(min-width:1024px){.h2-center{font-size:4.5rem;line-height:1}}
.h2-contact{font-size:1.875rem;line-height:1.1;font-weight:700;margin-bottom:1rem}
@media(min-width:640px){.h2-contact{font-size:2.25rem}}
@media(min-width:768px){.h2-contact{font-size:3rem}}
@media(min-width:1024px){.h2-contact{font-size:3.75rem}}
.label{color:var(--gray-400);margin-bottom:1rem}
.label-strike{text-decoration-line:line-through}
.section-head{margin-bottom:3rem}
@media(min-width:640px){.section-head{margin-bottom:4rem}}
@media(min-width:1024px){.section-head{margin-bottom:5rem}}
.lead{color:var(--gray-400);font-size:1rem;line-height:1.625;max-width:56rem}
@media(min-width:640px){.lead{font-size:1.125rem}}
.bg-white .lead,.bg-white .label{color:var(--gray-600)}
.after-note{color:var(--gray-400);line-height:1.625;max-width:32rem}

/* ---- nav ---- */
.glass-dark{background:rgba(3,7,18,.8);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.1)}
header.nav{position:fixed;top:0;width:100%;z-index:50}
header.nav nav{height:4rem;display:flex;align-items:center}
@media(min-width:640px){header.nav nav{height:5rem}}
.nav-row{display:flex;align-items:center;justify-content:space-between;width:100%}
.logo{font-size:1.25rem;font-weight:700;letter-spacing:-0.02em;white-space:nowrap}
@media(min-width:640px){.logo{font-size:1.5rem}}
.logo span{font-weight:400;color:var(--gray-400)}
.nav-menu{display:flex;align-items:center;gap:2rem}
@media(min-width:1280px){.nav-menu{gap:3rem}}
@media(max-width:1023px){
  .nav-menu .nav-link{display:none}
  .nav-menu .btn-outline{padding:.5rem 1rem;font-size:.6875rem;letter-spacing:.04em}
}
.cta-short{display:none}
@media(max-width:560px){
  .logo span{display:none}
  .cta-long{display:none}
  .cta-short{display:inline}
}
.nav-link{position:relative;font-weight:500;text-transform:uppercase;font-size:.875rem;letter-spacing:.05em;transition:all .3s}
.nav-link::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:1px;background:currentColor;transition:width .3s var(--ease)}
.nav-link:hover::after{width:100%}
.nav-link:hover{color:#d1d5db}

/* ---- botones ---- */
.btn-hero{
  display:inline-flex;align-items:center;gap:.75rem;border-radius:.5rem;
  border:1px solid rgba(255,255,255,.2);background:transparent;color:#fff;
  padding:.75rem 1.5rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  font-size:.75rem;
  transition:background-color .3s,box-shadow .3s,transform .3s,border-color .3s,color .3s;
}
@media(min-width:640px){.btn-hero{padding:.875rem 1.75rem;font-size:.875rem}}
.btn-hero:hover{background:#fff;color:#000;border-color:#fff}
.btn-hero:active{transform:scale(.99)}
.btn-outline{
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:600;text-transform:uppercase;letter-spacing:.05em;border-radius:0;
  padding:.75rem 1.5rem;background:transparent;border:1px solid rgba(255,255,255,.2);
  color:#fff;font-size:.75rem;transition:all .3s;white-space:nowrap;
}
@media(min-width:640px){.btn-outline{padding:1rem 2rem;font-size:.875rem}}
.btn-outline:hover{background:#fff;color:#000;border-color:#fff}
.bg-white .btn-hero{border-color:rgba(0,0,0,.2);color:#000}
.bg-white .btn-hero:hover{background:#000;color:#fff;border-color:#000}

/* ---- hero ---- */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;padding:5rem 1rem 3rem;z-index:10}
@media(min-width:640px){.hero{padding:5rem 1.5rem 4rem}}
.hero-inner{max-width:72rem;position:relative;z-index:20}
.hero h1{margin-bottom:2rem}
.typewriter-text{word-break:keep-all;overflow-wrap:normal;white-space:pre-line}
.typewriter-cursor{animation:blink 1s infinite}
.hero-sub{color:var(--gray-400);margin-bottom:2rem;font-size:1rem;line-height:1.625;max-width:56rem;position:relative;z-index:20}
@media(min-width:640px){.hero-sub{margin-bottom:3rem;font-size:1.125rem}}
.hero-cta-row{display:flex;flex-wrap:wrap;gap:1rem;position:relative;z-index:20}

/* ---- retícula de puntos del hero ---- */
.dot-pattern{position:absolute;right:0;top:0;width:100%;height:100%;opacity:.20;pointer-events:none;z-index:1;overflow:hidden}
.dot-pattern .dot{position:absolute;background:rgba(255,255,255,.3);border-radius:50%;animation:dotPattern 4s ease-in-out infinite}
@media(max-width:640px){.dot-pattern .dot{width:2px !important;height:2px !important}}

/* ---- retícula hexagonal de las tarjetas ---- */
.hex-pattern{position:absolute;top:20px;right:20px;width:120px;height:80px;opacity:.3;pointer-events:none}
.hex-dot{position:absolute;width:8px;height:8px;background:rgba(255,255,255,.4);border-radius:50%}
@media(max-width:1024px){.hex-pattern{width:80px;height:60px}}
@media(max-width:768px){.hex-pattern{width:60px;height:40px}.hex-dot{width:6px;height:6px}}

/* ---- tarjetas ---- */
.service-card{
  transition:all .4s var(--ease);
  border:2px solid rgba(255,255,255,.1);
  position:relative;overflow:hidden;
  background:rgba(40,40,40,.9);
  border-radius:24px;box-sizing:border-box;
  padding:1.5rem;display:block;
}
@media(min-width:640px){.service-card{padding:2rem}}
@media(min-width:1024px){.service-card{padding:2.5rem}}
.service-card::before{
  content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.03),transparent);
  transition:left .6s var(--ease);
}
.service-card:hover{
  transform:translateY(-4px);border-color:rgba(255,255,255,.8);
  background:rgba(50,50,50,.95);box-shadow:0 20px 40px rgba(0,0,0,.4);
}
.service-card:hover::before{left:100%}
.service-card-highlighted{border:2px solid rgba(255,255,255,.1);background:rgba(45,45,45,.95)}
.card-body{position:relative;z-index:10}
.card-body h3{font-size:1.25rem;font-weight:700;margin-bottom:1rem;color:#fff;line-height:1.25}
@media(min-width:640px){.card-body h3{font-size:1.5rem;margin-bottom:1.5rem}}
.card-body p{color:var(--gray-400);line-height:1.625;font-size:.75rem}
@media(min-width:640px){.card-body p{font-size:.875rem}}
.card-kicker{display:block;color:var(--gray-400);font-size:.75rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;margin-bottom:.75rem}

/* ---- tarjetas compactas del catálogo de módulos ---- */
.mod-card .hex-pattern{transform:scale(.68);transform-origin:top right;top:14px;right:14px}
.mod-card{padding:1.25rem}
@media(min-width:640px){.mod-card{padding:1.5rem}}
@media(min-width:1024px){.mod-card{padding:1.75rem}}
.mod-card .card-body h3{font-size:1.0625rem;margin-bottom:.5rem}
@media(min-width:640px){.mod-card .card-body h3{font-size:1.125rem;margin-bottom:.625rem}}
.mod-num{font-family:var(--font-mono);font-size:.75rem;font-weight:600;color:#fff;letter-spacing:.06em;display:block;margin-bottom:.5rem}
.mod-card .card-body p{font-size:.75rem}
.mod-meta{display:block;margin-top:.875rem;font-size:.6875rem;letter-spacing:.05em;text-transform:uppercase;color:var(--gray-400);opacity:.8}
.tier-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:1px solid rgba(255,255,255,.1)}
.bg-white .tier-head{border-bottom-color:rgba(0,0,0,.1)}
.tier-name{font-size:1.125rem;font-weight:700}
.tier-cond{font-size:.8125rem;color:var(--gray-400)}
.tier-block{margin-bottom:3rem}
@media(min-width:640px){.tier-block{margin-bottom:4rem}}
.tier-block:last-of-type{margin-bottom:0}

/* ---- grillas ---- */
.grid-4{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:640px){.grid-4{grid-template-columns:repeat(2,1fr);gap:2rem}}
@media(min-width:1024px){.grid-4{grid-template-columns:repeat(4,1fr)}}
.grid-3{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:640px){.grid-3{grid-template-columns:repeat(2,1fr);gap:2rem}}
@media(min-width:1024px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.grid-mb{margin-bottom:3rem}
@media(min-width:640px){.grid-mb{margin-bottom:4rem}}

/* ---- hallazgos de ejemplo ---- */
.ex{margin-top:1.25rem;display:grid;gap:.5rem}
.ex .finding{font-size:.75rem;line-height:1.5;color:var(--gray-400)}
.ex .finding b{font-weight:600}
.ex .finding.s1 b{color:var(--sev1)}
.ex .finding.s2 b{color:var(--sev2)}

/* ---- columnas con filete (patrón del footer del padre) ---- */
.rule-cols{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:768px){.rule-cols{grid-template-columns:repeat(2,1fr);gap:3rem}}
@media(min-width:1024px){.rule-cols{grid-template-columns:repeat(4,1fr);gap:4rem}}
.rule{width:3rem;height:1px;background:#000;margin-bottom:1rem}
.bg-black .rule,.bg-dark .rule{background:#fff}
.rule-col h3{font-size:.875rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;margin-bottom:.75rem}
.rule-col .step{display:block;font-size:.75rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;color:var(--gray-400);margin-bottom:.5rem}
.rule-col p{font-size:.875rem;line-height:1.625;color:var(--gray-600)}
@media(min-width:1024px){.rule-col p{min-height:5.6875rem}}
.bg-black .rule-col p,.bg-dark .rule-col p{color:var(--gray-400)}
.quote{margin-top:2.5rem;padding-left:1rem;border-left:1px solid #000;color:var(--gray-600);max-width:36rem;line-height:1.625}
.bg-black .quote,.bg-dark .quote{border-left-color:rgba(255,255,255,.3);color:var(--gray-400)}

/* ---- tira de garantías ---- */
.strip{border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}
.strip-in{display:flex;flex-wrap:wrap;gap:.75rem 2.5rem;padding:1.25rem 0;color:var(--gray-400);font-size:.75rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase}
@media(min-width:640px){.strip-in{font-size:.8125rem}}
.strip-in span::before{content:'— ';opacity:.6}

/* ---- bloque de código ---- */
.code-card{max-width:56rem;margin:3rem auto 0;padding:1.5rem}
@media(min-width:640px){.code-card{padding:2rem}}
.code-card pre{
  font-family:var(--font-mono);font-size:.75rem;line-height:1.9;color:var(--gray-200);
  overflow-x:auto;white-space:pre;position:relative;z-index:10;
  -webkit-overflow-scrolling:touch;
}
.code-card .c{color:var(--gray-400)}
.code-cap{max-width:56rem;margin:1rem auto 0;color:var(--gray-600);font-size:.875rem;line-height:1.625;text-align:center}

/* ---- garantías ---- */
.trust-grid{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:768px){.trust-grid{grid-template-columns:repeat(2,1fr);gap:2.5rem 3rem}}
.trust h3{font-size:1.0625rem;font-weight:700;margin-bottom:.5rem}
.trust p{font-size:.875rem;line-height:1.625;color:var(--gray-600)}

/* ---- contacto ---- */
.contact-row{display:flex;flex-direction:column;align-items:center;text-align:center}
@media(min-width:1024px){.contact-row{flex-direction:row;justify-content:space-between;align-items:center;text-align:left}}
.contact-copy{max-width:56rem;margin-bottom:2rem}
@media(min-width:1024px){.contact-copy{margin-bottom:0}}
.contact-copy p{color:var(--gray-400);font-size:1rem}
@media(min-width:640px){.contact-copy p{font-size:1.125rem}}

/* ---- footer ---- */
.footer{background:#fff;color:#000;padding:3rem 1rem}
@media(min-width:640px){.footer{padding:4rem 1.5rem}}
@media(min-width:1024px){.footer{padding:5rem 2rem}}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(2,1fr);gap:3rem}}
@media(min-width:1024px){.footer-grid{grid-template-columns:repeat(3,1fr);gap:4rem}}
.footer h2{font-size:1.5rem;font-weight:900;line-height:1;margin-bottom:1.5rem}
@media(min-width:640px){.footer h2{font-size:1.875rem}}
@media(min-width:768px){.footer h2{font-size:2.25rem}}
@media(min-width:1024px){.footer h2{font-size:3rem;margin-bottom:2rem}}
@media(min-width:1280px){.footer h2{font-size:4.5rem}}
.foot-group{margin-bottom:1.5rem}
@media(min-width:640px){.foot-group{margin-bottom:2rem}}
.foot-group a{display:block;font-size:.875rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;margin-bottom:.75rem;transition:opacity .3s}
.foot-group a:hover{opacity:.7}
.foot-bottom{
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  margin-top:3rem;padding-top:1.5rem;border-top:1px solid var(--gray-200);text-align:center;
}
@media(min-width:640px){.foot-bottom{margin-top:4rem;padding-top:2rem}}
@media(min-width:1024px){.foot-bottom{flex-direction:row;margin-top:5rem;text-align:left}}
.foot-left{display:flex;align-items:center;margin-bottom:1rem}
@media(min-width:1024px){.foot-left{margin-bottom:0}}
.lu-box{width:2rem;height:2rem;border:2px solid #000;margin-right:1rem;display:flex;align-items:center;justify-content:center}
.lu-box span{font-weight:700;font-size:.75rem}
.foot-copy{font-size:.875rem;font-weight:500}
.foot-right{display:flex;flex-direction:column;align-items:center;gap:.5rem;font-size:.75rem}
@media(min-width:640px){.foot-right{flex-direction:row;gap:1rem;font-size:.875rem}}
@media(min-width:1024px){.foot-right{gap:2rem}}
.foot-right span,.foot-right a{font-weight:500;letter-spacing:.05em;transition:opacity .3s}
.foot-right a{text-transform:uppercase}
.foot-right a:hover{opacity:.7}
.foot-motto{font-style:italic}
.foot-mail{word-break:break-word}

/* ---- animaciones (idénticas al padre) ---- */
@keyframes fadeUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@keyframes dotPattern{0%,100%{opacity:.2}50%{opacity:.4}}
@keyframes blink{0%,50%{opacity:1}51%,100%{opacity:0}}
.fade-up{animation:fadeUp 1s var(--ease) forwards}
.fade-up-delay-1{animation:fadeUp 1s var(--ease) .2s forwards;opacity:0}
.fade-up-delay-2{animation:fadeUp 1s var(--ease) .4s forwards;opacity:0}
.fade-up-delay-3{animation:fadeUp 1s var(--ease) .6s forwards;opacity:0}
.fade-up-delay-4{animation:fadeUp 1s var(--ease) .8s forwards;opacity:0}
html.js .reveal{animation:fadeUp 1s var(--ease) forwards;opacity:0}
html.js .reveal.d1{animation-delay:.2s}
html.js .reveal.d2{animation-delay:.4s}
html.js .reveal.d3{animation-delay:.6s}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  html.js .reveal,.fade-up,.fade-up-delay-1,.fade-up-delay-2,.fade-up-delay-3,.fade-up-delay-4{opacity:1 !important}
  html{scroll-behavior:auto}
}

/* ============ catálogo de bases de conocimiento (/certificaciones) ============ */
.page-head{padding:8rem 1rem 3rem}
@media(min-width:640px){.page-head{padding:10rem 1.5rem 4rem}}
.page-head .container{max-width:60rem}
.back-link{
  display:inline-block;font-size:.75rem;font-weight:500;letter-spacing:.05em;
  text-transform:uppercase;color:var(--gray-400);margin-bottom:2rem;
}
.back-link:hover{color:#fff}
.h1-page{font-size:2.25rem;line-height:1.05;font-weight:800;letter-spacing:-.025em;margin-bottom:1.5rem}
@media(min-width:640px){.h1-page{font-size:3rem}}
@media(min-width:1024px){.h1-page{font-size:3.75rem}}

.kb-group{margin-bottom:3.5rem}
.kb-group:last-child{margin-bottom:0}
.kb-group-head{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;
  margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:1px solid rgba(255,255,255,.1);
}
.bg-white .kb-group-head{border-bottom-color:rgba(0,0,0,.1)}
.kb-group-name{font-size:1.125rem;font-weight:700}
.kb-group-note{font-size:.8125rem;color:var(--gray-400)}
.bg-white .kb-group-note{color:var(--gray-600)}

.kb-grid{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media(min-width:768px){.kb-grid{grid-template-columns:1fr 1fr;gap:1.5rem}}
@media(min-width:1200px){.kb-grid{grid-template-columns:repeat(3,1fr)}}
.kb{
  border:2px solid rgba(255,255,255,.1);background:rgba(40,40,40,.9);
  border-radius:24px;padding:1.5rem;position:relative;overflow:hidden;
  transition:all .4s var(--ease);
}
@media(min-width:640px){.kb{padding:1.75rem}}
.kb:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.8);background:rgba(50,50,50,.95);box-shadow:0 20px 40px rgba(0,0,0,.4)}
.bg-white .kb{border-color:rgba(0,0,0,.1);background:#fafafa}
.bg-white .kb:hover{border-color:rgba(0,0,0,.6);background:#fff;box-shadow:0 20px 40px rgba(0,0,0,.08)}
.kb-code{
  font-family:var(--font-mono);font-size:.75rem;font-weight:600;letter-spacing:.06em;
  color:#fff;display:block;margin-bottom:.5rem;
}
.bg-white .kb-code{color:#000}
.kb h3{font-size:1rem;font-weight:700;line-height:1.3;margin-bottom:.625rem;color:#fff}
.bg-white .kb h3{color:#000}
.kb p{font-size:.8125rem;line-height:1.6;color:var(--gray-400)}
.bg-white .kb p{color:var(--gray-600)}
.kb-mod{
  display:block;margin-top:1rem;padding-top:.875rem;border-top:1px solid rgba(255,255,255,.1);
  font-family:var(--font-mono);font-size:.6875rem;letter-spacing:.05em;color:var(--gray-400);
}
.bg-white .kb-mod{border-top-color:rgba(0,0,0,.1);color:var(--gray-600)}

.aviso{
  border-left:2px solid rgba(255,255,255,.3);padding:.25rem 0 .25rem 1.25rem;
  color:var(--gray-400);line-height:1.7;max-width:44rem;
}
.bg-white .aviso{border-left-color:rgba(0,0,0,.25);color:var(--gray-600)}
