/* assets/css/style.css — Competentia (pro, light) */
:root{
  --blue:#0B2D6B;
  --blue-deep:#0A1F44;
  --blue-ink:#05204f;
  --green:#00C48C;
  --gray-900:#0f172a;
  --gray-700:#334155;
  --gray-600:#475569;
  --gray-500:#64748b;
  --gray-200:#e2e8f0;
  --gray-100:#f1f5f9;
  --white:#ffffff;

  --radius:18px;
  --shadow: 0 18px 45px rgba(11,45,107,.10);
  --shadow-soft: 0 12px 30px rgba(15,23,42,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--gray-900);
  background: var(--white);
}

a{color:inherit}
.container{width:min(1160px, calc(100% - 56px)); margin:0 auto}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.9);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-elevated{
  box-shadow: 0 10px 25px rgba(15,23,42,.06);
  background: rgba(255,255,255,.92);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
}
.brand-logo{
}
.brand-text strong{
  display:block;
  color: var(--blue-deep);
  letter-spacing:-.2px;
}
.brand-text span{
  display:block;
  font-size:12px;
  color: var(--gray-500);
  margin-top:2px;
}

.nav{display:flex; align-items:center; gap: 8px; flex-wrap:wrap}
.nav a{
  text-decoration:none;
  font-size:14px;
  color: var(--gray-600);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{background: rgba(11,45,107,.06); color: var(--blue-deep)}
.nav a.is-active{color: var(--blue-deep); font-weight:800}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;
  border:1px solid rgba(226,232,240,1);
  background: var(--white);
  text-decoration:none;
  font-weight:750;
  color: var(--blue-deep);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{border-color: rgba(11,45,107,.25); background: rgba(11,45,107,.03)}
.btn:active{transform: translateY(1px)}
/* BOTÓN PRINCIPAL (AGENDAR) */
.btn-primary{
    background: #0B2D6B;
    color: #ffffff !important;
    border: none;
    font-weight: 700;
}

.btn-primary:hover{
    background: #05204f;
}

/* BOTÓN SECUNDARIO (VER CERTIFICACIONES) */
.btn-ghost{
    background: #ffffff;
    color: #0B2D6B !important;
    border: none;
    font-weight: 600;
}

.btn-ghost:hover{
    background: #f1f5f9;
}
/* Mobile nav */
.nav-toggle{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(226,232,240,1);
  background: #fff;
  cursor:pointer;
  padding: 10px;
}
.nav-toggle span{display:block; height:2px; background: var(--blue-deep); margin: 5px 0; border-radius: 2px}
.mobile-nav{display:none; padding-bottom: 14px}
.mobile-nav a{
  display:block;
  padding: 12px 12px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 14px;
  margin-top: 10px;
  text-decoration:none;
  color: var(--gray-700);
  background:#fff;
}
.mobile-nav a.is-active{border-color: rgba(11,45,107,.22); color: var(--blue-deep); font-weight:800}
.mobile-nav.open{display:block}
.mobile-nav .btn{width:100%; margin-top:10px}

/* Hero */
.hero{
  padding: 78px 0 34px;
  background:
    radial-gradient(900px 420px at 12% 14%, rgba(0,196,140,.10), transparent 55%),
    radial-gradient(900px 420px at 92% 18%, rgba(11,45,107,.12), transparent 55%),
    linear-gradient(180deg, #ffffff, #ffffff);
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items:start;
}
.pill{
  display:inline-flex; align-items:center; gap: 10px;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: var(--gray-600);
}
.dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0,196,140,.16);
}
h1{
  margin: 18px 0 14px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--blue-deep);
}
.lead{
  margin:0;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 68ch;
  font-size: 17px;
}
.hero-actions{display:flex; gap: 14px; flex-wrap:wrap; margin-top: 22px}

/* Motion accent (JS updates this) */
.hero-glow{
  position:absolute;
  inset:-120px;
  pointer-events:none;
  opacity:.9;
  background:
    radial-gradient(520px 300px at var(--mx, 30%) var(--my, 25%), rgba(11,45,107,.14), transparent 60%),
    radial-gradient(520px 300px at calc(var(--mx, 30%) + 28%) calc(var(--my, 25%) + 10%), rgba(0,196,140,.10), transparent 60%);
  transition: opacity .25s ease;
}

