:root{
  --brand:#1E4FA8;         /* azul principal */
  --brand-2:#163A83;       /* azul profundo */
  --ink:#0b1220;
  --muted:#6b7280;
  --bg:#f6f8fc;
  --card:#ffffff;
  --line:rgba(13, 38, 76, .10);
  --shadow:0 18px 45px rgba(11,18,32,.10);
  --shadow-soft:0 10px 30px rgba(11,18,32,.08);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--ink);
  background:var(--bg);
}

a{color:inherit}
.container-narrow{max-width:980px}

/* Topbar */
.topbar{
  background:linear-gradient(90deg, var(--brand-2), var(--brand));
  color:#fff;
  font-size:.92rem;
}
.topbar a{color:#fff; text-decoration:none; opacity:.95}
.topbar a:hover{opacity:1; text-decoration:underline}

/* Navbar premium */
.navbar{
  backdrop-filter: blur(10px);
}
.navbar-glass{
  background: rgba(255,255,255,.85);
  border-bottom:1px solid var(--line);
}
.navbar-brand{
  font-weight:900;
  letter-spacing:.2px;
}
.brand-badge{
  display:inline-flex;
  align-items:center;
  gap:.65rem;
}
.brand-badge img{
  width:42px;
  height:42px;
  object-fit:contain;
}
.nav-link{
  font-weight:700;
  color:#1f2a44 !important;
  border-radius:14px;
  padding:.55rem .85rem !important;
}
.nav-link:hover{
  background: rgba(30,79,168,.08);
}
.nav-link.active{
  background: rgba(30,79,168,.12);
  color: var(--brand-2) !important;
}

.btn-brand{
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border:0;
  color:#fff;
  font-weight:800;
  border-radius:14px;
  padding:.75rem 1rem;
  box-shadow: 0 14px 26px rgba(30,79,168,.20);
}
.btn-brand:hover{filter:brightness(1.03); color:#fff}
.btn-outline-brand{
  border:1px solid rgba(30,79,168,.25);
  color:var(--brand-2);
  font-weight:800;
  border-radius:14px;
  padding:.75rem 1rem;
  background:#fff;
}
.btn-outline-brand:hover{
  background:rgba(30,79,168,.06);
  color:var(--brand-2);
}

/* Hero */
.hero{
  background:
    radial-gradient(900px 450px at 10% 0%, rgba(30,79,168,.22), transparent 55%),
    radial-gradient(900px 450px at 90% 10%, rgba(22,58,131,.18), transparent 50%),
    linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom:1px solid var(--line);
}
.hero-title{
  font-weight:950;
  letter-spacing:-.7px;
}
.hero-lead{color:var(--muted); font-size:1.05rem}
.slogan{
  display:inline-flex;
  gap:.6rem;
  align-items:center;
  border:1px solid rgba(30,79,168,.20);
  background: rgba(30,79,168,.08);
  color:var(--brand-2);
  padding:.5rem .85rem;
  border-radius:999px;
  font-weight:900;
}

/* Cards pro */
.card-pro{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  height:100%;
}
.card-pro:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-pro .card-body{padding:1.15rem}
.card-pro .icon{
  width:44px;height:44px;
  border-radius:14px;
  display:grid;place-items:center;
  background: rgba(30,79,168,.10);
  border:1px solid rgba(30,79,168,.18);
  color: var(--brand-2);
  font-size:1.2rem;
}
.badge-soft{
  background: rgba(30,79,168,.08);
  border:1px solid rgba(30,79,168,.16);
  color: var(--brand-2);
  font-weight:900;
  border-radius:999px;
}

/* Section */
.section-title{
  font-weight:950;
  letter-spacing:-.4px;
}
.section-sub{color:var(--muted)}

/* Carousel */
.carousel-caption{
  background: rgba(11,18,32,.55);
  border-radius:16px;
  padding:1rem 1.1rem;
}

/* Footer */
.site-footer{
  background:#0b1324;
  color: rgba(255,255,255,.85);
}
.site-footer a{color:rgba(255,255,255,.85); text-decoration:none}
.site-footer a:hover{color:#fff; text-decoration:underline}
.social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  border-radius:14px;
  margin-right:.5rem;
  color:#fff;
}
.social .fb{background:#1877F2}
.social .ig{background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4)}
.social .wa{background:#25D366}

/* Contact */
.form-control, .form-select{
  border-radius:14px;
  border:1px solid rgba(13,38,76,.16);
  padding:.75rem .9rem;
}
.form-control:focus, .form-select:focus{
  border-color: rgba(30,79,168,.45);
  box-shadow: 0 0 0 .2rem rgba(30,79,168,.15);
}

/* Utilities */
.bg-white-soft{background:rgba(255,255,255,.78); border:1px solid var(--line); border-radius:var(--radius)}
/* =========================
   CAPACITACIONES - WOW UI
========================= */
.cap-hero{
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(30,79,168,.22), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(22,58,131,.18), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom: 1px solid var(--line);
}

.glass-panel{
  background: rgba(255,255,255,.75);
  border:1px solid rgba(13,38,76,.10);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.course-card{
  background:#fff;
  border:1px solid rgba(13,38,76,.10);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  height:100%;
}
.course-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.course-top{
  padding: 18px 18px 14px;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(43,107,224,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.95));
  border-bottom:1px solid rgba(13,38,76,.08);
}

.course-icon{
  width:52px; height:52px;
  border-radius:18px;
  display:grid; place-items:center;
  background: rgba(30,79,168,.10);
  border:1px solid rgba(30,79,168,.18);
  color: var(--brand-2);
  font-size: 1.35rem;
}

.course-title{
  font-weight: 950;
  letter-spacing: -.3px;
  margin: 0;
}
.course-sub{
  color: var(--muted);
  margin: 0;
}

.chips{
  display:flex; flex-wrap:wrap; gap:10px;
  padding: 14px 18px 18px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(13,38,76,.10);
  background: rgba(245,248,252,.9);
  font-weight: 800;
  color: #1f2a44;
}
.chip i{ color: var(--brand-2); }

.ribbon{
  position:absolute;
  top:16px;
  right:-44px;
  transform: rotate(45deg);
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color:#fff;
  font-weight: 900;
  padding: 10px 60px;
  box-shadow: 0 14px 26px rgba(30,79,168,.22);
  letter-spacing:.2px;
}

.mini-kpi{
  border-radius: 18px;
  border:1px solid rgba(13,38,76,.10);
  background:#fff;
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
}
.mini-kpi .big{font-weight:950}
.mini-kpi .small{color:var(--muted); font-weight:700; font-size:.9rem}

.callout{
  background: linear-gradient(180deg, rgba(30,79,168,.08), rgba(255,255,255,.9));
  border:1px solid rgba(30,79,168,.16);
  border-radius: 22px;
  padding: 18px;
}

.accordion .accordion-item{
  border-radius: 18px !important;
  overflow:hidden;
  border:1px solid rgba(13,38,76,.10) !important;
  box-shadow: var(--shadow-soft);
}
.accordion-button{
  font-weight: 900;
  color: #1f2a44;
}
.accordion-button:not(.collapsed){
  background: rgba(30,79,168,.08);
  color: var(--brand-2);
}

/* =========================
   FOOTER - Premium
========================= */
.footer-premium{
  background:
    radial-gradient(800px 320px at 0% 0%, rgba(43,107,224,.18), transparent 55%),
    radial-gradient(800px 320px at 100% 0%, rgba(22,58,131,.18), transparent 55%),
    linear-gradient(180deg, #0b1324, #081022);
  color: rgba(255,255,255,.86);
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-premium a{ color: rgba(255,255,255,.86); text-decoration:none; }
.footer-premium a:hover{ color:#fff; text-decoration:underline; }

.footer-box{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 22px;
  padding: 16px;
}

.social-brand a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius: 16px;
  margin-right: .5rem;
  color:#fff;
  box-shadow: 0 14px 26px rgba(0,0,0,.20);
}
.social-brand .fb{ background:#1877F2; }
.social-brand .ig{ background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.social-brand .wa{ background:#25D366; }

.footer-mini{
  font-size: .92rem;
  color: rgba(255,255,255,.75);
}

.whatsapp-float{
  position:fixed; right:18px; bottom:18px; z-index:9999;
  width:58px; height:58px; border-radius:18px;
  display:grid; place-items:center;
  background:#25D366;
  color:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  text-decoration:none;
}
.whatsapp-float:hover{ filter:brightness(1.03); color:#fff; }

/* ===== Human check (captcha) ===== */
.hp-field{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.captcha-box{
  border:1px solid rgba(13,38,76,.10);
  background: rgba(245,248,252,.9);
  border-radius: 18px;
  padding: 14px;
}
.captcha-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(30,79,168,.08);
  border: 1px solid rgba(30,79,168,.16);
  color: var(--brand-2);
}
/* =========================
   WhatsApp color oficial
========================= */

/* Topbar WhatsApp */
.topbar .wa-link{
  color:#25D366 !important;
  font-weight:900;
}

.topbar .wa-link i{
  color:#25D366 !important;
}

.topbar .wa-link:hover{
  color:#128C7E !important;
}

/* Botón WhatsApp Navbar */
.btn-whatsapp{
  background:#25D366;
  color:#fff !important;
  border:none;
  font-weight:800;
  border-radius:12px;
}

.btn-whatsapp:hover{
  background:#128C7E;
  color:#fff !important;
}

/* Icono WhatsApp navbar */
.navbar .bi-whatsapp{
  color:#25D366;
}
