/* ============================================
   RESET & VARIABLES — Manual de marca KozSoft
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #181c2e;       /* Azul profundo base #222847 más oscuro */
  --bg2:         #1e2338;       /* Ligeramente más claro */
  --bg3:         #222847;       /* Azul profundo puro del manual */
  --surface:     #272d4a;       /* Superficie de tarjetas */
  --surface2:    #2d3456;       /* Superficie hover */
  --border:      rgba(255,255,255,0.09);
  --border2:     rgba(255,255,255,0.18);
  --accent:      #e1891f;
  --accent2:     #f09a30;
  --accent-glow: rgba(225,137,31,0.15);
  --azul:        #222847;
  --cian:        #00b0fc;
  --violeta:     #7233f4;
  --text:        #f0f2f5;
  --text2:       #8b96a8;
  --text3:       #6b7a9e;
  --font-head:   'Poppins', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --max:         1180px;
  --ease:        0.22s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================ NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}
nav.scrolled {
  background: rgba(24,28,46,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 68px;
}
.nav-logo img { display: block; height: 42px; width: auto; }
.nav-logo { text-decoration: none; }
.nav-links {
  display: flex; align-items: center;
  gap: 28px; list-style: none;
}
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 14px; font-weight: 400;
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 20px; border-radius: 8px;
  font-weight: 500 !important; font-size: 13.5px !important;
  transition: background var(--ease), transform var(--ease) !important;
}
.nav-cta:hover { background: var(--accent2) !important; transform: translateY(-1px); }
.nav-mobile-btn {
  display: none; background: none;
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 8px 10px; cursor: pointer; color: var(--text2);
  flex-direction: column; gap: 4px;
}
.nav-mobile-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }

/* ============================================ HERO */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,137,31,0.13) 0%, transparent 70%);
  top: -100px; right: -120px; pointer-events: none;
}
.hero-glow2 {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,176,252,0.07) 0%, transparent 70%);
  bottom: 0; left: -80px; pointer-events: none;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,176,252,0.08);
  border: 1px solid rgba(0,176,252,0.22);
  border-radius: 100px; padding: 6px 14px 6px 8px;
  font-size: 12.5px; color: var(--cian); font-weight: 500;
  margin-bottom: 24px; letter-spacing: 0.02em;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity:1;transform:scale(1) } 50% { opacity:.5;transform:scale(.8) } }
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; color: var(--text);
  margin-bottom: 22px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 17px; color: var(--text2); line-height: 1.7;
  max-width: 520px; margin-bottom: 32px; font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: all var(--ease); border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(225,137,31,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text2);
  padding: 14px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 400; text-decoration: none;
  transition: all var(--ease); border: 1px solid var(--border2);
  font-family: var(--font-body);
}
.btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: var(--surface); }
.hero-trust {
  display: flex; align-items: center; gap: 10px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.trust-text { font-size: 12.5px; color: var(--text3); }

/* Hero right */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  animation: fadeUp 0.6s 0.15s ease both;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cian), transparent);
  opacity: 0.5;
}
.hero-logo-wrap {
  margin-bottom: 22px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hero-logo-img { display: block; max-width: 100%; height: auto; }
.card-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text3); margin-bottom: 14px;
}
.stack-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.stag {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: 12px; color: var(--text2);
  transition: all var(--ease);
}
.stag:hover { border-color: var(--accent); color: var(--accent); }
.stag.hi { border-color: rgba(0,176,252,0.3); color: var(--cian); background: rgba(0,176,252,0.06); }
.stag.hi2 { border-color: rgba(114,51,244,0.3); color: #a07af5; background: rgba(114,51,244,0.06); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hstat {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.hstat-num {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  color: var(--text); line-height: 1; margin-bottom: 4px;
}
.hstat-num span { font-size: 14px; color: var(--accent); }
.hstat-label { font-size: 11.5px; color: var(--text3); }
@keyframes fadeUp { from { opacity:0;transform:translateY(20px) } to { opacity:1;transform:translateY(0) } }

/* ============================================ COMMONS */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }
.eyebrow {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; display: block; width: 20px; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--cian));
  border-radius: 2px;
}
.sec-h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700; letter-spacing: -0.5px;
  color: var(--text); line-height: 1.1; margin-bottom: 14px;
}
.sec-lead {
  font-size: 17px; color: var(--text2);
  line-height: 1.7; font-weight: 300; max-width: 580px;
}

