/* ==============================
   ESTILOS GENERALES
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
  
body {
    height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    perspective: 1000px; /* Da profundidad al efecto de movimiento */
}

/* ==============================
   FONDO ANIMADO CON EFECTO PARALLAX
   ============================== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    animation: fondoCambiante 25s infinite alternate ease-in-out;
    z-index: -2;
    filter: brightness(0.45);
    transform: scale(1.05);
    transition: transform 2s ease, background-image 3s ease;
}

/* Cambia las imágenes aquí (temática escolar) */
@keyframes fondoCambiante {
    0% { background-image: url('img/img1.jpg'); }  
    50% { background-image: url('img/img2.jpg'); }    
    100% { background-image: url('img/img3.jpg'); }
}

/* ==============================
   ENCABEZADO
   ============================== */
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    flex-wrap: wrap; 
}

.logo {
    width: 60px;
    height: auto;
}

.header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

/* ==============================
   CONTENIDO PRINCIPAL
   ============================== */
.main-content {
    text-align: center;
    margin: 12vh 5vw 5vh;
    animation: aparecer 2s ease;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffcb00;
    transition: all 0.3s ease;
}

.main-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ==============================
   LISTA DE MATERIAS
   ============================== */
.subjects {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.subjects a {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

.subjects a:hover {
    background: #ffcb00;
    color: #222;
    transform: scale(1.05);
    box-shadow: 0 0 15px #ffcb00;
}

/* ==============================
   PIE DE PÁGINA MOTIVACIONAL
   ============================== */
.footer {
    text-align: center;
    padding: 20px 15px;
}

.footer img {
    width: 90px;
    margin-bottom: 10px;
}

.footer p {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}
  
/* ==============================
   RESPONSIVIDAD
   ============================== */
@media (max-width: 1024px) {
    .header h1 { font-size: 1.3rem; }
    .main-content h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .header { justify-content: center; text-align: center; }
    .header h1 { text-align: center; font-size: 1.2rem; }
    .main-content h2 { font-size: 1.6rem; }
    .main-content p { font-size: 1rem; }
    .subjects a { padding: 10px 20px; font-size: 0.95rem; }
    .footer img { width: 70px; }
    .footer p { font-size: 1rem; padding: 0 10px; }
}

@media (max-width: 480px) {
    .logo { width: 50px; }
    .main-content { margin-top: 8vh; }
    .main-content h2 { font-size: 1.4rem; }
    .subjects { flex-direction: column; align-items: center; }
    .subjects a { width: 80%; text-align: center; }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
  .subjects {
    display: flex;
    flex-direction: column; /* Apila los botones uno debajo de otro */
    align-items: center; /* Centra los botones */
    gap: 12px; /* Espacio entre ellos */
  }

  .subjects a {
    width: 100%; /* Hace los botones más anchos y cómodos para tocar */ 
    text-align: center;
    display: flex;
    padding: 4px; 
    font-size: 15px; /* Ajusta el tamaño de letra */ 
  }
}
  