@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&display=swap');

.av-root {
  --av-bg: #05060d;
  --av-grid: rgba(100,120,255,0.07);
  --av-blue: #4d8fff;
  --av-purple: #7c3aed;
  --av-cyan: #00e5ff;
  --av-text: #e8eaf6;
  --av-muted: #7986a8;
  --av-card: rgba(13,17,35,0.85);
  --av-border: rgba(100,130,255,0.15);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  background: var(--av-bg);
  color: var(--av-text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.4;
  padding: 8px 0 48px;
}
.av-root *, .av-root *::before, .av-root *::after { box-sizing: border-box; }
.av-root img { max-width: 100%; }

.av-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--av-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--av-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}
.av-orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.av-orb1 { width: 420px; height: 420px; background: rgba(77,143,255,0.14); top: -80px; right: -80px; }
.av-orb2 { width: 340px; height: 340px; background: rgba(124,58,237,0.12); bottom: 80px; left: -70px; }

.av-banner {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 18px auto 0; padding: 14px 20px;
  border: 1px solid rgba(251,191,36,0.3); background: rgba(251,191,36,0.08);
  border-radius: 12px; color: #fbbf24; font-size: 15.5px; line-height: 1.6;
}
.av-banner b { color: #fde68a; }

.av-top {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; padding: 48px 24px 8px; text-align: center;
}
.av-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--av-cyan); margin-bottom: 14px; }
.av-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px, 5.5vw, 52px); letter-spacing: 1px; line-height: 1; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--av-blue) 70%, var(--av-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.av-subtitle { color: var(--av-muted); font-size: 18px; max-width: 540px; margin: 0 auto; }

.av-section { position: relative; z-index: 1; padding: 36px 24px; max-width: 950px; margin: 0 auto; }
.av-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.av-section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(24px, 3.5vw, 32px); letter-spacing: 1px; }

.av-admin-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.av-admin-badge {
  font-size: 13.5px; font-weight: 700; letter-spacing: .5px; color: #4ade80;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3);
  padding: 6px 12px; border-radius: 100px;
}

.av-btn { font-family: 'Outfit', sans-serif; cursor: pointer; border-radius: 9px; font-weight: 600; }
.av-btn-primary {
  background: linear-gradient(135deg, var(--av-blue), var(--av-cyan)); color: #000; font-size: 15.5px;
  padding: 10px 20px; border: none; box-shadow: 0 0 20px rgba(77,143,255,0.25);
  transition: transform 0.2s, box-shadow 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.av-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(77,143,255,0.4); }
.av-btn-secondary {
  background: transparent; color: var(--av-text); font-size: 15.5px;
  padding: 9px 18px; border: 1px solid var(--av-border); transition: background 0.2s, border-color 0.2s;
}
.av-btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--av-blue); }
.av-btn-ghost {
  background: transparent; color: var(--av-cyan); font-size: 14px;
  padding: 8px 14px; border: 1px solid var(--av-border); transition: border-color 0.2s;
}
.av-btn-ghost:hover { border-color: var(--av-cyan); }
.av-btn-danger {
  background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.3);
  padding: 7px 13px; font-size: 14px;
}
.av-btn-danger:hover { background: rgba(248,113,113,0.18); }
.av-icon-btn {
  background: transparent; border: 1px solid var(--av-border); color: var(--av-muted);
  width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.2s, color 0.2s;
}
.av-icon-btn:hover { border-color: var(--av-blue); color: var(--av-text); }

.av-empty-state {
  text-align: center; padding: 50px 22px; border: 1px dashed var(--av-border); border-radius: 16px; color: var(--av-muted);
}
.av-empty-state .av-emoji { font-size: 30px; margin-bottom: 10px; }

.av-modules-list { display: flex; flex-direction: column; gap: 14px; }
.av-module-card { background: var(--av-card); border: 1px solid var(--av-border); border-radius: 16px; overflow: hidden; }
.av-module-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; cursor: pointer; user-select: none; }
.av-module-head-left { display: flex; align-items: center; gap: 12px; }
.av-module-chevron { color: var(--av-muted); font-size: 13px; transition: transform 0.25s; }
.av-module-card.is-open .av-module-chevron { transform: rotate(90deg); }
.av-module-title { font-size: 18.5px; font-weight: 600; margin-bottom: 4px; }
.av-module-meta { font-size: 14px; color: var(--av-muted); display: flex; align-items: center; gap: 8px; }

.av-level-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 100px; border: 1px solid; }
.av-level-pill.basico { color: #4ade80; border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.08); }
.av-level-pill.intermedio { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.08); }
.av-level-pill.avanzado { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); }

