:root{
  --black:#050505;
  --white:#f5f5f7;
  --red:#ff2438;
  --red-dim:#ff243822;
  --glass:rgba(255,255,255,0.045);
  --glass-line:rgba(255,255,255,0.09);
  --gray-text:#86868b;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--black);
  color:var(--white);
  font-family:'Inter',-apple-system,sans-serif;
  overflow-x:hidden;
  max-width:100vw;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--red);color:var(--white);}

h1,h2,h3,.display{
  font-family:'Inter',-apple-system,sans-serif;
  font-weight:800;
  letter-spacing:-0.03em;
  line-height:1.02;
}
.mono{
  font-family:'JetBrains Mono',monospace;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
a{color:inherit;text-decoration:none;}

.grain{
  position:fixed;inset:0;z-index:200;pointer-events:none;
  opacity:0.05;mix-blend-mode:overlay;
}

.glow{
  position:absolute;border-radius:50%;
  background:radial-gradient(circle, var(--red) 0%, transparent 70%);
  filter:blur(90px);opacity:0.35;pointer-events:none;
}

/* ---------- NAV ---------- */
header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 5vw;
  background:rgba(5,5,5,0.55);
  backdrop-filter:blur(20px) saturate(160%);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease;
}
header.scrolled{border-bottom:1px solid var(--glass-line);}
.logo{font-weight:800;font-size:1rem;letter-spacing:-0.02em;display:flex;align-items:center;}
.logo-img{height:22px;width:auto;display:block;}
.logo span{color:var(--red);}
nav ul{list-style:none;display:flex;gap:2.6rem;}
nav a{
  font-size:0.88rem;font-weight:500;color:var(--gray-text);
  position:relative;padding-bottom:4px;
  transition:color .25s ease;
}
nav a::after{
  content:'';position:absolute;left:0;bottom:0;width:0;height:1px;
  background:var(--red);transition:width .25s ease;
}
nav a:hover{color:var(--white);}
nav a:hover::after{width:100%;}
nav a.active{color:var(--white);}
nav a.active::after{width:100%;}
.nav-toggle{display:none;background:none;border:0;color:var(--white);font-size:1.4rem;cursor:pointer;}

@media(max-width:820px){
  nav ul{
    position:fixed;top:64px;right:0;left:0;
    flex-direction:column;gap:0;
    background:rgba(5,5,5,0.97);
    border-bottom:1px solid var(--glass-line);
    max-height:0;overflow:hidden;
    transition:max-height .35s ease;
  }
  nav ul.open{max-height:300px;}
  nav ul li{border-top:1px solid var(--glass-line);}
  nav a{display:block;padding:1.1rem 5vw;}
  .nav-toggle{display:block;}
}

/* ---------- PAGE HERO (used on inner pages) ---------- */
.page-hero{
  min-height:52vh;
  display:flex;flex-direction:column;justify-content:center;
  padding:9rem 5vw 3rem;position:relative;
}
.page-hero .glow{width:50vw;height:50vw;top:-15%;left:50%;transform:translateX(-50%);}
.page-hero .eyebrow{
  color:var(--red);font-size:0.82rem;font-weight:600;
  margin-bottom:1.2rem;position:relative;z-index:1;
}
.page-hero h1{
  font-size:clamp(2.6rem,7vw,5rem);
  max-width:24ch;position:relative;z-index:1;
}
.page-hero p{
  max-width:46ch;margin-top:1.4rem;font-size:1.08rem;
  color:var(--gray-text);line-height:1.6;font-weight:400;
  position:relative;z-index:1;
}

/* ---------- HOME HERO ---------- */
.hero{
  min-height:100vh;
  display:flex;flex-direction:column;justify-content:center;
  padding:0 5vw;position:relative;
}
.hero .glow{width:60vw;height:60vw;top:-10%;left:50%;transform:translateX(-50%);}
.hero .eyebrow{
  color:var(--red);font-size:0.82rem;font-weight:600;
  margin-bottom:1.6rem;position:relative;z-index:1;
}
.hero h1{
  font-size:clamp(3rem,9vw,7.2rem);
  max-width:22ch;position:relative;z-index:1;
}
.hero h1 .accent,.accent{
  background:linear-gradient(100deg,var(--red) 0%, #ff6b57 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero p{
  max-width:42ch;margin-top:1.8rem;font-size:1.15rem;
  color:var(--gray-text);line-height:1.6;font-weight:400;
  position:relative;z-index:1;
}
.hero .cta-row{margin-top:2.8rem;display:flex;gap:1rem;flex-wrap:wrap;position:relative;z-index:1;}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:0.92rem;font-weight:600;
  padding:0.95rem 1.7rem;border-radius:100px;
  transition:transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, box-shadow .25s ease;
}
.btn.solid{background:var(--red);color:var(--white);box-shadow:0 0 30px var(--red-dim);}
.btn.solid:hover{transform:translateY(-2px);box-shadow:0 8px 40px var(--red-dim);}
.btn.ghost{background:var(--glass);border:1px solid var(--glass-line);backdrop-filter:blur(10px);}
.btn.ghost:hover{transform:translateY(-2px);background:rgba(255,255,255,0.08);}

