:root{
  --bg:#050505;
  --panel:#0a0a0a;
  --text:#f5f5f5;
  --muted:#8d8d8d;
  --line:rgba(255,255,255,.08);
  --purple:#a855f7;
  --purple-soft:rgba(168,85,247,.45);
  --white-soft:rgba(255,255,255,.85);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,body{
  width:100%;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:"Inter",sans-serif;
  overflow-x:hidden;
}

body{
  position:relative;
}

.noise,
.glow-left,
.glow-right{
  pointer-events:none;
  position:fixed;
  inset:0;
  z-index:0;
}

.noise{
  opacity:.035;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.7px),
    radial-gradient(circle at 80% 40%, #fff 0.6px, transparent 0.7px),
    radial-gradient(circle at 50% 80%, #fff 0.6px, transparent 0.7px);
  background-size:120px 120px;
}

.glow-left::before,
.glow-right::before{
  content:"";
  position:absolute;
  width:320px;
  height:320px;
  border-radius:50%;
  filter:blur(80px);
  opacity:.28;
}

.glow-left::before{
  left:-80px;
  top:180px;
  background:var(--purple);
}

.glow-right::before{
  right:-100px;
  top:300px;
  background:var(--purple);
}

.page{
  position:relative;
  z-index:1;
  min-height:100vh;
  padding:26px;
}

.frame{
  min-height:calc(100vh - 52px);
  border:1px solid rgba(255,255,255,.04);
  background:linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.005));
  position:relative;
  overflow:hidden;
}

.hero{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  align-items:center;
  min-height:calc(100vh - 120px);
  padding:10px 70px 25px 92px;
  gap:20px;
  position:relative;
}

.hero-left{
  position:relative;
  z-index:2;
  padding-left:0;
  transform:translateY(-50px);
}

.title{
  font-size:clamp(3.6rem, 9vw, 8rem);
  line-height:.9;
  font-weight:900;
  letter-spacing:-0.08em;
  max-width:700px;
  margin-left:-6px;
}

.title .accent{
  color:#b78cff;
  text-shadow:0 0 28px rgba(183,140,255,.18);
  animation:accentPulse 3s ease-in-out infinite;
}

.desc{
  margin-top:26px;
  max-width:420px;
  color:#b8b8b8;
  font-size:1rem;
  line-height:1.75;
  position:relative;
  z-index:4;
}

.socials{
  position:absolute;
  left:34px;
  bottom:90px;
  display:flex;
  flex-direction:column;
  gap:18px;
  z-index:3;
}

.socials a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  color:#ddd;
  text-decoration:none;
  opacity:.95;
  transition:transform .22s ease, opacity .22s ease;
  transform-origin:center;
}

.socials a:hover{
  transform:scale(1.18);
  opacity:1;
}

.socials svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}

.hero-right{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:560px;
  z-index:2;
}

/* MUÑECO */

.hacker-character{
  position:absolute;
  left:380px;
  top:420px;
  width:520px;
  z-index:3;
  pointer-events:none;
}

.hacker-character::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  width:260px;
  height:90px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(168,85,247,.34) 0%, rgba(168,85,247,.18) 38%, rgba(168,85,247,.08) 58%, transparent 75%);
  filter:blur(24px);
  z-index:-1;
  pointer-events:none;
}

.hacker-character img{
  width:100%;
  height:auto;
  display:block;
}

/* VENTANAS DERECHA */

.info-windows{
  position:relative;
  width:min(820px, 100%);
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.windows-glow{
  position:absolute;
  width:72%;
  height:72%;
  border-radius:50%;
  background:radial-gradient(circle, rgba(168,85,247,.22) 0%, rgba(168,85,247,.08) 38%, transparent 72%);
  filter:blur(34px);
  animation:floatGlow 5s ease-in-out infinite;
  pointer-events:none;
}

.windows-stack{
  position:relative;
  width:100%;
  max-width:1020px;
  display:grid;
  gap:12px;
  z-index:2;
  margin-top:10px;
}

.info-window{
  position:relative;
  min-height:150px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(168,85,247,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 50px rgba(168,85,247,.08);
  overflow:hidden;
  backdrop-filter:blur(6px);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

.info-window:hover{
  transform:translateY(-4px);
  border-color:rgba(168,85,247,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 18px 35px rgba(0,0,0,.22),
    0 0 42px rgba(168,85,247,.14);
}

.info-window::before{
  content:"";
  position:absolute;
  inset:18px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:22px;
  pointer-events:none;
}

.info-window::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:70%;
  height:100%;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.06),
    transparent
  );
  transform:skewX(-18deg);
  transition:left .8s ease;
  pointer-events:none;
}

.info-window:hover::after{
  left:150%;
}

.info-window.large{
  min-height:210px;
}

.window-content{
  position:relative;
  z-index:2;
  padding:34px;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.7;
}

.window-content h3{
  color:var(--text);
  font-size:1.15rem;
  font-weight:800;
  letter-spacing:-0.03em;
  margin-bottom:10px;
}

.stats-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:4px;
  margin-bottom:16px;
}

