/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 50%, #f3e8ff 100%);
  min-height: 100vh;
  color: #333;
}

/* Navbar personalizado */
.main-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(139, 69, 193, 0.15);
  border-bottom: 2px solid rgba(147, 51, 234, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-around; /* Ajustado para distribuir los elementos */
  height: 70px;
}

/* Logo del navbar */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.brand-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #8b45c1, #6d28d9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 69, 193, 0.3);
}

.brand-icon::before {
  content: "📚";
  font-size: 20px;
}

.brand-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #6d28d9, #8b45c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navegación principal */
.navbar-link {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center; /* Centrar el texto en los enlaces */
}

.navbar-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 69, 193, 0.1), transparent);
  transition: left 0.5s ease;
}

.navbar-link:hover::before {
  left: 100%;
}

.navbar-link:hover {
  color: #6d28d9;
  background: rgba(139, 69, 193, 0.08);
  transform: translateY(-2px);
}

.navbar-link.active {
  color: #6d28d9;
  background: rgba(139, 69, 193, 0.12);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
}

/* Botón de subir tarea */
.upload-btn {
  background: linear-gradient(135deg, #8b45c1, #6d28d9);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 193, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 69, 193, 0.4);
}

.upload-btn::before {
  content: "⬆️";
  font-size: 16px;
}

/* Menú móvil */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu:hover {
  background: rgba(139, 69, 193, 0.1);
}

.hamburger {
  width: 24px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #6d28d9;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Contenido principal */
.main-content {
  max-width: 1200px;
  margin: 40px auto; /* Ajustar margen superior para dejar espacio después del navbar */
  padding: 0 20px;
}

/* Header principal */
.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(139, 69, 193, 0.1);
  border: 1px solid rgba(139, 69, 193, 0.1);
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #6d28d9, #8b45c1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.welcome-message {
  background: linear-gradient(135deg, rgba(139, 69, 193, 0.1), rgba(168, 85, 247, 0.1));
  padding: 20px 30px;
  border-radius: 16px;
  border-left: 4px solid #8b45c1;
  margin-top: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-text {
  color: #6d28d9;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Sección de acciones rápidas */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.action-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(139, 69, 193, 0.1);
  border: 1px solid rgba(139, 69, 193, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(139, 69, 193, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.action-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(5deg);
}

.action-card.upload .action-icon {
  background: linear-gradient(135deg, #8b45c1, #6d28d9);
}

.action-card.view .action-icon {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.action-card.organize .action-icon {
  background: linear-gradient(135deg, #a855f7, #8b45c1);
}

.action-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.action-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.action-btn {
  background: linear-gradient(135deg, #8b45c1, #6d28d9);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.action-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  transform: translateY(-2px);
}

/* Sección de estadísticas */
.stats-section {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 69, 193, 0.1);
}

.stats-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: rgba(139, 69, 193, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(139, 69, 193, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(139, 69, 193, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #6d28d9;
  margin-bottom: 5px;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer-subtext {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }
  .navbar-link {
    width: 100%;
    margin-bottom: 5px;
  }
  .page-title {
    font-size: 2.5rem;
    margin-top: 30px;
  }
  .tasks-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }
  .card-title {
    font-size: 1.5rem;
  }
  .card-text {
    font-size: 1rem;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-card {
  animation: fadeInUp 0.6s ease forwards;
}

.action-card:nth-child(1) {
  animation-delay: 0.1s;
}
.action-card:nth-child(2) {
  animation-delay: 0.2s;
}
.action-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Efectos adicionales */
.gradient-text {
  background: linear-gradient(135deg, #6d28d9, #8b45c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Estilos específicos para el H1 del index.html */
.index-title {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6d28d9, #8b45c1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  padding: 0 20px; /* Añadir padding para evitar que el texto toque los bordes en móviles */
}

/* Contenedor de las tarjetas de tareas (para segundo.html y tercero.html) */
.tasks-container {
  max-width: 1200px;
  margin: 40px auto; /* Ajustar margen superior para dejar espacio después del navbar */
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Estilo de cada tarjeta de tarea */
.task-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(139, 69, 193, 0.1);
  border: 1px solid rgba(139, 69, 193, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Para que el botón quede abajo */
}

.task-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(139, 69, 193, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #5b21b6; /* Morado oscuro para el título */
  margin-bottom: 10px;
}

.card-text {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Para que ocupe el espacio disponible */
}

.verify-button {
  background: linear-gradient(135deg, #8b45c1, #6d28d9);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.verify-button:hover {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 69, 193, 0.4);
}

