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

/* Local project font (copied into project folder) */
@font-face {
  font-family: 'SourceCodeProVar';
  src: url('./SourceCodePro-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --neon-cyan: #e60000;
  /* Red accent (matching logo) */
  --neon-purple: #ff4d4d;
  /* Secondary lighter red */
  --neon-pink: #ff8080;
  /* Soft pinkish red */
  --neon-blue: #b30000;
  /* Darker red */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  /* Crisp white/gray */
  --glass-bg: rgba(7, 11, 42, 0.85);
  /* Deep dark warm background */
  --glass-border: rgba(230, 0, 0, 0.25);
  --glow-shadow: 0 0 20px rgba(230, 0, 0, 0.35);
  --font-cyber: 'Orbitron', sans-serif;
  --font-base: 'Outfit', sans-serif;
}

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

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-base);
  color: var(--text-primary);
  background-color: #0a0505;
  /* Warm charcoal background matching the red theme */
}

/* Videos de fondo */
.video-fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Positivo: por encima del fondo opaco del body */
  filter: brightness(0.45) contrast(1.15) saturate(0.9);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.video-fondo.active {
  opacity: 1;
}

/* Capa de rejilla holográfica / Scanlines */
.overlay-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Sobre el video */
  background:
    linear-gradient(rgba(18, 16, 16, 0) 20%, rgba(0, 0, 0, 0.25) 200%),
    linear-gradient(90deg, rgba(230, 0, 0, 0.03), rgba(255, 77, 77, 0.02), rgba(230, 0, 0, 0.03));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.85;
}

/* Efecto de viñeta para centrar la atención */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  /* Sobre el overlay-grid */
  background: radial-gradient(circle, transparent 40%, rgba(3, 7, 18, 0.7) 100%);
  pointer-events: none;
}

/* Contenedor Flex para centrar la tarjeta */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
}

/* Tarjeta principal con Efecto de Cristal (Glassmorphism) */
.dashboard-card {
  width: 100%;
  max-width: 820px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 5px 20px 10px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(230, 0, 0, 0.08),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
  animation: floatCard 8s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  /* Por encima de video, overlay y viñeta */
}

@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Línea superior decorativa futurista */
.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), var(--neon-cyan), transparent);
}

/* Encabezado */
.header {
  text-align: center;
  width: 100%;
  margin-bottom: 0;
}

.logo-wrapper {
  margin-bottom: 0;
  margin-top: 0;
  display: inline-block;
  line-height: 0;
  /* Elimina espacio baseline */
  position: relative;
}

.logo-img {
  width: 150px;
  height: auto;
  /* ← altura natural, sin letterboxing */
  display: block;
  filter: drop-shadow(0 0 12px rgba(230, 0, 0, 2));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover .logo-img {
  transform: rotate(360deg) scale(1.1);
}

.main-title {
  font-family: var(--font-cyber);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.subtitle strong {
  color: var(--neon-cyan);
  font-weight: 600;
}

.prompt-text {
  font-family: var(--font-cyber);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--neon-purple);
  text-transform: uppercase;
  margin-top: 15px;
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
  animation: pulseLight 2s infinite alternate;
}

@keyframes pulseLight {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 77, 77, 0.7), 0 0 4px var(--neon-cyan);
  }
}

/* Estructura del nuevo Temporizador Digital de Neón */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 25px 0;
  width: 100%;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(18, 10, 10, 0.5);
  border: 1px solid rgba(255, 250, 250, 0.40);
  border-radius: 12px;
  padding: 8px 16px;
  min-width: 90px;
  box-shadow: inset 0 0 10px rgba(230, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.countdown-box:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(230, 0, 0, 0.15), inset 0 0 10px rgba(230, 0, 0, 0.1);
}

.countdown-val {
  font-family: var(--font-cyber);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(230, 0, 0, 0.8);
  line-height: 1;
  letter-spacing: 1px;
}

