body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f2faff; /* Fondo blanco suave con un toque celeste */
    color: #333;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(45deg, #7066a2cd, #8c47b4c0); /* Azul y Violeta */
    color: white;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

header .logo {
    font-size: 50px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Baloo', cursive;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    align-items: center;
}

nav .menu-toggle {
    display: none;
    font-size: 35px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

nav .menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav .menu li {
    margin-left: 30px;
    position: relative;
    transition: transform 0.3s ease;
}

nav .menu li a {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav .menu li a:hover {
    color: #ff8c42; /* Naranja suave */
    transform: translateY(-5px);
}

/* Menú hamburguesa para pantallas pequeñas */
@media (max-width: 768px) {
    nav .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(45deg, #5e50a1, #8c47b4); /* Azul y Violeta */
        box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
        padding: 20px;
        border-radius: 20px;
    }

    nav .menu li {
        margin: 15px 0;
        text-align: center;
        font-size: 28px;
    }

    nav .menu.show {
        display: flex;
    }

    nav .menu-toggle {
        display: block;
    }
}

/* Sección Hero */
.hero {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    background: linear-gradient(45deg, #64b3f4, #45d3a1); /* Celeste y verde */
    border-radius: 30px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    color: white;
    animation: slideIn 1.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 80px;
    margin: 0;
    color: #fff;
    font-family: 'Baloo', cursive;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 32px;
    margin-top: 20px;
    color: #fff;
    font-weight: 500;
}

/* Efecto de fondo dinámico */
.futuristic-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #64b3f4, #45d3a1);
    opacity: 0.15;
    z-index: -1;
    animation: gradientMove 5s ease-in-out infinite;
}

@keyframes gradientMove {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Materias */
.materias {
    padding: 40px;
    text-align: center;
    background-color: #f2faff; /* Fondo blanco suave con toque celeste */
    border-radius: 30px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.materias h2 {
    color: #5e50a1; /* Azul oscuro */
    font-size: 38px;
    font-family: 'Baloo', cursive;
    margin-bottom: 30px;
}

.materias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.materia {
    border-radius: 20px;
    padding: 25px;
    background-color: #8c47b4; /* Violeta suave */
    text-align: center;
    cursor: pointer;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-image: linear-gradient(135deg, #8c47b4, #b233be); /* Violeta y Naranja */
    color: white;
}

.materia:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.2);
    background-color: #ff8c42; /* Naranja suave */
}

.materia img {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.materia:hover img {
    transform: rotate(360deg);
}

.materia h3 {
    font-size: 28px;
    margin-top: 10px;
}

/* Mascota */
.mascota {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 150px;
    height: 150px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.mascota img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Estilos del popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(64, 179, 241, 0.5); /* Celeste suave */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    border: 3px solid #45d3a1;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
}

.popup-content h3 {
    font-size: 36px;
    color: #64b3f4;
    margin-bottom: 20px;
}

.popup-content button {
    margin: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    background-color: #64b3f4;
    color: white;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: #45d3a1; /* Verde */
    color: white;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
    color: #64b3f4;
}

footer {
    text-align: center;
    padding: 25px;
    background-color: #45d3a1; /* Verde suave */
    color: white;
    font-size: 22px;
    margin-top: 40px;
    border-radius: 20px;
}

/* Mascota en la parte inferior derecha */
.mascota {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px; /* Ajusta el tamaño según sea necesario */
    height: 100px;
    border-radius: 50%; /* Hace la imagen redondeada */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3); /* Agrega un efecto de sombra */
    overflow: hidden; /* Asegura que el contenido quede dentro del borde redondeado */
    animation: bounce 2s infinite ease-in-out; /* Animación suave */
}

.mascota img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen se ajuste al contenedor */
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.materia a {
    text-decoration: none; /* Quita el subrayado */
    color: white; /* Cambia el color del texto */
    font-size: 24px;
    font-weight: bold;
}

.materia a:hover {
    color: #ff8c42; /* Cambia el color del texto al pasar el cursor */
}

