/* ---------------------------
   RESET BÁSICO
---------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-image: url("../img/fondo.png");
  background-repeat: no-repeat; 
  background-position: center;
  background-size: cover; 
  background-attachment: fixed;
  line-height: 1.6;
  color: #333;
}


/* ---------------------------
   HEADER
---------------------------- */
header {
  display: flex;
  justify-content: space-between; /* logo a la izq, links a la der */
  align-items: center;
  padding: 30px 30px;
  background-color: #3498db;
}

#menuToggle {
  font-size: 18px;
  background: #3498db;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

#menuToggle:hover {
  background: #146194;
}

.img_header {
  max-width: 100px;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ---------------------------
   MAIN
---------------------------- */
main {
  margin-top: 50px;
  margin-left: 20px;
  padding: 20px;
  border-radius: 30px;
  background-color: #ffff;
  display: inline-block;
}


/* ---------------------------
   SIDE NAV
---------------------------- */
#sideNav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 250px;
  background: #f9f9f9;
  border-left: 2px solid #ccc;
  padding: 15px;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1002;
}

/* Menú abierto/cerrado en móviles */
#sideNav.open {
  transform: translateX(0);
}

#sideNav a {
  text-decoration: none;
}


/* Siempre visible en PC */
@media (min-width: 769px) {
  #sideNav {
    transform: translateX(0);
  }
  main {
    margin-right: 270px; /* espacio para el sideNav */
  }
  #menuToggle {
    display: none; /* ocultar botón en desktop */
  }
  #overlay {
    display: none; /* ocultar overlay en desktop */
  }
}

/* ---------------------------
   BOTONES DEL SIDE NAV
---------------------------- */
#sideNav button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: #3498db;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.5s ease;
}

#sideNav button:hover {
  background: #146194;
}

/* ---------------------------
   CARD
---------------------------- */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}

/* ---------------------------
   LISTAS
---------------------------- */
ul {
  list-style: none;
  margin-top: 10px;
}

ul li {
  background: #fff;
  border: 1px solid #ddd;
  margin: 5px 0;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------------------------
   ACORDEÓN
---------------------------- */
.accordion {
  margin-bottom: 10px;
}

.accordion-header {
  cursor: pointer;
  padding: 10px;
  background: #3498db;
  color: white;
  border-radius: 4px;
  margin: 5px 0;
  font-size: 16px;
}

.accordion-header:hover {
  background: #146194;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f9f9f9;
  padding: 0 10px;
  border-left: 2px solid #ccc;
}

.accordion-content.open {
  max-height: 600px; /* ajusta según contenido */
  padding: 10px;
}

/* ---------------------------
   ANIMACIÓN FADE-IN
---------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.alumnos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.alumno-cuadro {
  width: 60px;
  height: 60px;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 10px;
  text-align: center;
  padding: 5px;
  background-color: #f9f9f9;
}

.punto {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
}

.punto.malo {
  background-color: red;
}

.punto.regular {
  background-color: orange;
}

.punto.bueno {
  background-color: green;
}