.av-module-actions { display: flex; align-items: center; gap: 8px; }
.av-module-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; border-top: 1px solid transparent; }
.av-module-card.is-open .av-module-body { border-top: 1px solid var(--av-border); }
.av-class-list { display: flex; flex-direction: column; }
.av-class-item { border-bottom: 1px solid var(--av-border); }
.av-class-item:last-child { border-bottom: none; }
.av-class-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; }
.av-class-info { flex: 1; min-width: 0; }
.av-class-title { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.av-class-desc { font-size: 14.5px; color: var(--av-muted); line-height: 1.5; }
.av-class-duration { font-size: 12px; color: var(--av-cyan); font-weight: 600; margin-top: 5px; display: inline-block; }
.av-class-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.av-add-class-row { padding: 13px 22px; }
.av-class-player { padding: 0 22px 18px; }
.av-class-player-frame {
  position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid var(--av-border);
}
.av-class-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.av-class-player-fallback { margin-top: 8px; font-size: 13.5px; color: var(--av-muted); }
.av-class-player-fallback a { color: var(--av-cyan); text-decoration: none; }
.av-class-player-fallback a:hover { text-decoration: underline; }

.av-advisory-card {
  position: relative; text-align: center; margin: 6px auto 10px; padding: 50px 32px;
  border: 1px solid var(--av-border); border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(77,143,255,0.14), transparent 60%), var(--av-card);
}
.av-advisory-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(74,222,128,0.3); background: rgba(74,222,128,0.08);
  padding: 6px 16px; border-radius: 100px; font-size: 13.5px; font-weight: 700; letter-spacing: 1px;
  color: #4ade80; margin-bottom: 18px;
}
.av-advisory-card h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(26px, 4.5vw, 40px); letter-spacing: 1px; margin-bottom: 12px; }
.av-advisory-card p { color: var(--av-muted); font-size: 17px; max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
.av-advisory-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.av-lock-wrap { position: relative; }
.av-modules-blurred {
  filter: blur(9px) saturate(0.7);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}
.av-lock-overlay {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.av-lock-box {
  width: 100%; max-width: 380px; text-align: center;
  background: rgba(9,11,24,0.92); border: 1px solid var(--av-border);
  border-radius: 18px; padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.av-lock-icon { font-size: 34px; margin-bottom: 10px; }
.av-lock-box h3 { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; margin-bottom: 8px; }
.av-lock-box p { color: var(--av-muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.av-lock-box .av-field { text-align: left; }
.av-lock-box input#avAccessCodeInput {
  text-align: center; letter-spacing: 4px; font-weight: 700; text-transform: uppercase;
  font-size: 18px;
}
.av-lock-box .av-btn-primary { width: 100%; margin-top: 4px; }
.av-lock-help { margin: 16px 0 0; font-size: 12.5px !important; }
.av-lock-help a { color: var(--av-cyan); text-decoration: none; }
.av-lock-help a:hover { text-decoration: underline; }

.av-code-desc { color: var(--av-muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
.av-code-display {
  font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 6px;
  text-align: center; padding: 14px; border-radius: 10px;
  background: rgba(0,229,255,0.08); border: 1px dashed rgba(0,229,255,0.4);
  color: var(--av-cyan);
}

.av-overlay {
  display: none; position: fixed; inset: 0; z-index: 999999;
  background: rgba(3,4,10,0.72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.av-overlay.is-open { display: flex; }
.av-modal {
  width: 100%; max-width: 420px; background: #0c0f22; border: 1px solid var(--av-border);
  border-radius: 18px; padding: 28px; max-height: 90vh; overflow-y: auto; font-family: 'Outfit', sans-serif; color: var(--av-text);
}
.av-modal h3 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; margin-bottom: 18px; }
.av-field { margin-bottom: 15px; }
.av-field label { display: block; font-size: 14px; font-weight: 600; color: var(--av-muted); margin-bottom: 6px; }
.av-field input, .av-field textarea, .av-field select {
  width: 100%; background: #05060d; border: 1px solid var(--av-border); border-radius: 9px;
  padding: 10px 13px; color: var(--av-text); font-family: 'Outfit', sans-serif; font-size: 15.5px;
}
.av-field input:focus, .av-field textarea:focus, .av-field select:focus { outline: none; border-color: var(--av-blue); }
.av-field textarea { resize: vertical; min-height: 65px; }
.av-field-error { color: #f87171; font-size: 14px; margin-top: 8px; display: none; }
.av-field-error.is-show { display: block; }
.av-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.av-modal-actions button { flex: 1; }

@media (max-width: 720px) {
  .av-top { padding: 36px 18px 6px; }
  .av-section { padding: 26px 16px; }
  .av-module-head { padding: 14px 16px; }
  .av-class-row { flex-direction: column; align-items: flex-start; }
  .av-class-actions { align-self: flex-end; }
  .av-advisory-card { padding: 36px 20px; }
}