.stat-card{
  position:relative;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 20px rgba(168,85,247,.08);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-height:72px;
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.stat-card:hover{
  transform:translateY(-2px);
  border-color:rgba(168,85,247,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 24px rgba(0,0,0,.18),
    0 0 24px rgba(168,85,247,.12);
}

.stat-number{
  font-size:1.8rem;
  font-weight:800;
  line-height:1;
  color:var(--text);
  letter-spacing:-0.04em;
  text-shadow:0 0 18px rgba(168,85,247,.18);
}

.stat-rank{
  font-size:1.15rem;
  font-weight:800;
  line-height:1.1;
  color:#c79bff;
  text-shadow:0 0 18px rgba(168,85,247,.18);
}

.stat-label{
  margin-top:8px;
  font-size:.78rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
}

/* CURSOR GLOW */

.cursor-glow{
  position:fixed;
  width:280px;
  height:280px;
  border-radius:50%;
  pointer-events:none;
  z-index:1;
  background:radial-gradient(circle, rgba(168,85,247,.18) 0%, rgba(168,85,247,.10) 25%, rgba(168,85,247,.04) 45%, transparent 72%);
  filter:blur(24px);
  transform:translate(-50%, -50%);
  transition:transform .08s linear;
  mix-blend-mode:screen;
}

@keyframes floatGlow{
  0%,100%{ transform:scale(1); opacity:.26; }
  50%{ transform:scale(1.05); opacity:.34; }
}

@keyframes accentPulse{
  0%,100%{
    text-shadow:0 0 18px rgba(183,140,255,.14);
  }
  50%{
    text-shadow:0 0 34px rgba(183,140,255,.28);
  }
}

@media (max-width: 1100px){
  .hero{
    grid-template-columns:1fr;
    padding:40px 34px 90px 34px;
  }

  .hero-right{
    min-height:420px;
  }

  .socials{
    left:22px;
  }

  .hacker-character{
    position:relative;
    left:auto;
    top:auto;
    width:320px;
    margin:10px 0 0 0;
  }

  .title{
    margin-left:0;
  }

  .desc{
    max-width:520px;
  }

  .info-windows{
    min-height:auto;
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width: 700px){
  .page{
    padding:12px;
  }

  .frame{
    min-height:auto;
  }

  .hero{
    min-height:auto;
    padding:34px 20px 36px;
    gap:24px;
  }

  .hero-left{
    transform:none;
  }

  .title{
    margin-left:0;
    max-width:100%;
    font-size:clamp(2.5rem, 13vw, 3.2rem);
    line-height:1;
    letter-spacing:-0.06em;
    word-break:break-word;
  }

  .desc{
    max-width:100%;
    margin-top:20px;
    font-size:1rem;
    line-height:1.7;
  }

  .hacker-character{
    width:250px;
    margin:4px auto 0;
  }

  .hero-right{
    min-height:auto;
  }

  .info-windows{
    min-height:auto;
    width:100%;
    justify-content:flex-start;
  }

  .windows-stack{
    max-width:100%;
  }

  .window-content{
    padding:26px;
  }

  .socials{
    position:static;
    width:100%;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:28px;
    margin:6px 0 24px 0;
  }

  .socials a{
    width:30px;
    height:30px;
  }

  .cursor-glow{
    width:180px;
    height:180px;
  }

  .stats-row{
    grid-template-columns:1fr;
  }
}

/* =========================
   CARRUSEL HTB
   ========================= */

.carousel{
  margin-top:15px;
  width:100%;
  height:115px;
  overflow:hidden;
  border-radius:18px;
  position:relative;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 30px rgba(0,0,0,.28),
    0 0 30px rgba(168,85,247,.08);
  background:rgba(255,255,255,.02);
}

.carousel-images{
  position:relative;
  width:100%;
  height:100%;
}

.carousel::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,.28) 100%
  );
  z-index:2;
  pointer-events:none;
}

.carousel img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.06);
  transition:opacity .9s ease, transform 4.2s ease;
}

.carousel img.active{
  opacity:1;
  transform:scale(1);
}

.carousel-dots{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  display:flex;
  gap:7px;
  z-index:3;
}

.dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.28);
  border:1px solid rgba(255,255,255,.14);
  transition:all .25s ease;
}

.dot.active{
  width:20px;
  border-radius:999px;
  background:rgba(168,85,247,.95);
  box-shadow:0 0 14px rgba(168,85,247,.45);
}
