


















/* ================================= */
/* ========= ESTILOS NUEVO HERO ======== */
/* ================================= */
.new-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 40px;
  background: linear-gradient(135deg, #eaf2ff, #ffffff); /* Gradiente suave */
  border-radius: 12px;
  min-height: 70vh; /* Para que ocupe una buena parte de la pantalla */
  overflow: hidden;
}

body.dark .new-hero {
  background: linear-gradient(135deg, #1e272e, #2f3640);
}

.hero-content {
  flex: 1;
  padding-right: 40px;
  animation: slideInFromLeft 0.8s ease-out;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}

body.dark .hero-subtitle {
  color: var(--color-texto-dark);
}

.hero-cta-button {
  background-color: var(--color-primario);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 50px; /* Botón más redondeado */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(46, 134, 222, 0.4);
}

.hero-image-container {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease-out;
}

.hero-illustration {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.hero-illustration:hover {
    transform: scale(1.05) rotate(3deg);
}

/* --- Animaciones --- */
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Ajustes para Mobile --- */
@media (max-width: 768px) {
  .new-hero {
    flex-direction: column; /* Apilamos el texto sobre la imagen */
    text-align: center;
    padding: 40px 20px;
    min-height: auto;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 32px;
  }
}














/* ========================================================== */
/* ===       NUEVO DISEÑO: ARQUITECTÓNICO         === */
/* ========================================================== */

/* --- 1. ESTRUCTURA DE SECCIÓN --- */
.materias-section,
.simulador-section {
  padding: 80px 40px;
}

.materias-section h2,
.simulador-titulo {
  font-size: 36px;
  font-weight: 700;
  color: #1e272e;
  margin-bottom: 15px;
  text-align: left;
  border-bottom: 3px solid var(--color-primario);
  padding-bottom: 10px;
  display: inline-block;
}

.simulador-subtitulo {
  font-size: 18px;
  color: #555;
  text-align: left;
  max-width: 500px;
  margin-bottom: 50px; /* Más espacio */
  line-height: 1.6;
}

.materias-grid,
.simulador-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; /* Más separación entre tarjetas */
}


/* --- 2. NUEVO DISEÑO DE TARJETA 'ARQUITECTÓNICA' --- */
.materia-card,
.simulador-card {
  background: #ffffff;
  border-radius: 8px; /* Esquinas menos redondeadas, más rectas */
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.materia-card:hover,
.simulador-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primario);
}

/* --- 3. IMAGEN PROTAGONISTA (Full-Bleed) --- */
.card-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La imagen cubre todo el contenedor */
  transition: transform 0.4s ease;
}

.materia-card:hover img,
.simulador-card:hover img {
  transform: scale(1.05); /* Sutil zoom al hacer hover */
}


/* --- 4. CONTENIDO DE TEXTO --- */
.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1e272e;
  margin: 0 0 10px 0;
}

.card-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-iniciar {
  background: transparent;
  color: var(--color-primario);
  padding: 10px 20px;
  border: 2px solid var(--color-primario);
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  text-transform: uppercase;
}

.btn-iniciar:hover {
  background: var(--color-primario);
  color: white;
}


/* ========================================================== */
/* ===             ESTILOS PARA MODO OSCURO             === */
/* ========================================================== */
body.dark .materias-section h2,
body.dark .simulador-titulo {
  color: #ffffff;
}

body.dark .simulador-subtitulo {
  color: var(--color-texto-dark);
}

body.dark .materia-card,
body.dark .simulador-card {
  background-color: #2f3640;
  border-color: #444;
}

