/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef2f7;
    color: #333;
}

/* Navbar */
.navbar {
    background: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Menú de navegación */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.btn-login {
    background: #ffcc00;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

/* Menú responsive */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #003366;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Encabezado */
header {
    background: linear-gradient(90deg, #003366 0%, #0057b3 100%);
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Subtítulo */
.subtitulo {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 5px;
    margin-bottom: 35px;
    color: #444;
    font-weight: 500;
}

/* Contenedor de tarjetas */
.universidades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Tarjetas */
.card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 260px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Efecto hover */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Imagen de la universidad */
.card img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 5px;
}

/* Nombre de la universidad */
.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #003366;
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}


.card:nth-child(2) {
    pointer-events: none;
    opacity: 0.5; /* Opcional: Para que se vea deshabilitado */
}
.card:nth-child(3) {
    pointer-events: none;
    opacity: 0.5; /* Opcional: Para que se vea deshabilitado */
}



/* 🐹 Estilos del Hámster */
#hamster {
    width: 120px; /* Tamaño estándar */
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    animation: saltar 2s infinite ease-in-out, parpadear 4s infinite;
    transition: transform 0.2s;
    z-index: 1000;
}

#hamster:hover {
    transform: scale(1.1);
}

/* 💬 Estilos del Mensaje */
#mensaje {
    position: fixed;
    bottom: 130px; /* Espaciado con el hámster */
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px;
    border-radius: 10px;
    max-width: 250px;
    text-align: center;
    display: none;
    z-index: 999;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.install-container {
        text-align: center;
        margin-top: 20px;
        padding: 20px;
    }

    #installBtn {
        background-color: #003366;
        color: white;
        padding: 15px 20px;
        font-size: 18px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    #installBtn:hover {
        background-color: #002244;
    }
    
    

/* 📱 Responsividad */
@media (max-width: 768px) {
    header {
        font-size: 1.2rem;
        padding: 15px;
    }

    .subtitulo {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .card {
        width: 90%;
        height: auto;
    }

    /* Ajustes del hámster en móviles */
    #hamster {
        width: 90px;
        bottom: 15px;
        right: 15px;
    }

    #mensaje {
        bottom: 110px;
        right: 15px;
        max-width: 200px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    #hamster {
        width: 80px;
        bottom: 10px;
        right: 10px;
    }

    #mensaje {
        bottom: 100px;
        right: 10px;
        max-width: 180px;
    }
}

/* 🔄 Animaciones */
@keyframes saltar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes parpadear {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