.countdown-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 6px;
  text-transform: uppercase;
}

.countdown-sep {
  font-family: var(--font-cyber);
  font-size: 2rem;
  color: var(--neon-cyan);
  font-weight: 900;
  margin: 0 12px;
  text-shadow: 0 0 10px rgba(230, 0, 0, 0.8);
  animation: blink 1s infinite;
  align-self: flex-start;
  margin-top: 4px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

/* Divisor Futurista */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.2), rgba(155, 81, 224, 0.2), rgba(0, 242, 254, 0.2), transparent);
  margin-bottom: 25px;
}

/* Sección de Temario de la Sesión */
.syllabus-section {
  width: 100%;
  text-align: left;
}

.syllabus-title {
  font-family: var(--font-cyber);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  text-shadow: 0 0 8px rgba(230, 0, 0, 0.4);
}

.syllabus-title i {
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Estilo Timeline de Temario */
.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

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

.syllabus-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.syllabus-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.syllabus-card:hover {
  background: rgba(230, 0, 0, 0.03);
  border-color: rgba(230, 0, 0, 0.15);
  transform: translateX(4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.syllabus-card.active {
  background: rgba(255, 77, 77, 0.04);
  border-color: rgba(255, 77, 77, 0.25);
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.05);
}

.syllabus-card.active::before {
  background: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
}

.syllabus-card.next::before {
  background: var(--neon-cyan);
}

.syllabus-num {
  font-family: var(--font-cyber);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.syllabus-card.active .syllabus-num {
  color: #fff;
  background: var(--neon-purple);
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

.syllabus-info {
  flex-grow: 1;
}

.syllabus-info h4 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 3px;
  color: #fff;
  font-family: 'SourceCodeProVar', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* For variable fonts ensure weight axis set explicitly */
  font-variation-settings: 'wght' 400;
}

.syllabus-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.syllabus-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
}

.syllabus-card.active .syllabus-time {
  color: var(--neon-purple);
  background: rgba(255, 77, 77, 0.15);
}

/* Panel Flotante del Selector de Video */
.video-selector-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
}

.video-selector-panel:hover {
  border-color: rgba(230, 0, 0, 0.3);
  box-shadow: 0 8px 32px rgba(230, 0, 0, 0.15);
}

.video-selector-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}

.video-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-opt-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.4);
}

.video-opt-btn.active {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #030712;
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Responsividad General */
@media (max-width: 600px) {
  .dashboard-card {
    padding: 24px 16px;
  }

  .main-title {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .countdown-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .countdown-box {
    min-width: 70px;
    padding: 6px 10px;
  }

  .countdown-val {
    font-size: 1.6rem;
  }

  .countdown-sep {
    display: none;
    /* Ocultar dos puntos en pantallas muy pequeñas */
  }

  .video-selector-panel {
    bottom: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
  }
}

/* Sección de Anuncios y Notas de Clase */
.class-notes-section {
  width: 100%;
  margin-top: 25px;
  text-align: left;
}

.class-notes-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: inset 0 0 10px rgba(230, 0, 0, 0.01);
  transition: all 0.3s ease;
}

.class-notes-box:hover {
  border-color: rgba(230, 0, 0, 0.18);
  background: rgba(230, 0, 0, 0.01);
}

.class-notes-box p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.class-notes-box p strong {
  color: var(--neon-cyan);
}

.resources-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  margin-top: 6px;
}

.resources-links span {
  color: var(--text-secondary);
}

.resources-links a {
  color: var(--neon-cyan);
  text-decoration: none;
  background: rgba(230, 0, 0, 0.06);
  border: 1px solid rgba(230, 0, 0, 0.15);
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.resources-links a i {
  font-size: 0.75rem;
}

.resources-links a:hover {
  background: var(--neon-cyan);
  color: #030712;
  box-shadow: 0 0 12px rgba(230, 0, 0, 0.35);
  transform: translateY(-1px);
}