.ticker-wrap{
  border-top:1px solid var(--glass-line);
  border-bottom:1px solid var(--glass-line);
  overflow:hidden;padding:1rem 0;margin-top:4rem;position:relative;z-index:1;
}
.ticker{display:flex;width:max-content;animation:scroll 24s linear infinite;}
@media (prefers-reduced-motion: reduce){ .ticker{animation:none;} }
.ticker span{
  font-size:0.85rem;font-weight:600;letter-spacing:0.03em;
  padding:0 2rem;color:var(--gray-text);white-space:nowrap;
}
.ticker span.accent{color:var(--red);-webkit-text-fill-color:var(--red);background:none;}
@keyframes scroll{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ---------- SECTION SHELL ---------- */
section{padding:6rem 5vw;position:relative;}
.section-head{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:2rem;margin-bottom:4.5rem;flex-wrap:wrap;
}
.section-head .mono{color:var(--red);font-size:0.75rem;font-weight:600;}
.section-head h2{font-size:clamp(2.2rem,4.5vw,3.6rem);margin-top:.6rem;}
.section-head p{max-width:34ch;color:var(--gray-text);font-size:0.98rem;line-height:1.55;}

.reveal{opacity:0;transform:translateY(24px);filter:blur(6px);transition:opacity .8s cubic-bezier(.2,.8,.2,1),transform .8s cubic-bezier(.2,.8,.2,1),filter .8s ease;}
.reveal.in{opacity:1;transform:translateY(0);filter:blur(0);}

/* ---------- HOME: LINK CARDS ---------- */
.link-cards{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;}
.link-card{
  display:block;padding:2.2rem;border-radius:24px;
  background:var(--glass);border:1px solid var(--glass-line);
  backdrop-filter:blur(16px);
  transition:border-color .3s ease, transform .3s ease, background .3s ease;
}
.link-card:hover{border-color:rgba(255,36,56,0.4);transform:translateY(-4px);background:rgba(255,255,255,0.06);}
.link-card h3{font-size:1.6rem;margin:.8rem 0 .6rem;}
.link-card p{color:var(--gray-text);font-size:0.95rem;line-height:1.55;margin-bottom:1.2rem;}
.link-card .arrow{color:var(--red);font-size:0.88rem;font-weight:600;}
@media(max-width:760px){ .link-cards{grid-template-columns:1fr;} }

/* ---------- STAT ROW (home) ---------- */
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;}
.stat{
  padding:2rem;border-radius:20px;background:var(--glass);border:1px solid var(--glass-line);
  backdrop-filter:blur(16px);text-align:center;
}
.stat strong{display:block;font-size:2.6rem;margin-bottom:.5rem;}
.stat strong.red{color:var(--red);text-shadow:0 0 30px rgba(255,36,56,0.4);}
.stat span{color:var(--gray-text);font-size:0.88rem;}
@media(max-width:760px){ .stat-row{grid-template-columns:1fr;} }

