:root{
  --bg:#000;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.52);
  --border:rgba(255,255,255,.12);
  --radius:16px;
  --max:1120px;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

a{color:inherit;text-decoration:none}

.container{
  width:min(var(--max),calc(100% - 44px));
  margin:0 auto;
}

.runtime-links {
  color: var(--muted2);
  font-size: 13px;
}

.runtime-links a {
  display: block;
  margin-top: 6px;
  color: #fff;
  text-decoration: underline;
}

.card h2 {
  margin-bottom: 10px;
}

.card .sub {
  margin-top: 5;
  margin-bottom: 10px;
}

/* ================= TOPBAR ================= */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:14px;
}

.brand img{height:52px}

.nav{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  font-size:14px;
  color:var(--muted);
  font-weight:700;
}

.nav a:hover{color:#fff}

.btn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-weight:700;
  color:#fff;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn-primary{background:rgba(255,255,255,.14);}

/* ================= SECTIONS ================= */

.section{padding:46px 0}

h1{
  font-size:56px;
  margin:0 0 12px;
  letter-spacing:-1px;
}

h2{
  font-size:26px;
  margin:0 0 10px;
  letter-spacing:-.2px;
}

.sub{
  color:var(--muted);
  max-width:150ch;
  margin:0 0 14px;
  white-space:pre-line;
}

/* ================= CARDS ================= */

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:rgba(255,255,255,.03);
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

/* ================= TUTORIALES ================= */

.tutoriales-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.tutoriales-grid .card{
  display:flex;
  flex-direction:column;
}

.tutoriales-grid .card p{
  margin-bottom:8px; /* 🔥 menos espacio */
}

.tutoriales-grid .btn{
  margin-top:auto;
}

.estado{
  margin-top:6px;
  font-size:13px;
  color:var(--muted2);
}

/* ================= FOOTER ================= */

footer{
  border-top:1px solid var(--border);
  padding:32px 0;
  margin-top:48px;
  color:var(--muted2);
}

/* ================= CAROUSEL ================= */

.carousel{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
}

.carousel-track{
  display:flex;
  transition:transform .35s ease;
}

.carousel-slide{
  min-width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:14px;
}

.carousel-slide img,
.carousel-slide video{
  width:100%;
  height:520px;
  object-fit:contain;
  display:block;
  background:#000;
  border-radius:12px;
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:26px;
  cursor:pointer;
}

.carousel-btn.prev{left:12px}
.carousel-btn.next{right:12px}

.carousel-dots{
  position:absolute;
  bottom:10px;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  gap:8px;
}

.dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
}

.dot.active{
  background:#fff;
}

/* 🎥 DOT VIDEO */
.dot.dot-video{
  width:12px;
  height:12px;
  position:relative;
}

.dot.dot-video::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-40%,-50%);
  border-left:5px solid rgba(255,255,255,.9);
  border-top:3px solid transparent;
  border-bottom:3px solid transparent;
}

.dot.dot-video.active::before{
  border-left-color:#000;
}

/* ================= FAQ ================= */

.faq-item .faq-body{
  white-space:pre-line;
}

/* ================= MOBILE ================= */

@media(max-width:900px){
  h1{font-size:42px}

  .grid-2,
  .grid-3,
  .tutoriales-grid{
    grid-template-columns:1fr;
  }

  .carousel-slide img,
  .carousel-slide video{
    height:360px;
  }
}

@media(max-width:768px){
  html,body{overflow-x:hidden}

  .topbar-inner{
    flex-direction:column;
    gap:12px;
  }

  .nav{
    justify-content:center;
  }

  .container{
    padding-left:16px;
    padding-right:16px;
  }

  .btn{
    width:100%;
  }
}
