:root{
  --nav-height:0px;

  /* Brand / corporate palette */
  --royal:#0b3d91;
  --royal-2:#083274;
  --gold:#ffb400;

  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0f1724;
  --muted:#6b7280;
  --border:rgba(15,23,36,0.07);

  --shadow-sm:0 10px 26px rgba(15,23,36,0.06);
  --shadow-md:0 18px 45px rgba(15,23,36,0.10);

  /* Category accents */
  --accent-office:#004AAD;
  --accent-data:#1ABF5B;
  --accent-diploma:#FF7A00;
  --accent-fin:#7A3FF0;
  --accent-prog:#E53935;
  --accent-hw:#003F88;
  --accent-multi:#E91E63;
  --accent-dm:#F5B800;

  --radius:14px;
  --radius-sm:12px;
  --focus:0 0 0 4px rgba(11,61,145,0.18);
}

html { scroll-behavior:smooth; }
* { box-sizing:border-box; margin:0; padding:0; }
body{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
  padding-top:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Skip link */
.skip-link{
  position:absolute;
  top:-44px; left:14px;
  background:#fff;
  color:var(--text);
  padding:10px 12px;
  border-radius:10px;
  box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
  z-index:99999;
  transition:top .18s ease;
  text-decoration:none;
  font-weight:800;
}
.skip-link:focus{ top:14px; outline:none; box-shadow:var(--focus), var(--shadow-sm); }

/* Buttons */
.btn{
  border:0;
  padding:11px 14px;
  border-radius:12px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space:nowrap;
}
.btn:focus{ outline:none; box-shadow:var(--focus); }

.btn-primary{
  background:linear-gradient(90deg, var(--royal), var(--royal-2));
  color:#fff;
  box-shadow:0 12px 30px rgba(11,61,145,0.16);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow:0 18px 46px rgba(11,61,145,0.20); }

.btn-ghost{
  background:#fff;
  color:var(--royal);
  border:1px solid rgba(11,61,145,0.18);
  box-shadow: 0 10px 24px rgba(15,23,36,0.05);
}
.btn-ghost:hover{ transform: translateY(-2px); border-color:rgba(11,61,145,0.26); }

.btn-wa{
  background:linear-gradient(90deg, #25D366, #16b053);
  color:#fff;
  box-shadow:0 12px 30px rgba(22,176,83,0.16);
}
.btn-wa:hover{ transform: translateY(-2px); box-shadow:0 18px 46px rgba(22,176,83,0.22); }

/* HERO */
.hero{
  position: relative;
  isolation: isolate;
  overflow:hidden;
  color:#fff;
  padding: 104px 18px 90px;
  text-align:center;
}

.hero-bg{position:absolute; inset:0; z-index:0;}
.hero-bg-slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 7.5s ease;
  filter: saturate(1.06) contrast(1.05);
  will-change: opacity, transform;
}
.hero-bg-slide.active{opacity:1; transform: scale(1.16);}

.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(11,61,145,0.92), rgba(11,61,145,0.72));
}

.hero-inner{
  position:relative;
  z-index:2;
  max-width: 1060px;
  margin: 0 auto;
}

.hero-badge{
  display:inline-block;
  font-weight:900;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--gold);
  color:#000;
  opacity:0;
  transform: translateY(12px);
  animation: heroIn 800ms ease forwards 120ms;
}

.hero-kicker{
  margin-top: 14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  font-weight:900;
  letter-spacing: .01em;
  opacity:0;
  transform: translateY(14px);
  animation: heroIn 900ms ease forwards 190ms;
}
.hero-kicker .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255,180,0,0.16);
}
.hero-kicker small{font-weight:900; opacity:.98}

.hero-title{
  font-size: 52px;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-top: 18px;
  opacity:0;
  transform: translateY(18px);
  animation: heroIn 900ms ease forwards 260ms;
  text-wrap: balance;
}
.hero-sub{
  font-size: 18px;
  margin-top: 14px;
  color: rgba(255,255,255,0.92);
  opacity:0;
  transform: translateY(18px);
  animation: heroIn 900ms ease forwards 380ms;
  text-wrap: pretty;
}