/* Hero card */
.hero-card{
  background:#fff;
  border: 1px solid rgba(226,232,240,1);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  position:relative;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 20% 20%, rgba(11,45,107,.10), transparent 45%);
  pointer-events:none;
}
.hero-card h3{margin:0 0 10px; color: var(--blue-deep); position:relative}
.steps{
  margin:0;
  padding-left: 18px;
  color: var(--gray-600);
  line-height: 1.75;
  position:relative;
}
.mini{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  position:relative;
}
.mini strong{display:block; color: var(--blue-deep)}
.muted{color: var(--gray-500)}
.kpi{
  border: 1px solid rgba(226,232,240,1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(241,245,249,.65);
}
.kpi .muted{font-size:12px}

/* Sections */
.section{padding: 64px 0}
.section.alt{
  background: linear-gradient(180deg, var(--gray-100), #ffffff);
  border-top: 1px solid rgba(226,232,240,.9);
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap: 16px; flex-wrap:wrap}
.section-head h2{margin:0; color: var(--blue-deep); letter-spacing:-.35px}
.section-head p{margin:8px 0 0; max-width: 76ch}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.card{
  background:#fff;
  border: 1px solid rgba(226,232,240,1);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(11,45,107,.18);
  box-shadow: 0 18px 46px rgba(11,45,107,.12);
}
.tag{
  display:inline-flex;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,196,140,.35);
  background: rgba(0,196,140,.10);
  color: var(--blue-deep);
  font-weight: 900;
}
.card h3{margin:10px 0 8px; font-size: 15px; color: var(--blue-deep)}
.link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top: 10px;
  color: var(--blue);
  text-decoration:none;
  font-weight: 850;
}
.link:hover{text-decoration:underline}

/* Trust strip */
.trust{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 16px;
}
.trust .chip{
  font-size: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(226,232,240,1);
  border-radius: 999px;
  background:#fff;
  color: var(--gray-600);
}

/* Split */
.split{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  margin-top: 18px;
  align-items:stretch;
}
.bullets{margin: 12px 0 0; padding-left: 18px; color: var(--gray-700); line-height: 1.75}
.split-card{
  background: linear-gradient(135deg, rgba(11,45,107,.10), rgba(0,196,140,.10));
  border: 1px solid rgba(11,45,107,.12);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 220px;
}
.badge{
  display:inline-flex;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,45,107,.18);
  background: rgba(255,255,255,.75);
  width:max-content;
}
.split-card h3{margin: 12px 0 6px; color: var(--blue-deep)}
.split-card p{margin: 0; color: var(--gray-600); line-height:1.6}

/* CTA band */
.cta{
  margin-top: 26px;
  border: 1px solid rgba(226,232,240,1);
  background: linear-gradient(135deg, rgba(11,45,107,.07), rgba(0,196,140,.08));
  border-radius: 22px;
  padding: 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.cta h3{margin:0; color: var(--blue-deep)}
.cta p{margin: 6px 0 0; color: var(--gray-600)}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(226,232,240,1);
  background: #fff;
  padding: 36px 0 30px;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 18px;
  flex-wrap:wrap;
}
.foot-brand{display:flex; align-items:center; gap: 12px}
.foot-logo{width:34px;height:34px}
.foot-links{display:flex; flex-direction:column; gap: 6px}
.foot-links a{color: var(--blue); text-decoration:none; font-weight:700}
.foot-links a:hover{text-decoration:underline}
.footer-bottom{margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(226,232,240,1)}

/* WhatsApp floating */
.wa-float{
  position:fixed;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--green);
  color:#062014;
  display:grid;
  place-items:center;
  text-decoration:none;
  box-shadow: 0 18px 45px rgba(0,196,140,.20);
  transition: transform .12s ease, filter .2s ease;
  z-index: 60;
}
.wa-float:hover{transform: translateY(-2px); filter: brightness(1.03)}
.wa-float svg{width: 22px; height:22px; fill:#062014}

/* Reveal */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in{opacity:1; transform: translateY(0)}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr 1fr}
  .split{grid-template-columns: 1fr}
}
@media (max-width: 780px){
  .nav{display:none}
  .nav-toggle{display:inline-flex}
  .hero{padding-top: 48px}
}
@media (max-width: 520px){
  .cards{grid-template-columns: 1fr}
  .mini{grid-template-columns:1fr}
}


/* ===== HERO VIDEO ===== */
.hero-media{
  position:relative;
  padding:0;
  min-height: 58vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}




/* =========================
   HERO VIDEO PROFESIONAL
========================= */

.hero-video-section{
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5,32,79,0.75),
        rgba(11,45,107,0.65)
    );
    z-index: 1;
}

.hero-content{
    position: relative;
    z-index: 2;
}

.hero-text{
    max-width: 680px;
    color: #fff;
}

.hero-text h1{
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p{
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-actions{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px){
    .hero-video-section{
        height: 75vh;
    }

    .hero-text h1{
        font-size: 34px;
    }

    .hero-text p{
        font-size: 16px;
    }
}