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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f8fb;
  color: #333;
  line-height: 1.6;
}

.header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.tabs-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
}

.tab {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.tab:hover {
  transform: translateY(-5px);
}

.profile-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #ffd700;
}

.footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  margin-top: 2rem;
}

.carousel-container {
  max-width: 600px; /* Ancho máximo del carrusel */
  width: 100%; /* Ocupa el ancho disponible */
  margin: 2rem auto; /* Centrado horizontal */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.carousel-slide {
  display: none; /* Oculta todas las diapositivas por defecto */
  text-align: center; /* Centra la imagen dentro del contenedor */
}

.carousel-slide img {
  width: 100%; /* Imagen ocupa todo el ancho del carrusel */
  height: 200px; /* Altura fija para todas las imágenes */
  object-fit: cover; /* Recorta la imagen manteniendo proporción */
  display: block; /* Para evitar espacios debajo de la imagen */
  margin: 0 auto; /* Centrado horizontal adicional */
  border-radius: 12px;
}


/* Navegación lateral */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: #fff;
  padding: 2rem;
  overflow-y: auto;
}

.logo {
  text-align: center;
}

.logo-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.menu {
  list-style: none;
  padding: 0;
}

.menu li {
  margin-bottom: 1rem;
}

.menu a {
  text-decoration: none;
  color: #3b82f6;
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #1d4ed8;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: space-around;
}

.social-links a {
  font-size: 1.5rem;
  color: #3b82f6;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #1d4ed8;
}

/* Contenido principal */
.content {
  margin-left: 200px;
  padding: 2rem;
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.assignment-card {
  border: 1px solid #e2e8f0;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.assignment-card:hover {
  transform: translateY(-5px);
}

.assignment-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}


/* En pantallas pequeñas (móviles), muestra solo 1 columna */
@media (max-width: 768px) {
  .assignment-grid {
    grid-template-columns: 1fr;
  }
}