/* ---------- EVENTOS ---------- */
.evento{
  display:grid;grid-template-columns:90px 1fr 1fr;gap:2.4rem;
  padding:2.4rem;margin-bottom:1.4rem;align-items:start;
  background:var(--glass);border:1px solid var(--glass-line);
  border-radius:24px;backdrop-filter:blur(16px);
  transition:border-color .3s ease, background .3s ease;
}
.evento:hover{border-color:rgba(255,36,56,0.35);background:rgba(255,255,255,0.06);}
.evento .num{font-size:2.2rem;font-weight:800;color:var(--gray-text);opacity:0.5;}
.evento.is-next{
  border-color:rgba(255,36,56,0.5);
  box-shadow:0 20px 60px -10px rgba(255,36,56,0.22), 0 0 0 1px rgba(255,36,56,0.08) inset;
}
.evento.is-next:hover{box-shadow:0 24px 70px -8px rgba(255,36,56,0.3), 0 0 0 1px rgba(255,36,56,0.1) inset;}
.evento.is-next .num{color:var(--red);opacity:1;}
.evento h3{font-size:1.5rem;margin-bottom:.6rem;font-weight:700;letter-spacing:-0.02em;}
.evento .tag{
  display:inline-block;font-family:'JetBrains Mono',monospace;
  font-size:0.65rem;letter-spacing:0.08em;text-transform:uppercase;
  color:var(--red);border:1px solid rgba(255,36,56,0.4);
  padding:0.25rem 0.6rem;border-radius:100px;margin-bottom:.9rem;
}
.evento p{color:var(--gray-text);font-size:0.94rem;line-height:1.6;margin-bottom:1rem;font-weight:400;}
.evento .meta{display:flex;flex-wrap:wrap;gap:1.6rem;}
.evento .meta div{font-family:'JetBrains Mono',monospace;font-size:0.68rem;color:var(--gray-text);text-transform:uppercase;letter-spacing:0.04em;}
.evento .meta strong{display:block;color:var(--white);font-size:0.98rem;font-family:'Inter',sans-serif;font-weight:600;margin-top:.3rem;letter-spacing:-0.01em;}

@media(max-width:760px){
  .evento{grid-template-columns:1fr;gap:1rem;padding:1.8rem;}
}

/* ---------- URBAN ROOM ---------- */
.urban-room-intro{position:relative;}
.urban-room-intro .glow{width:40vw;height:40vw;top:-10%;right:-10%;opacity:0.25;}

/* ---------- URBAN ROOM: FULL-SCREEN HERO CAROUSEL ---------- */
.ur-hero{
  position:relative;min-height:100vh;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:var(--black);
  will-change:transform, opacity;
}
.ur-hero-bg{
  position:absolute;inset:0;z-index:0;
  display:flex;flex-direction:column;justify-content:center;gap:0.9rem;
  transform:rotate(-4deg) scale(1.15);
}
.ur-hero-row{display:flex;gap:0.9rem;width:max-content;}
.ur-hero-row.row-left{animation:heroScrollLeft 50s linear infinite;}
.ur-hero-row.row-right{animation:heroScrollRight 50s linear infinite;}
@keyframes heroScrollLeft{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@keyframes heroScrollRight{ from{transform:translateX(-50%);} to{transform:translateX(0);} }
@media (prefers-reduced-motion: reduce){
  .ur-hero-row.row-left, .ur-hero-row.row-right{animation:none;}
}
.ur-hero-tile{
  width:150px;aspect-ratio:9/16;border-radius:14px;flex-shrink:0;
  background-color:#111;background-size:cover;background-position:center;
  position:relative;overflow:hidden;
  filter:saturate(0.7) brightness(0.55);
  border:1px solid rgba(255,255,255,0.06);
}
.ur-hero-tile span{
  position:absolute;bottom:0.6rem;left:0.7rem;
  font-family:'JetBrains Mono',monospace;font-size:0.65rem;color:var(--white);
  opacity:0.8;
}
.ur-hero-tile-empty{background:linear-gradient(160deg, #151515 0%, #0a0a0a 100%);}
.ur-hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:radial-gradient(ellipse at center, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.88) 65%, var(--black) 100%);
}
.ur-hero-content{
  position:relative;z-index:2;text-align:center;
  max-width:44ch;padding:0 5vw;
  display:flex;flex-direction:column;align-items:center;
}
.ur-hero-content .eyebrow{color:var(--red);font-size:0.82rem;font-weight:600;margin-bottom:1.2rem;}
.ur-hero-content h1{font-size:clamp(2.8rem,7.5vw,5.6rem);font-weight:800;letter-spacing:-0.03em;}
.ur-hero-content p{margin-top:1.4rem;font-size:1.08rem;color:var(--gray-text);line-height:1.6;}
.ur-hero-scroll{
  margin-top:3.2rem;font-size:0.68rem;color:var(--gray-text);
  animation:heroBounce 2s ease-in-out infinite;
}
@keyframes heroBounce{ 0%,100%{transform:translateY(0);opacity:.6;} 50%{transform:translateY(6px);opacity:1;} }
@media (prefers-reduced-motion: reduce){ .ur-hero-scroll{animation:none;} }

@media(max-width:760px){
  .ur-hero-tile{width:100px;}
}

.ur-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:3rem;align-items:center;position:relative;z-index:1;}
.ur-copy p{color:var(--gray-text);line-height:1.7;margin-bottom:1.4rem;font-size:1.02rem;font-weight:400;}
.ur-sessions{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.ur-cell{
  aspect-ratio:1/1;border-radius:20px;
  background:var(--glass);border:1px solid var(--glass-line);
  backdrop-filter:blur(16px);
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:1.2rem;position:relative;overflow:hidden;
  transition:border-color .3s ease, transform .3s ease;
}
.ur-cell::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 30% 20%, var(--red) 0%, transparent 60%);
  opacity:0.12;transition:opacity .3s ease;
}
.ur-cell:hover{border-color:rgba(255,36,56,0.4);transform:translateY(-4px);}
.ur-cell:hover::before{opacity:0.28;}
.ur-cell .mono{font-size:0.62rem;color:var(--gray-text);}
.ur-cell strong{display:block;font-size:1.05rem;font-weight:700;letter-spacing:-0.01em;margin-top:.3rem;}
.ur-edition strong{font-size:1.5rem;}

