:root{
  --bg:#0b1220;
  --panel:#0f1b33;
  --card:#111f3d;
  --text:#eaf0ff;
  --muted:#b9c4dd;
  --accent:#e11d48; /* rojo */
  --accent2:#2563eb; /* azul */
  --good:#22c55e;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 26px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(900px 500px at 15% 0%, rgba(37,99,235,.18), transparent 60%),
              radial-gradient(900px 500px at 85% 0%, rgba(225,29,72,.20), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1120px,92vw); margin:0 auto}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{left:12px; top:12px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; border-radius:10px; z-index:9999}

.topbar{
  background: rgba(7,12,24,.55);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
  gap:12px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background: linear-gradient(90deg, rgba(225,29,72,.95), rgba(37,99,235,.95));
  font-weight:700; font-size:.85rem;
}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.topbar__left{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.topbar__right{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.topbar__link{opacity:.95}
.topbar__link:hover{opacity:1; text-decoration:underline}

.header{
  position:sticky; top:0; z-index:50;
  background: rgba(11,18,32,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:46px; height:46px; border-radius:16px;
  background: linear-gradient(145deg, rgba(225,29,72,.95), rgba(37,99,235,.95));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position:relative;
}
.dot{position:absolute; width:10px; height:10px; border-radius:50%}
.dot--r{left:12px; bottom:12px; background:rgba(255,255,255,.95)}
.dot--b{right:12px; top:12px; background:rgba(255,255,255,.75)}
.brand__text strong{display:block; letter-spacing:.2px}
.brand__text span{display:block; font-size:.88rem; color:var(--muted)}

.nav{
  display:flex; gap:18px; align-items:center;
}
.nav a{
  opacity:.9; font-weight:600; font-size:.95rem;
}
.nav a:hover{opacity:1}
.nav__cta{
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}
.navbtn{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
}
.navbtn span{
  display:block; height:2px; margin:7px 10px;
  background: rgba(255,255,255,.9);
  border-radius:999px;
}

.hero{
  position:relative;
  min-height: 78vh;
  display:grid;
  align-items:center;
}
.hero__media{
  position:absolute; inset:0;
  background-image: url("../img/portada.jpg");
  background-size:cover;
  background-position:center;
  filter: saturate(1.05) contrast(1.05);
}
.hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(11,18,32,.92), rgba(11,18,32,.55) 55%, rgba(11,18,32,.22));
}
.hero__content{position:relative; padding:64px 0}
.hero h1{
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height:1.05;
  margin:0 0 14px;
}
.hero p{
  max-width: 56ch;
  font-size: 1.05rem;
  color: rgba(234,240,255,.92);
  margin:0 0 22px;
}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap}
.hero__stats{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:24px;
}
.stat{
  padding:14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  min-width: 170px;
}
.stat strong{display:block}
.stat span{color:var(--muted); font-size:.92rem}

.section{padding:72px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-top:1px solid rgba(255,255,255,.07);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.section__head{margin-bottom:22px}
.section__head h2{
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin:0 0 8px;
}
.section__head p{margin:0; color:var(--muted)}
.section__cta{margin-top:22px; display:flex; gap:12px; flex-wrap:wrap}

.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, 1fr)}
.grid--2{grid-template-columns: repeat(2, 1fr)}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:18px 18px 16px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 8px; font-size:1.05rem}
.card p{margin:0 0 10px; color:var(--muted)}
.list{margin:0; padding-left:18px; color:rgba(234,240,255,.92)}
.list li{margin:6px 0}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:800;
  letter-spacing:.2px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
.btn--primary{
  background: linear-gradient(90deg, rgba(225,29,72,.95), rgba(37,99,235,.95));
  border-color: transparent;
}
.btn--primary:hover{background: linear-gradient(90deg, rgba(225,29,72,1), rgba(37,99,235,1))}
.btn--ghost{background: rgba(255,255,255,.05)}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.gallery__item{
  border:0;
  padding:0;
  border-radius: 18px;
  overflow:hidden;
  cursor:pointer;
  background: rgba(255,255,255,.06);
  outline: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  transition: transform .15s ease, outline-color .15s ease;
}
.gallery__item:hover{transform: translateY(-2px); outline-color: rgba(255,255,255,.22)}
.gallery__item img{width:100%; height:180px; object-fit:cover}

.lightbox{
  position:fixed; inset:0; z-index:2000;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.82);
  padding:20px;
}
.lightbox.is-open{display:grid}
.lightbox img{
  max-width:min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.lightbox__close{
  position:fixed; top:14px; right:14px;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.videos{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:14px;
}
.video-card{padding:14px; border-radius: var(--radius2); border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04)}
.video-card__frame{
  border-radius: 18px;
  overflow:hidden;
  outline: 1px solid rgba(255,255,255,.10);
  aspect-ratio: 9 / 16;
  background: rgba(0,0,0,.25);
}
.video-card iframe{width:100%; height:100%; border:0}
.video-card h3{margin:10px 0 0; font-size:.98rem}

.embed{border-radius:18px; overflow:hidden; outline: 1px solid rgba(255,255,255,.10); margin:10px 0 12px}
.embed p{padding:14px; margin:0}
.embed--fb iframe{width:100%; height:380px}

.form{display:grid; gap:10px}
.form__row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
label{display:grid; gap:6px; font-weight:600}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.12)}
.map{border-radius:18px; overflow:hidden; outline: 1px solid rgba(255,255,255,.10); height:320px; margin:10px 0 12px}
.map iframe{width:100%; height:100%; border:0}
.contact__actions{display:flex; gap:12px; flex-wrap:wrap}

.footer{
  padding:34px 0 18px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(7,12,24,.55);
  backdrop-filter: blur(10px);
}
.footer__inner{display:flex; justify-content:space-between; align-items:flex-start; gap:18px; flex-wrap:wrap}
.footer__links{display:flex; gap:14px; flex-wrap:wrap}
.footer__links a{color:var(--muted)}
.footer__links a:hover{color:var(--text); text-decoration:underline}
.footer__bottom{padding-top:10px; color:var(--muted)}
.footer__bottom a{color:var(--text); text-decoration:underline}

.fab{
  position:fixed; right:16px; bottom:16px; z-index:1000;
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background: rgba(17,31,61,.92);
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.fab:hover{transform: translateY(-1px)}
.fab__icon{font-size:20px}
.fab__text{font-weight:800}

.reveal{opacity:0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease}
.reveal.is-visible{opacity:1; transform:none}

@media (max-width: 980px){
  .grid--3{grid-template-columns:1fr 1fr}
  .videos{grid-template-columns: repeat(3, 1fr)}
  .gallery{grid-template-columns: repeat(3, 1fr)}
}

@media (max-width: 720px){
  .navbtn{display:inline-flex; align-items:center; justify-content:center}
  .nav{
    position:fixed; left:14px; right:14px; top:74px;
    display:none;
    flex-direction:column;
    padding:14px;
    border-radius: 18px;
    background: rgba(11,18,32,.92);
    border:1px solid rgba(255,255,255,.12);
    box-shadow: 0 26px 70px rgba(0,0,0,.45);
  }
  .nav.is-open{display:flex}
  .grid--2{grid-template-columns:1fr}
  .form__row{grid-template-columns:1fr}
  .videos{grid-template-columns: repeat(2, 1fr)}
  .gallery{grid-template-columns: repeat(2, 1fr)}
  .hero__content{padding:56px 0}
  .stat{min-width: 150px}
}

@media (prefers-reduced-motion: reduce){
  .reveal{transition:none}
  .btn{transition:none}
  .gallery__item{transition:none}
}