/* --- HORARIOS PRINCIPAL --- */
.horarios-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  background-color: #1c1c1c;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.horarios-section h2 {
  color: #F5786B;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* --- GRID ESCRITORIO --- */
.horarios-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  text-align: center;
  margin-top: 30px;
}

.horarios-grid .dia {
  background-color: #F5786B;
  color: #000;
  font-weight: bold;
  padding: 15px 5px;
  text-transform: uppercase;
  border-radius: 6px;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.horarios-grid .clase {
  background-color: #2a2a2a;
  color: #f5f5f5;
  padding: 15px 10px;
  border-radius: 6px;
  font-weight: bold;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s, background-color 0.3s;
}

.horarios-grid .clase span {
  font-size: 0.9rem;
  color: #cccccc;
  margin-top: 5px;
}

.horarios-grid .clase:hover {
  transform: translateY(-4px);
  background-color: #333333;
}

.horarios-grid .clase:empty {
  background-color: transparent;
  box-shadow: none;
}

/* --- MODO MÓVIL (agrupado dinámico por JS) --- */
@media (max-width: 768px) {
  .horarios-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .dia-grupo {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  .dia-grupo .dia {
    background-color: #F5786B;
    color: #000;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
  }

  .dia-grupo .clase {
    background-color: #2a2a2a;
    border-left: 4px solid #F5786B;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 12px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .dia-grupo .clase span {
    font-size: 0.85rem;
    color: #ccc;
  }
}

/* ==== HEADER BASE ==== */
header {
  width: 100%;
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 60px;
  height: auto;
}

/* ==== MENÚ DESKTOP ==== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: #f5786b;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #fff;
}

/* ==== BOTÓN HAMBURGUESA ==== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #f5786b;
  cursor: pointer;
  user-select: none;
  z-index: 1100;
}

/* ==== MENÚ RESPONSIVE ==== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Fondo borroso detrás del menú */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1050;
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Menú lateral */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #111;
    flex-direction: column;
    align-items: flex-start; /* 👈 alineado a la izquierda */
    justify-content: center;
    gap: 25px;
    padding-left: 40px; /* 👈 margen izquierdo */
    transition: right 0.4s ease-in-out;
    z-index: 1100;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    font-size: 1.4rem;
    color: #f5786b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.2s;
  }

  .nav-links li a:hover {
    color: #fff;
    transform: translateX(6px); /* Efecto suave */
  }
}
