/* ====== V4 MODERNA + CARRUSEL ====== */
:root{
  --bg:#07070a;
  --gold:#FFD700;
  --gold2:#B8860B;
  --text:#F6F6F8;
  --muted:#cfcfd6;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.12);
  --stroke: rgba(255,255,255,.12);
  --shadow: 0 25px 60px rgba(0,0,0,.55);
  --radius: 22px;
}
*{box-sizing:border-box}
html,body{margin:0; padding:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text);}
a{color:inherit; text-decoration:none}
.container{width:min(1120px, 92vw); margin:0 auto;}
.lead{color: var(--muted); line-height:1.7; font-size:1.06rem; margin:0 0 22px}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:60;
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 18px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.brand{display:flex; gap:12px; align-items:center}
.brand-logo{
  width:78px; height:78px; object-fit:cover;
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(255,215,0,.25), var(--shadow);
}
.brand-name{font-weight:900; letter-spacing:1px; color: var(--gold); line-height:1}
.brand-sub{font-weight:700; opacity:.9; font-size:.86rem}
.links{display:flex; gap:14px; align-items:center}
.links a{opacity:.9; padding:10px 10px; border-radius: 12px; transition:.18s}
.links a:hover{background: rgba(255,255,255,.08); opacity:1}

/* Hero + carousel */
.hero{position:relative; min-height: 92vh; display:grid; align-items:center; overflow:hidden}
.hero-carousel{position:absolute; inset:0; z-index:0}
.slides{position:absolute; inset:0}
.slide{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  opacity:0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 1.2s ease;
}
.slide.is-active{opacity:1; transform: scale(1.00);}
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,215,0,.20), transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(255,180,60,.16), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.20), rgba(0,0,0,.86));
}
.hero-content{
  position:relative; z-index:2;
  width:min(1120px, 92vw); margin:0 auto;
  padding: 68px 0 48px;
  text-align:left;
}
.pill{
  display:inline-block;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,215,0,.30);
  background: rgba(0,0,0,.35);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.hero h1{
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 4.3vw, 4.2rem);
  letter-spacing:1px;
  text-shadow: 0 14px 40px rgba(0,0,0,.6);
}
.gold{
  background: linear-gradient(90deg, var(--gold), #FFF3A0, var(--gold2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.subtitle{margin:0 0 22px; color: var(--muted); font-size:1.1rem}

.kpis{
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.kpi{
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  overflow:hidden; position:relative;
}
.kpi::before{
  content:""; position:absolute; inset:-50px -60px auto auto; width:200px; height:200px;
  background: radial-gradient(circle, rgba(255,215,0,.22), transparent 65%);
  transform: rotate(25deg);
}
.kpi-title{font-weight:800; opacity:.95; margin-bottom: 8px}
.kpi-value{font-weight:950; color: var(--gold); font-size:1.5rem; letter-spacing:.2px}
.kpi-note{opacity:.88; color:#EAEAF0; margin-top:6px}

.cta{display:flex; gap:12px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  font-weight:900;
  letter-spacing:.2px;
  box-shadow: var(--shadow);
  transition:.18s transform, .18s background, .18s border;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,215,0,.25)}
.btn.primary{
  background: linear-gradient(135deg, rgba(255,215,0,.96), rgba(184,134,11,.96));
  color:#140f00;
  border-color: rgba(255,215,0,.55);
}
.btn.primary:hover{background: linear-gradient(135deg, rgba(255,215,0,1), rgba(184,134,11,1));}
.btn.ghost{}

/* carousel nav */
.navbtn{
  position:absolute; top:50%; transform: translateY(-50%);
  z-index:3;
  width:46px; height:46px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.40);
  color:#fff;
  font-size: 28px;
  cursor:pointer;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition:.18s;
}
.navbtn:hover{background: rgba(255,255,255,.10); border-color: rgba(255,215,0,.28)}
.navbtn.prev{left: 16px}
.navbtn.next{right: 16px}
.dots{
  position:absolute; left:50%; bottom: 18px; transform: translateX(-50%);
  z-index:3;
  display:flex; gap:8px; align-items:center;
}
.dot{
  width:10px; height:10px; border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.2);
  cursor:pointer;
  transition: .18s;
}
.dot.is-active{background: rgba(255,215,0,.95); transform: scale(1.15);}

/* Sections */
.section{padding: 64px 0}
.section.alt{
  background: rgba(0,0,0,.38);
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.section h2{margin:0 0 10px; color: var(--gold); font-size: clamp(1.6rem, 2.4vw, 2.2rem)}
.split{
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 18px;
}
.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 8px}
.card p{margin:0; color: var(--muted); line-height:1.6}

.prize-grid{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;}
.prize{
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.prize::before{
  content:""; position:absolute; inset:-60px -60px auto auto; width:220px; height:220px;
  background: radial-gradient(circle, rgba(255,215,0,.22), transparent 65%);
}
.emoji{font-size:1.6rem}
.prize h3{margin:10px 0 8px}
.money{font-size:1.65rem; font-weight:950; color: var(--gold); margin-bottom: 8px}
.prize ul{margin:0; padding-left: 18px; color:#EAEAF0}
.prize li{margin: 8px 0}
.goldp::before{background: radial-gradient(circle, rgba(255,215,0,.26), transparent 65%)}
.silverp::before{background: radial-gradient(circle, rgba(230,230,230,.20), transparent 65%)}
.bronzep::before{background: radial-gradient(circle, rgba(255,180,60,.20), transparent 65%)}

/* Gallery */
.gallery{
  display:grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.gallery img{
  width:100%; height: 180px; object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  transition:.18s transform, .18s border;
}
.gallery img:hover{transform: translateY(-2px); border-color: rgba(255,215,0,.25)}

/* Brands */
.brands{display:flex; gap:12px; flex-wrap:wrap}
.brandchip{
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,.28);
  background: rgba(0,0,0,.35);
  color: var(--gold);
  font-weight: 950;
  letter-spacing: .2px;
  box-shadow: var(--shadow);
}
.note{
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.34);
  color: var(--muted);
}

/* Footer */
.footer{padding: 26px 0; background: rgba(0,0,0,.55); border-top: 1px solid rgba(255,255,255,.10)}
.foot{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.muted{opacity:.82}

/* Responsive */
@media (max-width: 980px){
  .links{display:none}
  .kpis{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .prize-grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .hero-content{padding: 58px 0 44px}
}


/* Apoyo institucional */
.support-row{margin: 14px 0 6px;}
.support-chip{
  display:flex; gap:12px; align-items:center;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,.24);
  background: rgba(0,0,0,.40);
  box-shadow: var(--shadow);
}
.support-chip img{
  width: 54px; height: 54px; object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.support-title{font-weight:950; color: var(--gold); letter-spacing:.2px; line-height:1}
.support-sub{opacity:.86; color:#EAEAF0; font-weight:700; font-size:.92rem; margin-top:4px}

/* Patrocinadores (logos + cards) */
.sponsor-logos{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}
.sponsor-logos img{
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.32);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}
.sponsor-cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.sponsor-card{
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.sponsor-card h3{margin:0 0 6px; color: var(--gold); letter-spacing: .5px}
.sponsor-card p{margin:0; color: var(--muted); line-height:1.6}
.small-note{opacity:.78; color: var(--muted); margin-top: 12px; font-size: .95rem;}

@media (max-width: 980px){
  .sponsor-logos{grid-template-columns: 1fr 1fr}
  .sponsor-cards{grid-template-columns: 1fr}
  .support-chip{width:100%}
}

/* Formulario */
.form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  max-width:700px;
  margin:auto;
}
.form input{
  padding:14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.4);
  color:#fff;
}
.form button{
  grid-column:span 2;
}
@media(max-width:700px){
  .form{grid-template-columns:1fr;}
}

/* Redes Sociales */
.socials{
  display:flex;
  justify-content:center;
  gap:40px;
  margin-top:30px;
  flex-wrap:wrap;
}
.socials a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
  color:#FFD700;
  font-weight:800;
}
.socials img{
  width:70px;
  height:70px;
  border-radius:50%;
  box-shadow:0 10px 25px rgba(0,0,0,.6);
  transition:.2s transform;
}
.socials img:hover{
  transform:scale(1.1);
}
.socials span small{
  color:#ccc;
  font-weight:600;
}

/* Imagen premios */
.premios-visual{
  text-align:center;
  margin:30px 0;
}
.premios-visual img{
  max-width:100%;
  border-radius:24px;
  box-shadow:0 25px 60px rgba(0,0,0,.7);
}

/* WhatsApp flotante */
.whatsapp-float{
  position:fixed;
  right:20px;
  bottom:20px;
  background:#25D366;
  color:#fff;
  padding:14px 18px;
  border-radius:50px;
  font-weight:900;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  z-index:999;
  transition:.2s transform;
}
.whatsapp-float:hover{
  transform:scale(1.05);
}

/* Cronograma */
.timeline{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.day{
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align:left;
  position:relative;
  overflow:hidden;
}
.day::before{
  content:""; position:absolute; inset:-70px -70px auto auto; width:220px; height:220px;
  background: radial-gradient(circle, rgba(255,215,0,.22), transparent 65%);
}
.day-head{display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:10px}
.day-title{font-weight:950; letter-spacing:.2px}
.day-tag{
  padding:8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,.28);
  background: rgba(0,0,0,.35);
  color: var(--gold);
  font-weight:900;
  font-size: .9rem;
  white-space: nowrap;
}
.day ul{margin: 0; padding-left: 18px; color:#EAEAF0}
.day li{margin: 8px 0; color: var(--muted)}

/* Download card */
.download-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.34);
  box-shadow: var(--shadow);
}
.download-title{font-weight:950; color: var(--gold); margin-bottom:6px}
.download-sub{color: var(--muted); line-height:1.6}

@media (max-width: 980px){
  .timeline{grid-template-columns: 1fr;}
  .download-card{flex-direction:column; align-items:stretch}
}

/* Cronograma 2 días */
.timeline-2{grid-template-columns: repeat(2, minmax(0, 1fr));}

/* Grupos automáticos */
.groups-wrap{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.groups-controls{
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align:left;
}
.groups-controls label{display:block; margin-bottom:10px; color: var(--gold);}
#teamsInput{
  width:100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: #fff;
  outline:none;
  resize: vertical;
}
.btnrow{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.hint{margin-top:10px; color: var(--muted); line-height:1.6; font-size: .98rem}

.groups-table{
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align:left;
  overflow:hidden;
}
.groups-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.group{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 14px;
  position:relative;
  overflow:hidden;
}
.group::before{
  content:""; position:absolute; inset:-70px -70px auto auto; width:220px; height:220px;
  background: radial-gradient(circle, rgba(255,215,0,.18), transparent 65%);
}
.group h4{margin:0 0 8px; color: var(--gold); letter-spacing:.4px}
.group ol{margin:0; padding-left: 18px; color: #EAEAF0}
.group li{margin: 6px 0; color: var(--muted)}

@media (max-width: 980px){
  .timeline-2{grid-template-columns: 1fr;}
  .groups-wrap{grid-template-columns: 1fr;}
  .groups-grid{grid-template-columns: 1fr;}
}