/* ============================================ CLIENTS */
#clients {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-header { margin-bottom: 56px; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.client-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  transition: all var(--ease); position: relative; overflow: hidden;
}
.client-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(225,137,31,0.04), transparent);
  opacity: 0; transition: opacity var(--ease);
}
.client-card:hover { border-color: rgba(225,137,31,0.3); transform: translateY(-4px); }
.client-card:hover::after { opacity: 1; }
.client-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
}
.client-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.client-title {
  font-family: var(--font-head); font-size: 16px;
  font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.client-desc {
  font-size: 13px; color: var(--text2);
  line-height: 1.65; font-weight: 300; margin-bottom: 18px;
}
.client-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.ctool {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 8px;
  font-size: 11px; color: var(--text2);
}

/* ============================================ SERVICES */
#services { padding: 100px 24px; }
.services-header { margin-bottom: 56px; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.svc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
  transition: all var(--ease); position: relative; overflow: hidden;
}
.svc-card:hover { border-color: rgba(225,137,31,0.3); transform: translateY(-4px); }
.svc-num {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  color: var(--text3); letter-spacing: 0.1em; margin-bottom: 18px;
}
.svc-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 18px;
  background: var(--bg3); border: 1px solid var(--border);
}
.svc-title {
  font-family: var(--font-head); font-size: 16px;
  font-weight: 700; color: var(--text);
  margin-bottom: 10px; line-height: 1.25;
}
.svc-desc {
  font-size: 13px; color: var(--text2);
  line-height: 1.65; font-weight: 300; margin-bottom: 18px;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svtag {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 8px;
  font-size: 11px; color: var(--text2);
}

/* ============================================ PROCESS */
#process {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-header { margin-bottom: 64px; }
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 27px;
  left: calc(10% + 13px); right: calc(10% + 13px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--violeta));
  opacity: 0.3;
}
.pstep { text-align: center; padding: 0 14px; position: relative; }
.pstep-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 14px; font-weight: 800;
  color: var(--accent); margin: 0 auto 18px;
  position: relative; z-index: 1;
  transition: all var(--ease);
}
.pstep:hover .pstep-num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 20px rgba(225,137,31,0.3); }
.pstep-title { font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pstep-desc { font-size: 12px; color: var(--text2); line-height: 1.55; font-weight: 300; }

/* ============================================ WHY */
#why { padding: 100px 24px; }
.why-header { margin-bottom: 52px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  transition: all var(--ease);
}
.why-card:hover { border-color: rgba(225,137,31,0.25); transform: translateY(-3px); }
.why-icon { font-size: 22px; margin-bottom: 14px; }
.why-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-text { font-size: 13px; color: var(--text2); line-height: 1.65; font-weight: 300; }

/* ============================================ TRAINING */
#training {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.training-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.training-text .sec-lead { margin-bottom: 32px; }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: all var(--ease);
}
.tcap:hover { border-color: rgba(225,137,31,0.3); transform: translateX(4px); }
.tcap-icon { font-size: 18px; margin-bottom: 8px; }
.tcap-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tcap-desc { font-size: 12px; color: var(--text2); line-height: 1.5; font-weight: 300; }
.training-note {
  margin-top: 24px;
  background: rgba(225,137,31,0.07);
  border: 1px solid rgba(225,137,31,0.2);
  border-radius: var(--radius); padding: 16px;
}
.training-note p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.training-note strong { color: var(--accent); }

/* ============================================ INDUSTRIES */
#industries {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.industries-inner { max-width: var(--max); margin: 0 auto; }
.industries-header { margin-bottom: 40px; }
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ind-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 14px;
  text-align: center; transition: all var(--ease);
}
.ind-card:hover { border-color: rgba(225,137,31,0.35); background: var(--surface2); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.ind-icon { font-size: 26px; margin-bottom: 10px; }
.ind-name { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; color: var(--text2); }
.ind-card:hover .ind-name { color: var(--accent); }

/* ============================================ FAQ */
#faq {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-header { margin-bottom: 44px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--ease);
}
.faq-item.open { border-color: rgba(225,137,31,0.4); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 18px 22px; display: flex;
  justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer; text-align: left;
  color: var(--text); font-family: var(--font-body);
  font-size: 14.5px; font-weight: 500;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-chev {
  width: 20px; height: 20px; border: 1px solid var(--border2);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 10px;
  transition: transform var(--ease), border-color var(--ease);
  color: var(--text3);
}
.faq-item.open .faq-chev { transform: rotate(180deg); border-color: var(--accent); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  font-size: 14px; color: var(--text2); line-height: 1.7;
  font-weight: 300; padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 18px; }

/* ============================================ CTA */
#cta { padding: 120px 24px; }
.cta-box {
  max-width: var(--max); margin: 0 auto;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border2);
  border-radius: 24px; padding: 72px 64px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cian), transparent);
}
.cta-box::after {
  content: ''; position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%); width: 600px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,137,31,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.8px;
  color: var(--text); margin-bottom: 14px; line-height: 1.1;
}
.cta-sub {
  font-size: 17px; color: var(--text2); font-weight: 300;
  margin-bottom: 36px; max-width: 500px;
  margin-left: auto; margin-right: auto; line-height: 1.65;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.cta-note { font-size: 13px; color: var(--text3); }

/* ============================================ FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 24px;
  background: #141729;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-logo img { display: block; height: 36px; width: auto; }
.footer-logo { text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--text3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text3); text-decoration: none;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--text2); }
.social-links {
  display: flex; gap: 16px; align-items: center;
}
.social-links a {
  color: var(--text3); transition: color var(--ease), transform var(--ease);
  display: flex; align-items: center;
}
.social-links a:hover {
  color: var(--accent); transform: translateY(-2px);
}

/* ============================================ REVEAL */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ============================================ RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 500px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .process-steps::before { display: none; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .training-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .training-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 28px; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
