/* ============================================================
   EDU-KT · Sistema de marca y componentes reutilizables
   Paleta tomada del logo Edu-kt (azul royal / amarillo / verde lima)
   Arquitectura visual inspirada en sitio institucional universitario
   ============================================================ */

:root {
  /* Marca */
  --ek-blue-900: #0e2f6e;   /* navy profundo */
  --ek-blue-700: #134a9e;   /* azul institucional */
  --ek-blue-600: #1d63c8;   /* azul royal */
  --ek-blue-500: #2f7be0;   /* azul claro */
  --ek-yellow:   #ffd200;   /* amarillo CTA */
  --ek-yellow-d: #f2bd00;   /* amarillo hover */
  --ek-green:    #8cc63f;   /* verde lima acento */
  --ek-pink:     #ec3b8a;   /* magenta acento puntual */
  --ek-ink:      #0f172a;   /* texto principal */
  --ek-muted:    #475569;   /* texto secundario */
  --ek-line:     #e2e8f0;   /* bordes */
  --ek-bg:       #f6f8fc;   /* fondo seccion alt */
  --ek-white:    #ffffff;

  --ek-grad: linear-gradient(135deg, #0e2f6e 0%, #1d63c8 55%, #2f7be0 100%);
  --ek-shadow-sm: 0 2px 10px rgba(15,42,110,0.08);
  --ek-shadow-md: 0 14px 38px rgba(15,42,110,0.14);
  --ek-radius: 16px;

  --ek-z-header: 50;
  --ek-z-overlay: 40;
  --ek-z-toast: 60;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ek-ink);
  background: var(--ek-white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Utilidades de layout (plantilla reutilizable) ---------- */
.ek-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ek-section   { padding: clamp(56px, 8vw, 104px) 0; }
.ek-eyebrow {
  display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ek-blue-600); margin-bottom: 14px;
}
.ek-title {
  font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; color: var(--ek-ink);
}
.ek-title .hl { color: var(--ek-blue-600); }
.ek-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ek-muted); max-width: 64ch; }

/* ---------- Botones (plantilla) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease;
  min-height: 48px; text-align: center;
}
.btn-primary { background: var(--ek-yellow); color: var(--ek-blue-900); }
.btn-primary:hover { background: var(--ek-yellow-d); box-shadow: var(--ek-shadow-md); }
.btn-solid { background: var(--ek-blue-600); color: #fff; }
.btn-solid:hover { background: var(--ek-blue-700); box-shadow: var(--ek-shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color:#fff; }
.btn-outline { background: transparent; color: var(--ek-blue-700); border-color: var(--ek-blue-600); }
.btn-outline:hover { background: var(--ek-blue-600); color:#fff; }
.btn-block { width: 100%; }

/* ---------- Header / Nav (plantilla) ---------- */
.ek-topbar {
  background: var(--ek-blue-900); color: #cfe0fb; font-size: 13px;
}
.ek-topbar a:hover { color: #fff; }
.ek-header {
  position: sticky; top: 0; z-index: var(--ek-z-header);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ek-line); transition: box-shadow .25s ease, padding .25s ease;
}
.ek-header.scrolled { box-shadow: var(--ek-shadow-sm); }
.ek-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 18px; }
.ek-nav .logo img { height: 100px; width: auto; }
.ek-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.ek-nav-links a {
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 15px; color: var(--ek-ink);
  padding: 8px 2px; position: relative;
}
.ek-nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ek-blue-600); transition: width .25s ease;
}
.ek-nav-links a:hover::after, .ek-nav-links a.active::after { width: 100%; }
.ek-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.ek-burger span { display: block; width: 26px; height: 3px; background: var(--ek-blue-900); border-radius: 2px; margin: 5px 0; transition: .25s; }
.ek-mobile { display: none; }