.hero-ctas{
  margin-top: 24px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  opacity:0;
  transform: translateY(18px);
  animation: heroIn 900ms ease forwards 520ms;
}

.hero-chips{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  opacity:0;
  transform: translateY(14px);
  animation: heroIn 900ms ease forwards 640ms;
}
.hero-chip{
  font-weight:900;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  user-select:none;
}

@keyframes heroIn{to{opacity:1; transform:translateY(0)}}

/* Swap animations */
.hero-swap-out{animation: heroSwapOut 420ms ease forwards;}
.hero-swap-in{animation: heroSwapIn 520ms ease forwards;}
@keyframes heroSwapOut{to{opacity:0; transform: translateY(-10px)}}
@keyframes heroSwapIn{from{opacity:0; transform: translateY(14px)} to{opacity:1; transform: translateY(0)}}

/* Floating visuals */
.hero-floats{position:absolute; inset:0; z-index:2; pointer-events:none;}
.float-card{
  position:absolute;
  width: 200px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  animation: floaty 6.8s ease-in-out infinite;
}
.float-title{font-weight:950; font-size:14px;}
.float-sub{font-weight:900; font-size:12px; opacity:0.92;}

.float-pill{
  position:absolute;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight:950;
  font-size: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  animation: floaty 7.4s ease-in-out infinite;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.float-1{left:6%; top:28%;}
.float-2{right:7%; top:25%; animation-duration: 7.6s;}
.float-3{left:10%; bottom:20%; animation-duration: 8.3s;}
.float-4{right:10%; bottom:22%; animation-duration: 7.0s;}
.float-5{left:50%; bottom:12%; transform: translateX(-50%); animation-duration: 7.9s;}
@keyframes floaty{
  0%,100%{transform: translateY(0) translateX(0)}
  50%{transform: translateY(-14px) translateX(6px)}
}

/* Controls */
.hero-controls{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.hero-arrow{
  pointer-events:auto;
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:52px;
  height:52px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color:#fff;
  font-weight:950;
  font-size:30px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
  opacity:.92;
  user-select:none;
}
.hero-arrow:hover{transform: translateY(-50%) scale(1.06); background: rgba(255,255,255,0.18);}
.hero-arrow:active{transform: translateY(-50%) scale(0.98);}
.hero-prev{left:14px;}
.hero-next{right:14px;}

/* Containers */
.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

/* Hero strip */
.hero-strip{
  margin: 26px auto 16px;
  max-width:1200px;
  background: linear-gradient(90deg, #ffffff, #fbfdff);
  border: 1px solid rgba(15,23,36,0.05);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 14px 16px;
  display:flex;
  align-items:center;
  gap:14px;
}
.hero-strip-title{
  font-weight:950;
  font-size:14px;
  color:#13213a;
}
.counters{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.counter{
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(11,61,145,0.04);
  border: 1px solid rgba(11,61,145,0.10);
  min-width: 150px;
}
.counter .num{
  font-weight:950;
  font-size:18px;
  color:var(--royal);
  line-height:1.1;
}
.counter small{
  display:block;
  margin-top:4px;
  font-weight:900;
  color:var(--muted);
  font-size:12px;
}
.search-wrap{
  margin-left:auto;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.search{
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(15,23,36,0.10);
  background:#fff;
  min-width:280px;
  font-weight:700;
}
.search:focus{ outline:none; box-shadow: var(--focus); border-color: rgba(11,61,145,0.22); }

/* Sections */
.section{ padding: 22px 0 34px; }
.section-header{ margin-top: 18px; margin-bottom: 14px; }
.section-title{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color:#fff;
  font-weight:950;
  letter-spacing:.01em;
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(15,23,36,0.08);
}
.section-lead{
  margin-top:10px;
  color: var(--muted);
  font-weight:700;
  max-width: 900px;
}

.category-divider{
  height:1px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, rgba(0,0,0,0.10), rgba(0,0,0,0));
  border-radius:2px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border: 1px solid rgba(15,23,36,0.06);
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2,.9,.2,1), box-shadow .22s;
  min-height: 330px;
}
.card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card:focus-within{ box-shadow: var(--focus), var(--shadow-md); }

.card-thumb{
  height: 158px;
  width:100%;
  object-fit:cover;
  display:block;
  background:#eef2ff;
}

.card-body{
  padding: 14px 14px 10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.card-title{
  font-weight:950;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.card-meta{
  color: var(--muted);
  font-size: 13px;
  font-weight:800;
}

.card-footer{
  padding: 12px 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:nowrap;
}

.link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size: clamp(11px, 1.2vw, 13px);
  padding: clamp(8px, 1.1vw, 10px) clamp(10px, 1.4vw, 12px);
  border-radius: 12px;
  text-decoration:none;
  font-weight:950;
  border:1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space:nowrap;
  flex: 0 0 auto;
  user-select:none;
}
.link:focus{ outline:none; box-shadow: var(--focus); }
.link:active{ transform: translateY(1px); }

.link-read{
  background:#fff;
  border-color: rgba(11,61,145,0.18);
  color: var(--royal);
  box-shadow: 0 10px 24px rgba(15,23,36,0.05);
}
.link-read:hover{ transform: translateY(-2px); border-color: rgba(11,61,145,0.30); }

.link-wa{
  margin-left:auto;
  background: linear-gradient(90deg, #25D366, #16b053);
  color:#fff;
  box-shadow: 0 12px 30px rgba(22,176,83,0.18);
}
.link-wa:hover{ transform: translateY(-2px); box-shadow:0 18px 46px rgba(22,176,83,0.22); }

/* Fade-up */
.fade-up{ opacity:0; transform: translateY(14px); transition: all .7s cubic-bezier(.2,.9,.2,1); }
.fade-up.show{ opacity:1; transform:none; }

/* Back to top */
.back-top{
  position:fixed; right:18px; bottom:18px;
  width:52px; height:52px;
  border-radius:16px;
  display:grid; place-items:center;
  background:#fff;
  border:1px solid rgba(15,23,36,0.08);
  box-shadow:0 16px 40px rgba(15,23,36,0.14);
  cursor:pointer;
  transition: transform .18s ease;
  z-index:1300;
}
.back-top:hover{ transform: translateY(-6px); }
.back-top:focus{ outline:none; box-shadow: var(--focus), 0 16px 40px rgba(15,23,36,0.14); }

/* WhatsApp floating */
.whatsapp-float{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}
.whatsapp-float a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:58px; height:58px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  box-shadow:0 14px 38px rgba(0,0,0,0.22);
  border:1px solid rgba(255,255,255,0.16);
  transition: transform .18s ease;
  text-decoration:none;
}
.whatsapp-float a:hover{ transform: translateY(-3px); }
.whatsapp-float a:focus{ outline:none; box-shadow: var(--focus), 0 14px 38px rgba(0,0,0,0.22); }

/* Footer */
footer{
  margin-top: 24px;
  background: linear-gradient(180deg, var(--royal), var(--royal-2));
  color:#fff;
  padding: 34px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
.footer-title{ font-weight:950; letter-spacing:.01em; }
.footer-muted{ opacity:.86; font-weight:700; margin-top:8px; }
.footer-links a{
  color: rgba(255,255,255,0.92);
  text-decoration:none;
  font-weight:900;
  display:inline-block;
  margin: 6px 0;
}
.footer-links a:hover{ text-decoration:underline; }
.copyright{
  margin-top: 18px;
  opacity:.86;
  font-weight:800;
}

/* Responsive */
@media (max-width: 820px){
  .hero-title{ font-size: 34px; }
  .float-card, .float-pill{ display:none; }
  .hero-arrow{ width:44px; height:44px; font-size:26px; opacity:.95; }
  .hero-prev{ left:10px; }
  .hero-next{ right:10px; }
  .hero-strip{ flex-direction:column; align-items:flex-start; }
  .search-wrap{ margin-left:0; width:100%; }
  .search{ width:100%; min-width:0; }
  .counter{ min-width: 160px; }
}

@media (max-width: 360px){
  .card-footer{ gap:8px; }
  .link{ font-size:11px; padding:8px 9px; }
}

@media (prefers-reduced-motion: reduce){
  .hero-bg-slide, .float-card, .float-pill,
  .hero-badge, .hero-kicker, .hero-title, .hero-sub, .hero-ctas, .hero-chips,
  .fade-up{
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
  html{ scroll-behavior:auto; }
}
