﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow: scroll;
    background-image: url('https://i.postimg.cc/7LFgmqX8/inicio.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* Mensaje de bienvenida */
.welcome-message {
    background-color: rgba(255, 255, 255, 0.8);
    color: #2f4538;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 80%;
    text-align: center;
}

    .welcome-message h1 {
        font-size: 30px;
        color: #1e213d;
    }

    .welcome-message p {
        font-size: 18px;
        line-height: 1.6;
        margin-top: 10px;
    }

/* Form inicio de sesion */
.form-container {
    background: #d7d0b7;
    color: #274263;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
}

.form-signin {
    display: flex;
    flex-direction: column;
}

.SignInLabels, .SignInValues {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
}

.SignInbtnIngresar {
    background-color: #274263;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .SignInbtnIngresar:hover {
        background-color: #1e213d;
    }

/* Contenedor para las tarjetas */
.container-fluid {
    width: 100%;
    overflow: hidden;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px; 
    padding: 5px; 
    justify-items: center;
}

/* Media Queries para hacer las cards responsive */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}

/* Estilo individual de las cards */
.card {
    padding: 10px; 
    margin: 0; 
    margin-bottom: 10px;
    width: 100%;
    max-width: 280px; /* Aumenta el tamaño de las tarjetas */
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    text-align: center;
}

    .card img {
        width: 100%;
        height: auto; /* Para asegurarse de que la imagen mantenga su proporción */
        border-radius: 8px 8px 0 0;
    }

    .card:hover {
        transform: scale(1.05);
    }

    .card a {
        text-decoration: none;
        color: #1e213d;
        display: block;
        padding: 10px;
        font-size: 20px; 
        font-weight: bold;
    }

/* navbar */
.navbar {
    background-color: #274263;
}

/* boton iniciar sesión */
.iniciar-sesion-btn {
    background-color: white;
    color: #2f4538;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease-in-out;
}

    .iniciar-sesion-btn:hover {
        background-color: #1e213d;
        color: white;
    }

    #error-message {
        color: #ff0000; 
        background-color: #ffe6e6; 
        border: 1px solid #ff0000; 
        padding: 10px; 
        margin: 10px 0; 
        border-radius: 5px; 
        text-align: center; 
    }