body.dark .materia-card:hover,
body.dark .simulador-card:hover {
  border-color: var(--color-primario);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

body.dark .card-content h3 {
  color: #ffffff;
}

body.dark .card-content p {
  color: var(--color-texto-dark);
}

body.dark .btn-iniciar:hover {
  background-color: var(--color-primario);
  color: white;
}

body.dark .materias-section,
body.dark .simulador-section {
  background-color: var(--color-fondo-dark);
  border-top-color: #2f3640;
}

body.dark .materia-card,
body.dark .simulador-card {
  background-color: #2f3640;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

body.dark .materia-card:hover,
body.dark .simulador-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark .materia-card p,
body.dark .simulador-subtitulo,
body.dark .simulador-info p {
  color: var(--color-texto-dark);
}

body.dark .btn-iniciar:hover {
    background-color: #4a9eec;
}























/* ================================================= */
/* ============= CSS PARA RESPONSIVE =============== */
/* ================================================= */

/* --- Elementos base solo para mobile --- */
.hamburger-menu {
  display: none; /* Oculto en desktop */
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 10001; /* Por encima de todo */
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primario);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-overlay {
  display: none; /* Oculto en desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* --- Media Query para tablets y celulares --- */
@media (max-width: 768px) {
  /* --- Ajustes de la Sidebar --- */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%); /* La ocultamos fuera de la pantalla */
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
  }

  .sidebar.open {
    transform: translateX(0); /* La mostramos */
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
  }
  
  /* --- Mostrar el botón hamburguesa --- */
  .hamburger-menu {
    display: block;
  }
  
  /* --- Mostrar el overlay cuando el menú está abierto --- */
  .mobile-overlay.open {
    display: block;
  }
  
  /* --- Ajuste del contenido principal --- */
  main {
    margin-left: 0;
    padding: 20px;
  }

  /* --- Ajustes de tipografía y secciones --- */
  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }

  .materias-section, .simulador-section {
    padding: 40px 20px;
  }
  
  .materias-section h2, .simulador-titulo {
    font-size: 26px;
  }

  /* --- Ajustes del Footer --- */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-about, .footer-links, .footer-social {
    min-width: 100%;
  }

  /* --- Ajuste de popups para que no sean tan anchos --- */
  .popup-materia-content {
    width: 95%;
  }

  /* --- Reubicar botones fijos --- */
  .modo-oscuro-toggle {
    bottom: 15px;
    left: auto;
    right: 15px;
  }

  /* --- Ajuste para centrar el contenido de las secciones --- */
  main {
    margin-left: 0;
    padding: 20px 15px; /* Un poco menos de padding lateral */
  }
  
  .materias-section, .simulador-section {
    padding: 40px 15px;
    text-align: center; /* Centra el texto como los h2 y p */
  }

  /* Hacemos que los grids de tarjetas se centren */
  .materias-grid, .simulador-grid {
    justify-content: center;
  }
}






















