
:root{
  --brand:#0a39ff;
  --brand-dark:#0727b3;
  --accent:#00a86b;
  --text:#1f2937;
  --bg:#ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;color:var(--text);background:var(--bg);scroll-behavior:smooth}
img{max-width:100%;display:block;height:auto}
a{color:var(--brand);text-decoration:none}
.container{width:min(1200px,92%);margin:auto}
header{position:relative;overflow:hidden}
.hero{
  min-height:72vh;
  background:linear-gradient(180deg, rgba(10,57,255,.75), rgba(10,57,255,.35)), url('../images/portada.png') center/cover no-repeat;
  color:white; display:flex; align-items:center;
  animation:fadeIn .9s ease both;
}
.brand{display:flex;align-items:center;gap:.6rem}
.brand img{width:42px;height:42px;border-radius:12px}
.brand h1{margin:0;font-size:1.3rem;letter-spacing:.5px}
nav{display:flex;gap:1rem;align-items:center;justify-content:flex-end}
.topbar{position:sticky;top:0;background:white;border-bottom:1px solid #e5e7eb;z-index:20;backdrop-filter:saturate(180%) blur(8px)}
.topbar .container{display:flex;align-items:center;justify-content:space-between;padding:.6rem 0}
.cta{background:var(--accent);color:white;padding:.7rem 1rem;border-radius:999px;font-weight:600;display:inline-flex;gap:.5rem;align-items:center;transition:.2s}
.cta:hover{transform:translateY(-1px);filter:brightness(1.05)}
.hero .container{padding:8vh 0}
.hero h2{font-size:clamp(2rem,5vw,3.2rem);margin:0 0 .6rem 0;font-weight:800}
.hero p{font-size:1.1rem;max-width:680px;opacity:.95}
.badges{display:flex;gap:.6rem;margin:1rem 0 2rem 0;flex-wrap:wrap}
.badge{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);padding:.35rem .7rem;border-radius:999px;font-size:.9rem}
.section{padding:64px 0}
.grid{display:grid;gap:24px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.card{background:white;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.05);transition:.25s;animation:fadeInUp .7s ease both}
.card:hover{transform:translateY(-4px)}
.card .pad{padding:18px}
.h2{font-size:clamp(1.6rem,3vw,2rem);margin:0 0 .3rem 0}
.h3{font-size:1.1rem;margin:0 0 .3rem 0}
.small{opacity:.8;font-size:.95rem}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.gallery a{position:relative;border-radius:14px;overflow:hidden;border:1px solid #e5e7eb;background:#f8fafc}
.gallery a img{width:100%;height:180px;object-fit:cover;transition:.25s}
.gallery a:hover img{transform:scale(1.04)}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;padding:20px;z-index:60}
.lightbox img{max-height:86vh;width:auto;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.lightbox.show{display:flex}
.btn{display:inline-flex;gap:.5rem;align-items:center;border:1px solid #e5e7eb;border-radius:12px;padding:.6rem 1rem;font-weight:600}
.btn-primary{background:var(--brand);border-color:var(--brand);color:white}
.btn-primary:hover{background:var(--brand-dark)}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.feature{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:16px}
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}
footer{background:#0b1020;color:white;margin-top:40px}
.footer-inner{display:grid;gap:16px;grid-template-columns:1.2fr .8fr;align-items:center;padding:22px 0}
.footer-inner a{color:#9fdcff}
.whatsapp{
  position:fixed; right:16px; bottom:16px; z-index:70; 
  width:60px; height:60px; border-radius:50%; display:grid; place-items:center;
  background:#25D366; color:white; font-weight:900; box-shadow:0 12px 24px rgba(0,0,0,.2);
}
audio{display:none}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

@media (max-width:900px){
  .grid.cols-3{grid-template-columns:1fr 1fr}
  .split{grid-template-columns:1fr}
}
@media (max-width:640px){
  .grid.cols-2{grid-template-columns:1fr}
}
