body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  background-color: #f8fafc;
}

.font-title {
  font-family: "Montserrat", sans-serif;
}

/* Estilos para el menú desplegable */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #4059aa;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #1e3a8a;
}

.dropdown::after {
  content: "";
  position: absolute;
  height: 20px;
  width: 100%;
  bottom: -20px;
  left: 0;
}

/* Efecto de subrayado para los elementos del menú */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: #1e40af;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #1e40af;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #dc2626;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animaciones para elementos */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Banner con decoraciones */
.hero-banner {
  height: 200px;
  background: linear-gradient(to right, #2563eb, #1e3a8a);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.decorative-circle {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.circle-1 {
  width: 120px;
  height: 120px;
  top: -60px;
  left: -60px;
}

.circle-2 {
  width: 80px;
  height: 80px;
  bottom: -40px;
  right: -40px;
}

.circle-3 {
  width: 60px;
  height: 60px;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
}

.decorative-line {
  width: 80px;
  height: 2px;
  background-color: white;
  margin: 0 auto;
}

/* Estilos para los botones de nivel */
.level-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

.level-btn.active {
  background-color: #dc2626;
  color: white;
}
.level-btn:not(.active) {
  background-color: #f3f4f6;
  color: #4b5563;
}
.level-btn:not(.active):hover {
  background-color: #e5e7eb;
}

/* Estilos para el selector de nivel en móvil */
.level-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.level-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}
.level-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  margin-top: 0.25rem;
}
.level-dropdown-content.show {
  display: block;
}
.level-dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.level-dropdown-item:hover {
  background-color: #f3f4f6;
}
.level-dropdown-item.active {
  background-color: #dc2626;
  color: white;
}

/* Tarjetas de archivos */
.file-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.file-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.file-icon {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.file-card-info {
  padding: 12px;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 80px;
}

/* Colores por tipo de archivo */
.file-pdf {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.file-doc {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.file-excel {
  background: linear-gradient(135deg, #059669, #047857);
}

.file-image {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.file-video {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.file-audio {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

.file-powerpoint {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* Colores por nivel - removidos */

/* Botón de descarga */
.download-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.file-card:hover .download-btn {
  opacity: 1;
}

.download-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .file-icon {
    height: 70px;
    font-size: 2rem;
  }

  .file-card-info {
    min-height: 70px;
    padding: 10px;
  }
}