@media(max-width:820px){ .ur-grid{grid-template-columns:1fr;} }

/* ---------- URBAN ROOM: VIDEO GRIDS ---------- */
.ur-edition-block{margin-bottom:4.5rem;}
.ur-edition-head{
  display:flex;align-items:baseline;gap:1rem;margin-bottom:2rem;flex-wrap:wrap;
  border-bottom:1px solid var(--glass-line);padding-bottom:1.2rem;
}
.ur-edition-head h2{font-size:clamp(1.6rem,3.2vw,2.4rem);}
.ur-edition-head .mono{color:var(--red);font-size:0.72rem;font-weight:600;}
.ur-video-grid{
  display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;
}
@media(max-width:1100px){ .ur-video-grid{grid-template-columns:repeat(3,1fr);} }
@media(max-width:640px){ .ur-video-grid{grid-template-columns:repeat(2,1fr);} }

.ur-video{
  aspect-ratio:9/13;border-radius:16px;position:relative;overflow:hidden;
  background:var(--glass);border:1px solid var(--glass-line);
  backdrop-filter:blur(16px);
  display:flex;flex-direction:column;justify-content:space-between;
  padding:0.9rem;transition:border-color .3s ease, transform .3s ease;
  cursor:pointer;font-family:inherit;text-align:left;width:100%;
}
.ur-video::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 30% 15%, var(--red) 0%, transparent 55%);
  opacity:0.14;transition:opacity .3s ease;
  z-index:1;
}
.ur-video:hover{border-color:rgba(255,36,56,0.45);transform:translateY(-3px);}
.ur-video:hover::before{opacity:0.3;}
.ur-video .ss-num{
  font-family:'JetBrains Mono',monospace;font-size:0.68rem;font-weight:600;
  color:var(--white);position:relative;z-index:2;
  text-shadow:0 1px 4px rgba(0,0,0,0.6);
}
.ur-video .play{
  align-self:center;justify-self:center;margin:auto;position:relative;z-index:2;
  width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,0.1);border:1px solid var(--glass-line);
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease, transform .25s ease;
}
.ur-video:hover .play{background:var(--red);transform:scale(1.08);}
.ur-video .play svg{width:12px;height:12px;fill:var(--white);margin-left:2px;}
.ur-video .ss-label{
  font-size:0.68rem;color:var(--gray-text);position:relative;z-index:2;
  font-family:'JetBrains Mono',monospace;letter-spacing:0.05em;
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-shadow:0 1px 4px rgba(0,0,0,0.6);
}
.ur-video-thumb{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  z-index:0;opacity:0.5;transition:opacity .3s ease,transform .4s ease;
}
.ur-video.has-thumb:hover .ur-video-thumb{opacity:0.7;transform:scale(1.04);}
.ur-video.has-thumb::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg, rgba(5,5,5,0.15) 0%, rgba(5,5,5,0.75) 100%);
}
.ur-video.is-pending{opacity:0.45;cursor:default;}
.ur-video.is-pending:hover{transform:none;border-color:var(--glass-line);}
.ur-video.is-pending .ss-label{color:var(--gray-text);}

