:root {
  --bg: #050505;
  --panel: rgba(15, 15, 15, 0.75);
  --text: #ffffff;
  --muted: #a0a0a0;
  --red: #ff1f1f;
  --red-glow: rgba(255, 31, 31, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --accent: #3ee58a;
}

* { box-sizing: border-box; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Background Estético Elite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 10% 10%, rgba(255, 31, 31, 0.12), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255, 31, 31, 0.08), transparent 40%);
}

.appShell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

/* SIDEBAR GLASS */
.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.logoImg {
  width: 60px; height: 60px;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 0 20px var(--red-glow);
  border: 1px solid rgba(255,255,255,0.1);
}

.brand h1 { font-size: 22px; margin: 0; letter-spacing: -0.5px; }
.brand p { color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 5px 0 0; }

.menu { margin: 40px 0; display: flex; flex-direction: column; gap: 10px; }
.btn {
  text-decoration: none;
  color: var(--muted);
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn:hover, .btn.active { background: rgba(255, 31, 31, 0.1); color: var(--text); }
.dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.btn.active .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* MAIN CONTENT */
.main { min-width: 0; }

.topbar {
  background: var(--panel);
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kicker { font-size: 11px; color: var(--red); font-weight: 800; letter-spacing: 2px; }
.topbar h2 { margin: 5px 0 0; font-size: 24px; }

.section {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 30px;
  overflow: hidden;
}

.sectionHead {
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sectionHead h3 { font-size: 14px; margin: 0; letter-spacing: 1px; color: var(--muted); }

/* VIDEO AREA */
.videoWrap { padding: 20px; }
.videoFrame {
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.videoFrame iframe { width: 100%; height: 100%; border: 0; }
.main-cta { text-align: center; padding: 20px 0 40px; }
.highlight-text { font-size: 18px; margin-bottom: 20px; color: var(--muted); }

/* ==== SECCIÓN SUPER CURSO (NUEVO DISEÑO APILADO) ==== */
.highlight-section { background: linear-gradient(145deg, rgba(255, 31, 31, 0.08), rgba(15, 15, 15, 0.9)); border: 1px solid rgba(255, 31, 31, 0.3); }
.courseContainer { padding: 25px; display: flex; flex-direction: column; gap: 25px; }

/* Imagen Full Width controlada */
.imgFrameFull {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.imgFrameFull img {
  width: 100%;
  display: block;
  aspect-ratio: 3/2; /* Mantiene la proporción exacta de 1536x1024 */
  object-fit: cover;
}
.imgOverlay {
  position: absolute; bottom: 0; width: 100%;
  background: rgba(255, 31, 31, 0.95);
  padding: 10px; text-align: center; font-size: 13px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px;
}

.courseInfoFull h4 { font-size: 26px; margin: 0 0 15px; color: var(--red); }
.courseInfoFull p { color: var(--muted); font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
.benefit-list .benefit { margin-bottom: 12px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start;}

/* Bloque de Oferta (Temporizador + Precios) */
.offerBlock {
  background: rgba(255, 31, 31, 0.05);
  border: 1px solid rgba(255, 31, 31, 0.25);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
  text-align: center;
}
.timer-wrapper { margin-bottom: 20px; }
.timer-label { font-size: 14px; font-weight: 800; color: #ff4d4d; letter-spacing: 1px; }
.timer-display {
  font-size: 48px; font-weight: 900; color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1; margin-top: 5px;
  text-shadow: 0 0 20px rgba(255, 31, 31, 0.6);
}

.priceContainerStacked { margin-bottom: 20px; }
.strikePrice {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 5px;
}
.mainPrice { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 5px;}
.altPrices { font-size: 15px; color: var(--accent); font-weight: bold; }

.screenshot-cta {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  margin: 25px 0;
  text-align: left;
  border-left: 4px solid var(--accent);
}
.screenshot-cta p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; }

/* CARDS GRID */
.gridCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 25px; }
.card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; }
.cardImg img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); }
.cardBody { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.cardBody h5 { margin: 0 0 10px; font-size: 18px; color: #fff; }
.cardBody p { font-size: 13px; color: var(--muted); margin-bottom: 15px; }
.cardPrice { font-weight: 800; color: #fff; font-size: 16px; margin: 10px 0; }
.cardPrice small { font-size: 12px; color: var(--muted); font-weight: normal; }

/* DESPLEGABLES */
.card-details { max-height: 0; overflow: hidden; transition: 0.4s ease-out; }
.card-details.active { max-height: 400px; margin: 15px 0; }
.benefit-list-mini { list-style: none; padding: 0; margin: 0; }
.benefit-list-mini li { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 8px; }
.benefit-list-mini li span { color: var(--accent); }

/* BOTONES */
.action { display: block; text-align: center; text-decoration: none; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 13px; color: #fff; border: 1px solid var(--line); transition: 0.3s; cursor: pointer; }
.action.primary { background: var(--red); border: none; box-shadow: 0 10px 20px rgba(255, 31, 31, 0.2); }
.action.primary:hover { transform: scale(1.03); background: #e60000; }
.action.big { padding: 18px; font-size: 16px; }

.cta-final { display: none; margin-top: 10px; }
.cta-final.show { display: block; animation: fadeIn 0.3s forwards; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 31, 31, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 31, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 31, 31, 0); }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .appShell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; top: 0; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 600px) {
  .timer-display { font-size: 38px; }
  .mainPrice { font-size: 30px; }
  .offerBlock { padding: 20px 15px; }
}