/* Estilos para el Widget de Perfil en la Sidebar */
.user-profile-widget {
  margin-top: 40px;
  padding: 15px;
  background-color: #f1f5fc;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

body.dark .user-profile-widget {
  background-color: #1e272e;
  border-color: #444;
}

.user-profile-widget h4 {
  margin: 0 0 10px 0;
  color: var(--color-primario);
}

.user-profile-widget p {
  font-size: 14px;
  margin: 0 0 10px 0;
}

.user-profile-widget small {
  font-size: 12px;
  color: #777;
}

body.dark .user-profile-widget small {
    color: #aaa;
}

.xp-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

body.dark .xp-bar-container {
    background-color: #555;
}

.xp-bar-fill {
  height: 100%;
  width: 0%; /* Inicia en 0% */
  background-color: var(--color-primario);
  border-radius: 4px;
  transition: width 0.5s ease;
}
































































/* ============================================ */
/* ============= ESTILOS DEL FOOTER ============= */
/* ============================================ */

.site-footer {
  background-color: #ffffff;
  padding: 40px 40px 20px 40px;
  margin-top: 60px;
  border-top: 1px solid #e0e0e0;
  color: #555;
  font-size: 14px;
}

body.dark .site-footer {
  background-color: #2f3640; /* Usamos el color de fondo de la sidebar en modo oscuro */
  border-top: 1px solid #444;
  color: var(--color-texto-dark);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.site-footer h3, .site-footer h4 {
  color: var(--color-primario);
  margin-bottom: 15px;
}

.footer-about h3 {
  font-size: 24px;
  font-weight: bold;
}

.footer-about h3 span {
  color: var(--color-texto);
}

body.dark .footer-about h3 span {
    color: var(--color-texto-dark);
}

.footer-about, .footer-links, .footer-social {
  flex: 1;
  min-width: 220px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a, .footer-social a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s ease;
}

body.dark .footer-links a, body.dark .footer-social a {
    color: var(--color-texto-dark);
}

.footer-links a:hover, .footer-social a:hover {
  color: var(--color-primario);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

body.dark .footer-bottom {
    border-top: 1px solid #444;
}











    :root {
      --color-primario: #2e86de;
      --color-secundario: #f5f6fa;
      --color-texto: #2f3640;
      --color-hover: #dff9fb;
      --color-fondo-dark: #1e272e;
      --color-texto-dark: #d2dae2;
      
    }
    

    body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      display: flex;
      background-color: var(--color-secundario);
      color: var(--color-texto);
      transition: background 0.3s, color 0.3s;
    }

    body.dark {
      background-color: var(--color-fondo-dark);
      color: var(--color-texto-dark);
    }
    body.dark .card,
    body.dark .popup-content,
    body.dark .nova-chat,
    body.dark .nova-widget,
    body.dark .nova-chat-header,
    body.dark .notificacion,
    body.dark .ia-nova,
    body.dark .modo-oscuro-toggle,
    body.dark .nova-toast {
    background-color: #2f3640;
    color: var(--color-texto-dark);
    border-color: #555;
    }


    .sidebar {
      width: 240px;
      background-color: white;
      padding: 20px;
      height: 100vh;
      box-shadow: 2px 0 10px rgba(0,0,0,0.05);
      position: fixed;
      transition: background 0.3s;
    }

    body.dark .sidebar {
      background-color: #2f3640;
    }

    .sidebar .logo {
      font-size: 24px;
      font-weight: bold;
      color: var(--color-primario);
      margin-bottom: 30px;
    }

    .sidebar .logo span {
      color: var(--color-texto);
    }

    .sidebar nav ul {
      list-style: none;
      padding: 0;
    }

    .sidebar nav ul li {
      margin-bottom: 15px;
    }

    .sidebar nav ul li a {
      text-decoration: none;
      color: var(--color-texto);
      font-weight: 500;
      transition: background 0.3s, padding-left 0.3s;
      display: block;
      padding: 8px 10px;
      border-radius: 6px;
    }

    body.dark .sidebar nav ul li a {
      color: var(--color-texto-dark);
    }

    .sidebar nav ul li a:hover {
      background-color: var(--color-hover);
      padding-left: 20px;
    }

    main {
      margin-left: 260px;
      padding: 40px;
      width: 100%;
    }

    section {
      margin-bottom: 60px;
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.6s ease-out;
    }

    section.visible {
      opacity: 1;
      transform: translateY(0);
    }

    h1, h2 {
      color: var(--color-primario);
    }

    .hero {
      background: linear-gradient(135deg, #dff9fb, #ffffff);
      padding: 60px 40px;
      border-radius: 10px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.1);
      text-align: center;
    }

    .hero p {
      font-size: 18px;
      margin-top: 10px;
    }

    .btn-comenzar {
      margin-top: 30px;
      background-color: var(--color-primario);
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
    }

    .notificacion {
      background-color: #e0f7ff;
      color: #007aff;
      padding: 15px 20px;
      margin: 20px 0;
      border-radius: 15px;
      max-width: 400px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      font-size: 15px;
      font-style: italic;
    }


    .modo-oscuro-toggle {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background-color: #2e86de;
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 6px;
      cursor: pointer;
      z-index: 10000;
    }

        .nova-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    z-index: 9999;
    transition: all 0.3s ease;
    }

    .nova-widget:hover {
    background: #f0f6ff;
    }

    .nova-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    }

    .nova-chat {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    }

    .nova-chat.hidden {
    display: none;
    }

    .nova-chat-header {
    background: #2e86de;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    }

    .nova-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    }

    .nova-chat-body {
    padding: 15px;
    font-size: 14px;
    color: #2f3640;
    }

    .nova-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    font-style: italic;
    color: #007aff;
    z-index: 9999;
    transition: top 0.5s ease;
    }

    .nova-toast.show {
    top: 20px;
    }


        .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    }

    .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-align: center;
    }

    .card:hover {
    transform: translateY(-5px);
    }

    .card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    }

    .popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 99999;
    }

    .popup-content {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.popup-content::-webkit-scrollbar {
  width: 6px;
}
.popup-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

    .popup-content img {
    width: 100%;
    border-radius: 10px;
    }

    .modo-oscuro-toggle {
    position: fixed;
    background: transparent;
    color: var(--color-primario);
    border: 2px solid var(--color-primario);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    z-index: 10000;
    transition: all 0.3s ease;
    }

    .modo-oscuro-toggle:hover {
      background-color: var(--color-hover);
    }
    .card.simulador {
    max-width: 300px;
    margin: auto;
    } 

        .has-submenu .arrow {
      float: right;
      transition: transform 0.3s ease;
    }

    .has-submenu.open .arrow {
      transform: rotate(180deg);
    }

    .submenu {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: all 0.4s ease;
      padding-left: 15px;
      background-color: rgba(0, 0, 0, 0.05);
      border-radius: 6px;
      margin-top: 5px;
    }

    .has-submenu.open .submenu {
      max-height: 300px;
      opacity: 1;
      padding: 10px 15px;
    }

    .sidebar nav ul ul.submenu li a {
      font-size: 14px;
      color: var(--color-texto);
      border-left: 2px solid var(--color-primario);
      padding-left: 10px;
      margin: 5px 0;
      display: block;
      transition: all 0.3s ease;
    }

    .sidebar nav ul ul.submenu li a:hover {
      background-color: var(--color-hover);
      padding-left: 15px;
    }

    body.dark .submenu {
      background-color: rgba(255, 255, 255, 0.05);
    }

    body.dark .sidebar nav ul ul.submenu li a {
      color: var(--color-texto-dark);
    }

    .has-submenu:hover .submenu {
      max-height: 300px;
      opacity: 1;
      padding: 10px 15px;
    }

    .has-submenu:hover .arrow,
    .has-submenu.open .arrow {
      transform: rotate(180deg);
    }

    .sidebar .logo span {
    color: var(--color-texto);
    transition: color 0.3s ease;
    }

    body.dark .sidebar .logo span {
    color: var(--color-texto-dark);
    }
    html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    }
    
    .popup-content {
    background: white;
    padding: 0;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    text-align: left;
    overflow: hidden;
    }
    .popup-content {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.popup-content::-webkit-scrollbar {
  width: 6px;
}
.popup-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}


    .popup-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    }

    .popup-text {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
    }

    .popup-text h3 {
    margin-top: 0;
    color: #2e86de;
    }

    .popup-text p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #333;
    }

    .popup-text button {
    background-color: #2e86de;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    }

    .popup-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
    }

    .popup-image img {
    max-width: 100%;
    border-radius: 10px;
    }
    .popup-content {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.popup-content::-webkit-scrollbar {
  width: 6px;
}
.popup-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.pdf-preview.hidden,
.fullscreen.hidden {
  display: none;
}

.pdf-preview iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-top: 10px;
}