/* ---------- INSTAGRAM MODAL ---------- */
.ig-modal{
  position:fixed;inset:0;z-index:300;
  background:rgba(5,5,5,0.88);backdrop-filter:blur(12px);
  display:none;align-items:center;justify-content:center;
  padding:2rem 1rem;
}
.ig-modal.open{display:flex;}
.ig-modal-inner{
  position:relative;width:100%;max-width:400px;max-height:88vh;overflow:auto;
  border-radius:20px;
}
.ig-modal-close{
  position:absolute;top:-3rem;right:0;z-index:2;
  width:38px;height:38px;border-radius:50%;
  background:var(--glass);border:1px solid var(--glass-line);
  color:var(--white);font-size:1rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:border-color .2s ease, background .2s ease;
}
.ig-modal-close:hover{border-color:rgba(255,36,56,0.5);background:rgba(255,36,56,0.15);}
.ig-modal-body{min-height:200px;display:flex;align-items:center;justify-content:center;width:100%;}
.ig-modal-body .ig-loading{color:var(--gray-text);font-family:'JetBrains Mono',monospace;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.08em;}
.yt-embed-wrap{
  position:relative;width:100%;aspect-ratio:9/16;
  border-radius:16px;overflow:hidden;background:#000;
}
.yt-embed-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

/* ---------- COUNTDOWN ---------- */
.countdown{
  margin-top:1rem;position:relative;z-index:1;
  background:var(--glass);border:1px solid var(--glass-line);
  border-radius:28px;backdrop-filter:blur(16px);
  padding:3rem clamp(1.6rem,5vw,3.2rem);
  text-align:center;
  box-shadow:0 30px 80px -20px rgba(255,36,56,0.18);
}
.countdown h3{font-size:clamp(1.5rem,3.4vw,2.2rem);margin:.7rem 0 .6rem;}
.countdown p{color:var(--gray-text);font-size:0.98rem;margin-bottom:2rem;}
.countdown-grid{
  display:flex;justify-content:center;gap:clamp(1rem,4vw,2.6rem);flex-wrap:wrap;
}
.countdown-unit{
  background:rgba(255,255,255,0.03);border:1px solid var(--glass-line);
  border-radius:18px;padding:1.2rem clamp(1rem,3vw,1.8rem);min-width:88px;
}
.countdown-unit span{
  display:block;font-family:'JetBrains Mono',monospace;font-weight:700;
  font-size:clamp(1.8rem,4.5vw,2.6rem);color:var(--red);
  text-shadow:0 0 30px rgba(255,36,56,0.4);
}
.countdown-unit label{
  display:block;margin-top:.4rem;font-family:'JetBrains Mono',monospace;
  font-size:0.65rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--gray-text);
}

/* ---------- CONTACTO ---------- */
.contacto{display:grid;grid-template-columns:1.2fr 1fr;gap:3rem;position:relative;}
.contacto h2{font-size:clamp(2.4rem,6vw,4.6rem);}
.contacto .lead{color:var(--gray-text);max-width:34ch;margin-top:1.4rem;line-height:1.6;font-size:1.05rem;}
.contact-list{margin-top:2.4rem;}
.contact-list a{
  display:flex;justify-content:space-between;align-items:center;
  padding:1.3rem 1.6rem;margin-bottom:.8rem;border-radius:16px;
  background:var(--glass);border:1px solid var(--glass-line);
  font-size:1.05rem;font-weight:600;
  transition:border-color .2s ease, transform .2s ease;
}
.contact-list a:hover{border-color:rgba(255,36,56,0.4);transform:translateX(4px);}
.contact-list .mono{font-size:0.68rem;color:var(--gray-text);}

.contact-card{
  background:var(--glass);border:1px solid var(--glass-line);
  backdrop-filter:blur(16px);border-radius:24px;
  padding:2.6rem;align-self:start;
}
.contact-card .mono{color:var(--red);font-size:0.7rem;font-weight:600;margin-bottom:1rem;}
.contact-card p{color:var(--gray-text);font-size:0.92rem;line-height:1.65;font-weight:400;}

@media(max-width:820px){ .contacto{grid-template-columns:1fr;} }

footer{
  padding:2.4rem 5vw;border-top:1px solid var(--glass-line);
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:1rem;
}
footer .mono{font-size:0.66rem;color:var(--gray-text);}

a:focus-visible, button:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:4px;}