/* ---------- Hero con video de fondo (plantilla) ---------- */
.ek-hero { position: relative; background: var(--ek-blue-900); color: #fff; overflow: hidden; }
.ek-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center; z-index: 0;
}
.ek-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(11,36,86,.94) 0%, rgba(12,40,96,.86) 34%,
    rgba(13,44,108,.55) 60%, rgba(13,44,108,.20) 100%);
}
.ek-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,640px); align-items: center;
  min-height: 86vh; padding: clamp(56px,8vw,110px) 20px;
  transform: translateY(-50px);
}
.ek-hero h1 { font-size: clamp(22px, 3.5vw, 40px); font-weight: 800; }
.ek-hero h1 .ek-mark { color: var(--ek-yellow); }
.ek-hero p.sub { font-size: clamp(14px,1.2vw,15px); color: #e3ecfb; margin: 16px 0 26px; max-width: 52ch; }
.ek-hero-trust {
  display:inline-flex; gap:12px; align-items:center; margin-top:26px;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.20);
  border-radius:14px; padding:12px 18px; backdrop-filter:blur(4px);
}
.ek-hero-trust b { font-family:'Poppins'; color:#fff; }
.ek-hero-trust span { font-size:13px; color:#cfe0fb; }

/* ---------- Countdown ---------- */
.ek-countdown { display:flex; gap:10px; }
.ek-cd-box { background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22);
  border-radius:12px; padding:10px 14px; text-align:center; min-width:64px; }
.ek-cd-box .n { font-family:'Poppins'; font-weight:700; font-size:24px; color:var(--ek-yellow); }
.ek-cd-box .l { font-size:11px; letter-spacing:1px; text-transform:uppercase; color:#cfe0fb; }

/* ---------- Franja confianza ---------- */
.ek-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.ek-stat { text-align:center; }
.ek-stat .num { font-family:'Poppins'; font-weight:800; font-size:clamp(28px,3.4vw,40px); color:var(--ek-blue-700); }
.ek-stat .cap { font-size:14px; color:var(--ek-muted); }

/* ---------- Cards (plantilla) ---------- */
.ek-grid { display:grid; gap:24px; }
.ek-grid.cols-3 { grid-template-columns:repeat(3,1fr); }
.ek-grid.cols-4 { grid-template-columns:repeat(4,1fr); }
.ek-grid.cols-2 { grid-template-columns:repeat(2,1fr); }
.ek-card {
  background:#fff; border:1px solid var(--ek-line); border-radius:var(--ek-radius);
  padding:30px; transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.ek-card:hover { box-shadow:var(--ek-shadow-md); border-color:#c9d8f0; transform:translateY(-4px); }
.ek-card .ic {
  width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:#eaf1fd; color:var(--ek-blue-600); margin-bottom:18px;
}
.ek-card .ic svg { width:28px; height:28px; }
.ek-card h3 { font-size:20px; font-weight:700; margin-bottom:8px; }
.ek-card p { color:var(--ek-muted); font-size:15px; margin:0; }

/* paso numerado */
.ek-step { position:relative; }
.ek-step .badge {
  width:46px;height:46px;border-radius:50%;background:var(--ek-blue-600);color:#fff;
  font-family:'Poppins';font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}

/* ---------- Banda info / form ---------- */
.ek-band { background: var(--ek-grad); color:#fff; border-radius:24px; padding:clamp(28px,4vw,44px); }
.ek-form-row { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.ek-input {
  width:100%; padding:14px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12); color:#fff; font-size:15px; font-family:'Inter';
}
.ek-input::placeholder { color:#cfe0fb; }
.ek-input:focus { outline:2px solid var(--ek-yellow); background:rgba(255,255,255,.18); }
.ek-form-light .ek-input { background:#fff; color:var(--ek-ink); border-color:var(--ek-line); }
.ek-form-light .ek-input::placeholder { color:#94a3b8; }

/* ---------- Testimonios ---------- */
.ek-testi-track { display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px; }
.ek-testi-track::-webkit-scrollbar { height:8px; }
.ek-testi-track::-webkit-scrollbar-thumb { background:#c9d8f0; border-radius:99px; }
.ek-testi { flex:0 0 340px; scroll-snap-align:start; background:#fff; border:1px solid var(--ek-line);
  border-radius:var(--ek-radius); overflow:hidden; }
.ek-testi img { width:100%; height:auto; }

/* ---------- FAQ ---------- */
.ek-faq-item { border:1px solid var(--ek-line); border-radius:14px; margin-bottom:14px; background:#fff; overflow:hidden; }
.ek-faq-q { width:100%; text-align:left; background:none; border:0; cursor:pointer;
  padding:20px 24px; font-family:'Poppins'; font-weight:600; font-size:17px; color:var(--ek-ink);
  display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ek-faq-q .chev { transition:transform .25s ease; flex-shrink:0; color:var(--ek-blue-600); }
.ek-faq-item.open .chev { transform:rotate(180deg); }
.ek-faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.ek-faq-a div { padding:0 24px 22px; color:var(--ek-muted); }

/* ---------- Footer ---------- */
.ek-footer { background:var(--ek-blue-900); color:#b9cdf0; padding:64px 0 28px; }
.ek-footer h4 { color:#fff; font-size:16px; margin-bottom:18px; font-family:'Poppins'; }
.ek-footer a { display:block; padding:6px 0; font-size:14px; }
.ek-footer a:hover { color:#fff; }
.ek-footer .legal { border-top:1px solid rgba(255,255,255,.12); margin-top:44px; padding-top:24px;
  font-size:12px; color:#7e98c8; }
.ek-footer-logo { height:80px; width:auto; background:#fff; padding:10px 14px; border-radius:12px; }
.ek-social { display:flex; gap:12px; margin-top:16px; }
.ek-social a {
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18);
  transition:background-color .2s ease, transform .2s ease; padding:0;
}
.ek-social a:hover { background:var(--ek-yellow); transform:translateY(-2px); }
.ek-social a svg { width:18px; height:18px; fill:#fff; transition:fill .2s ease; }
.ek-social a:hover svg { fill:var(--ek-blue-900); }

/* WhatsApp flotante */
.ek-wa { position:fixed; right:20px; bottom:20px; z-index:var(--ek-z-toast);
  width:60px; height:60px; border-radius:50%; background:#25D366; display:flex; align-items:center;
  justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.25); transition:transform .2s; }
.ek-wa:hover { transform:scale(1.08); }
.ek-wa svg { width:32px; height:32px; fill:#fff; }

/* ---------- Fondo con parallax (plantilla reutilizable) ---------- */
.ek-parallax { position:relative; background-color:var(--ek-bg);
  background-image:url('../img/como-bg.jpg'); background-size:cover;
  background-position:center; background-attachment:fixed; overflow:hidden; }
.ek-parallax::before { content:""; position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, rgba(246,248,252,.78) 0%, rgba(246,248,252,.66) 50%, rgba(246,248,252,.80) 100%); }
.ek-parallax > * { position:relative; z-index:1; }
@media (max-width:900px) { .ek-parallax { background-attachment:scroll; } }

/* ---------- Animaciones de scroll ---------- */
.reveal { opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; }
.reveal.d2 { transition-delay:.16s; }
.reveal.d3 { transition-delay:.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal { opacity:1 !important; transform:none !important; transition:none; }
  .ek-parallax { background-attachment:scroll; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ek-hero-grid { grid-template-columns:1fr; min-height:auto; }
  .ek-hero-overlay { background: linear-gradient(180deg,
    rgba(11,36,86,.78) 0%, rgba(12,40,96,.70) 45%, rgba(13,44,108,.86) 100%); }
  .ek-hero-video { object-position: center center; }
  .ek-grid.cols-4 { grid-template-columns:repeat(2,1fr); }
  .ek-grid.cols-3 { grid-template-columns:repeat(2,1fr); }
  .ek-form-row { grid-template-columns:repeat(2,1fr); }
  .ek-stats { grid-template-columns:repeat(2,1fr); gap:30px; }
}
@media (max-width: 720px) {
  .ek-nav-links, .ek-topbar .hide-sm { display:none; }
  .ek-burger { display:block; }
  .ek-mobile { display:block; position:fixed; inset:0 0 0 auto; width:min(82vw,340px);
    background:#fff; box-shadow:var(--ek-shadow-md); transform:translateX(100%);
    transition:transform .3s ease; z-index:var(--ek-z-header); padding:90px 26px 30px; }
  .ek-mobile.open { transform:none; }
  .ek-mobile a { display:block; padding:14px 0; font-family:'Poppins'; font-weight:500;
    font-size:17px; border-bottom:1px solid var(--ek-line); }
  .ek-mobile-backdrop { display:none; position:fixed; inset:0; background:rgba(15,23,42,.5);
    z-index:var(--ek-z-overlay); }
  .ek-mobile-backdrop.open { display:block; }
  .ek-grid.cols-4, .ek-grid.cols-3, .ek-grid.cols-2 { grid-template-columns:1fr; }
  .ek-form-row { grid-template-columns:1fr; }
  .ek-stats { grid-template-columns:repeat(2,1fr); }
  .ek-hero h1 { font-size:32px; }
  .ek-nav .logo img { height:56px; }
  .ek-nav { padding:10px 0; gap:12px; }
  .ek-container { padding:0 30px; }
  .ek-hero-grid { transform:none; padding:48px 30px 56px; }
  .ek-hero p.sub { margin:14px 0 24px; }
  .ek-hero .ek-countdown { flex-wrap:wrap; }
  .ek-hero-trust { margin-top:22px; }
}