.preview-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.fullscreen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

.fullscreen-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.fullscreen iframe {
  flex: 1;
  width: 100%;
  border: none;
}

.fullscreen-actions.desktop {
  position: absolute;
  top: 60px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fullscreen-actions.mobile {
  display: none;
}

@media (max-width: 768px) {
  .fullscreen-actions.desktop {
    display: none;
  }

  .fullscreen-actions.mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 15px;
    border-top: 1px solid #ccc;
    background: #f5f6fa;
  }
}

.pdf-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.pdf-list li {
  margin-bottom: 12px;
}

.pdf-list li button.pdf-toggle {
  all: unset;
  color: var(--color-primario);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-primario);
  padding: 6px 12px;
  border-radius: 50px;
  transition: all 0.2s ease;
  display: inline-block;
}

.pdf-list li button.pdf-toggle:hover {
  background-color: var(--color-hover);
}

.preview-actions button,
.fullscreen-actions button {
  all: unset;
  border: 1px solid var(--color-primario);
  color: var(--color-primario);
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.preview-actions button:hover,
.fullscreen-actions button:hover {
  background-color: var(--color-hover);
}



.temas-biologia {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tema-bloque {
  background-color: #f1f5fc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tema-bloque h3 {
  margin: 0 0 10px;
  color: #2e86de;
}

.tema-bloque p {
  margin: 0 0 15px;
  font-size: 15px;
  color: #333;
}

.video-youtube {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
  margin-bottom: 10px;
}

.pdf-preview iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.preview-actions button {
  all: unset;
  margin-right: 10px;
  padding: 8px 16px;
  border: 1px solid #2e86de;
  border-radius: 50px;
  color: #2e86de;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.preview-actions button:hover {
  background-color: #dff9fb;
}

.btn-cerrar-popup {
  all: unset;
  background-color: #ff6b6b;
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-cerrar-popup:hover {
  background-color: #ff4757;
}
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

 
  


    .materias-section {
  padding: 40px;
  background-color: #f5f6fa;
}

.materias-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.materia-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  flex: 1 1 250px;
  transition: transform 0.2s ease;
}

.materia-card:hover {
  transform: translateY(-5px);
}

.popup-materia {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-materia-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-materia-content h2 {
  margin-top: 0;
  color: #2e86de;
}

.materia-tema {
  margin-top: 20px;
  padding: 15px;
  background: #f1f5fc;
  border-radius: 10px;
}

.materia-tema iframe {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  border: none;
  margin: 10px 0;
}

.btn-pdf {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #2e86de;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
}

.cerrar-popup-flotante {
  all: unset;
  position: absolute;
  top: 15px;
  right: 20px;
  background-color: #ff6b6b;
  color: white;
  padding: 8px 14px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.cerrar-popup-flotante:hover {
  background-color: #ff4757;
}

/* Fondo del popup */
.popup-materia {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenedor del contenido */
.popup-materia-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  padding: 30px 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 90vh;
}

.popup-materia-content h2 {
  margin-top: 0;
  font-size: 26px;
  color: #2e86de;
  text-align: center;
}

.popup-materia-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Bloque de cada tema */
.materia-tema {
  background: #f1f5fc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.materia-tema:hover {
  transform: scale(1.02);
}

.materia-tema h4 {
  margin: 0 0 10px;
  color: #2e86de;
  font-size: 18px;
}

.materia-tema p {
  margin: 0 0 10px;
  font-size: 15px;
  color: #444;
}

/* Videos */
.materia-tema iframe {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  border: none;
  margin-bottom: 12px;
}

/* Botón PDF */
.btn-pdf {
  display: inline-block;
  padding: 8px 20px;
  background-color: #2e86de;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.btn-pdf:hover {
  background-color: #1f5fab;
}

/* Botón flotante de cerrar */
.cerrar-popup-flotante {
  all: unset;
  position: absolute;
  top: 15px;
  right: 20px;
  background-color: #ff6b6b;
  color: white;
  padding: 8px 14px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.cerrar-popup-flotante:hover {
  background-color: #ff4757;
}

/* Scroll suave */
.popup-materia-content::-webkit-scrollbar {
  width: 6px;
}
.popup-materia-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
.selector-materia {
  margin-top: 25px;
  text-align: center;
}

.selector-materia label {
  font-size: 15px;
  color: #2e86de;
}

.selector-materia select {
  margin-left: 10px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 50px;
  outline: none;
  background-color: #f1f5fc;
  transition: border-color 0.2s;
}

.selector-materia select:focus {
  border-color: #2e86de;
}
.simulador-section {
  padding: 60px 40px;
  background: #f5f6fa;
  text-align: center;
}

.simulador-titulo {
  font-size: 34px;
  color: #2e86de;
  margin-bottom: 10px;
}

.simulador-subtitulo {
  font-size: 16px;
  color: #444;
  margin-bottom: 40px;
}

.simulador-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.simulador-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 300px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simulador-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.simulador-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.simulador-info {
  padding: 20px;
  text-align: left;
}

.simulador-info h3 {
  color: #2e86de;
  font-size: 20px;
  margin-bottom: 10px;
}

.simulador-info p {
  color: #555;
  font-size: 14px;
  margin-bottom: 15px;
}

.btn-iniciar {
  background-color: #2e86de;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-iniciar:hover {
  background-color: #1f5fab;
}


    .materias-section {
  padding: 60px 40px;
  background: #ffffff;
  text-align: center;
}

.materias-section h2 {
  font-size: 32px;
  color: #2e86de;
  margin-bottom: 40px;
}

.materias-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.materia-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.materia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.materia-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

.materia-card h3 {
  font-size: 20px;
  color: #2e86de;
  margin-bottom: 8px;
}

.materia-card p {
  font-size: 14px;
  color: #555;
}

















#nova-avatar {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999;
  transition: transform 0.2s ease;
}

#nova-avatar:hover {
  transform: scale(1.1);
}

#nova-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
#nova-avatar {
  display: flex !important;
}

















/* ========================================================== */
/* ======     ESTILOS PARA SECCIONES EN CONSTRUCCIÓN     ====== */
/* ========================================================== */

.placeholder-section {
  padding: 60px 40px;
  text-align: center;
  background-color: #fafafa;
  border-top: 1px dashed #ddd;
  transition: all 0.3s ease;
}

.placeholder-section h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.placeholder-section .coming-soon-text {
  font-size: 16px;
  color: #777;
  font-style: italic;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- MODO OSCURO --- */
body.dark .placeholder-section {
  background-color: #242c33;
  border-top-color: #3a444e;
}

body.dark .placeholder-section h2 {
  color: #eee;
}

body.dark .placeholder-section .coming-soon-text {
  color: #aaa;
}
















/* ========================================================== */
/* ======         ESTILOS PARA FLASHCARDS          ====== */
/* ========================================================== */
.interactive-section {
  padding: 80px 40px;
  background-color: #f5f6fa;
  text-align: center;
}
.interactive-section .section-header {
  max-width: 700px;
  margin: 0 auto 40px auto;
}
.interactive-section h2 {
  font-size: 32px;
  color: var(--color-primario);
  margin-bottom: 15px;
}
.interactive-section p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.deck-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}
.deck-btn {
  background: white;
  border: 2px solid #ddd;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}
.deck-btn:hover {
  border-color: var(--color-primario);
  color: var(--color-primario);
}
.deck-btn.active {
  background: var(--color-primario);
  color: white;
  border-color: var(--color-primario);
}

.flashcard-container {
  perspective: 1000px; /* Crea el espacio 3D para la animación */
  max-width: 500px;
  height: 300px;
  margin: 0 auto;
}
.flashcard {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.flashcard.is-flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Oculta la cara trasera del elemento */
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}
.flashcard-back {
  transform: rotateY(180deg);
  background-color: #eaf2ff;
}

.flashcard-progress {
  margin-top: 20px;
  font-style: italic;
  color: #777;
}

.flashcard-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.flashcard-btn {
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
#flip-button {
  background-color: var(--color-primario);
  color: white;
}
#flip-button:hover {
  transform: scale(1.05);
}

.rating-buttons {
  display: none; /* Ocultos por defecto */
  gap: 15px;
}
.rating-btn.hard { background-color: #ff6b6b; color: white; }
.rating-btn.medium { background-color: #feca57; color: white; }
.rating-btn.easy { background-color: #1dd1a1; color: white; }
.rating-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Estilos para la barra de progreso */
.flashcard-progress {
  max-width: 500px;
  margin: 20px auto 0 auto;
}
#progress-text {
  font-style: italic;
  color: #777;
  display: block;
  margin-bottom: 8px;
}
.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}
.progress-bar {
  width: 0%; /* Inicia en 0 */
  height: 100%;
  background-color: var(--color-primario);
  border-radius: 5px;
  transition: width 0.4s ease;
}












/* ===== Desafíos Diarios ===== */
.desafios-section {
  padding: 60px 40px;
  background: #fafafa;
  border-top: 1px dashed #ddd;
}
.desafios-header h2 { font-size: 28px; margin: 0 0 8px; color: var(--color-primario); }
.desafios-header p  { margin: 0 0 18px; color: #666; }

.desafios-controls {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px;
}
.desafios-controls label { font-weight: 600; }
.desafios-controls select {
  padding: 8px 12px; border-radius: 10px; border: 1px solid #d7dbe2; background: #fff; cursor: pointer;
}

.des-streak {
  margin-left: auto; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.des-streak small { color: #888; font-weight: 400; }

.des-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--line, #e9eef3);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 18px;
  max-width: 840px;
  margin: 0 auto;
}

.des-status {
  display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700;
}

.des-question {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.4;
  padding: 12px 0 14px;
}

.des-options {
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
.des-opt {
  border: 1px solid var(--line, #e9eef3);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .05s ease;
}
.des-opt:hover { border-color: rgba(46,134,222,.35); }
.des-opt:active { transform: scale(0.995); }
.des-opt.selected { border-color: #2e86de; box-shadow: 0 0 0 2px rgba(46,134,222,.15) inset; }

.des-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.des-btn {
  border: 0; padding: 10px 14px; border-radius: 10px; background: #2e86de; color: #fff; font-weight: 700; cursor: pointer;
}
.des-btn.ghost {
  background: transparent; color: #2e86de; border: 2px solid #2e86de;
}
.des-btn:disabled { opacity: .6; cursor: not-allowed; }

.des-result {
  background: var(--card-bg,#fff); border: 1px solid var(--line,#e9eef3);
  border-radius: 14px; padding: 18px; max-width: 640px; margin: 16px auto 0; text-align: center;
}

.hidden { display: none !important; }

@media (max-width: 560px){
  .desafios-controls { gap: 8px; }
  .des-streak { width: 100%; justify-content: space-between; margin-left: 0; }
}



/* ===== Desafíos Diarios ===== */
.dd-section {
  padding: 60px 40px;
  background: #fafbff;
  border-top: 1px solid #e9eef3;
}
body.dark .dd-section { background: #171c22; }

.dd-header h2 { font-size: 28px; margin: 0 0 6px; color: var(--color-primario); }
.dd-sub { margin: 0 0 18px; opacity: .85; }

.dd-tabs { display: inline-flex; gap: 8px; background: #f0f4ff; padding: 6px; border-radius: 12px; }
body.dark .dd-tabs { background: #0f1318; }
.dd-tab {
  border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600;
  background: transparent; color: inherit;
}
.dd-tab.is-active { background: #fff; box-shadow: 0 1px 0 1px rgba(0,0,0,.03); }
body.dark .dd-tab.is-active { background: #0f1216; }

.dd-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px;
  background: var(--card-bg, #fff); border: 1px solid var(--line,#eaecef); border-radius: 16px;
  margin-top: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
body.dark .dd-card { --card-bg:#0f1216; --line:#1f2732; box-shadow: 0 8px 24px rgba(0,0,0,.35); }

.dd-status { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.dd-chip { background: #e9f5ff; color: #0b5cab; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 12px; }
.dd-streak, .dd-best { background: #f6f7fb; border: 1px solid var(--line,#eaecef); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
body.dark .dd-chip { background:#0b1723; color:#7cc2ff; }
body.dark .dd-streak, body.dark .dd-best { background:#0d1117; }

.dd-list { margin: 10px 0 16px; padding-left: 18px; }
.dd-list li { margin: 6px 0; }

.dd-actions { display: flex; gap: 10px; margin-bottom: 10px; }
.dd-btn { border: 0; padding: 10px 14px; border-radius: 10px; background: #2e86de; color: #fff; font-weight: 700; cursor: pointer; }
.dd-btn.ghost { background: transparent; border: 1px solid var(--line,#eaecef); color: inherit; }
.dd-btn:hover { transform: translateY(-1px); }

.dd-note { opacity:.75; }

.dd-card-right { display: grid; place-items: center; }
.dd-illustration {
  width: 100%; height: 180px; border-radius: 12px;
  background: radial-gradient(60% 60% at 30% 30%, #eaf2ff 0%, transparent 70%),
              radial-gradient(60% 60% at 70% 70%, #ffe8e8 0%, transparent 70%),
              linear-gradient(135deg, #f5f8ff, #ffffff);
  border: 1px solid var(--line,#eaecef);
}

@media (max-width: 820px){
  .dd-card { grid-template-columns: 1fr; }
  .dd-illustration { height: 120px; }
}
/* ===== Desafíos Diarios – UI + Dark Mode ===== */
:root{
  --dd-bg-sec: #f5f7fb;
  --dd-card: #fff;
  --dd-line: #e9eef3;
  --dd-muted: #667085;
  --dd-good: #22c55e;
  --dd-bad:  #ef4444;
}

body.dark{
  --dd-bg-sec: #141a21;
  --dd-card: #0f1216;
  --dd-line: #1f2732;
  --dd-muted: #9aa4b2;
}

.daily-section,
.dd-section{
  padding: 56px 24px;
  background: var(--dd-bg-sec);
  border-top: 1px dashed var(--dd-line);
}

.dd-card{
  max-width: 840px;
  margin: 0 auto;
  background: var(--dd-card);
  border: 1px solid var(--dd-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 18px;
}

.dd-head{ display:flex; gap:12px; align-items:baseline; justify-content:space-between; flex-wrap:wrap; }
.dd-head h2{ margin:0; }
.dd-meta{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.dd-meta select{
  padding: 8px 12px;
  border: 1px solid var(--dd-line);
  border-radius: 10px;
  background: var(--dd-card);
  color: inherit;
}

.dd-streak strong{ font-variant-numeric: tabular-nums; }
.dd-bests{ color: var(--dd-muted); }
.dd-note{ color: var(--dd-muted); margin-top: 8px; }

/* Paneles */
.dd-panel{ margin-top: 12px; }
.dd-bar{
  display:flex; justify-content:space-between; align-items:center;
  background: color-mix(in srgb, var(--dd-card), #6ea8fe 10%);
  border: 1px solid var(--dd-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
}
#dd-q{
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--dd-card);
  box-shadow: inset 0 0 0 1px var(--dd-line);
}

/* Opciones */
.dd-options{ display:grid; gap:10px; grid-template-columns: 1fr; }
@media (min-width:560px){ .dd-options{ grid-template-columns: 1fr 1fr; } }

.daily-option{
  text-align:left;
  padding: 10px 12px;
  border: 1px solid var(--dd-line);
  border-radius: 10px;
  background: var(--dd-card);
  cursor: pointer;
  transition: transform .08s ease, border-color .15s ease, background .2s ease;
}
.daily-option:hover{ transform: translateY(-1px); border-color: color-mix(in srgb, var(--dd-line), #2e86de 50%); }
.daily-option.correct{ border-color: var(--dd-good); background: color-mix(in srgb, var(--dd-card), var(--dd-good) 10%); }
.daily-option.wrong{   border-color: var(--dd-bad);  background: color-mix(in srgb, var(--dd-card), var(--dd-bad) 10%); }

/* Botones */
.dd-btn{
  border: 0; padding: 10px 14px; border-radius: 10px;
  background: #2e86de; color: #fff; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.dd-btn:hover{ transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.dd-btn.secondary{ background: transparent; color: inherit; border: 1px solid var(--dd-line); }
.dd-actions{ display:flex; gap:10px; justify-content:center; margin-top:10px; }
.hidden{ display:none !important; }

/* Estados / chips */
#dd-estado{
  background: color-mix(in srgb, #22c55e 14%, var(--dd-card));
  color: #11613a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 700;
}

/* Accesibilidad */
.daily-option:focus-visible,
.dd-btn:focus-visible,
select:focus-visible{
  outline: 3px solid color-mix(in srgb, #2e86de 60%, transparent);
  outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .daily-option, .dd-btn{ transition: none; }
}


/* Dark mode */
body.dark .desafios-section{ background:#242c33; border-top-color:#3a444e; }
body.dark .des-card, body.dark .des-result{ background:#0f1216; border-color:#1f2732; }
body.dark .des-opt{ background:#10141a; border-color:#1f2732; color:#d2dae2; }
body.dark .des-opt.selected{ border-color:#2e86de; }




















/* --- MODO OSCURO --- */
body.dark .interactive-section { background-color: var(--color-fondo-dark); }
body.dark .interactive-section p, body.dark .flashcard-progress { color: var(--color-texto-dark); }
body.dark .deck-btn { background: #2f3640; border-color: #444; color: var(--color-texto-dark); }
body.dark .deck-btn:hover { border-color: var(--color-primario); color: var(--color-primario); }
body.dark .deck-btn.active { background: var(--color-primario); color: white; border-color: var(--color-primario); }
body.dark .flashcard-face { background: #2f3640; box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
body.dark .flashcard-back { background-color: #1e272e; }
body.dark #progress-text { color: var(--color-texto-dark); }
body.dark .progress-bar-container { background-color: #444; }
/* Dark */

body.dark .daily-card { background:#0f1216; border-color:#1f2732; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
body.dark .daily-q { background:#0b1723; border-color:#1f2732; }
body.dark .daily-option { background:#10141a; border-color:#1f2732; }
