/* Estilo global */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #fff;
    margin: 0;
    line-height: 1.6;
}

h2 {
    color: #3498db;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Estilos de la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0px;
    margin-left: 20px;
    margin-right: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

th, td {
    padding: 12px 15px;
    text-align: center;
    color: #fff;
    font-size: 1.1em;
    border-bottom: 1px solid #454752;
}

th {
    background-color: #3498db;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

td {
    background-color: #2b2d33;
}

tr:nth-child(even) td {
    background-color: #24262b;
}

tr:hover td {
    background-color: #4caf50;
    color: #fff;
    transition: background-color 0.3s ease;
}



/* Estilo para formularios */
form {
    text-align: center;
    margin-top: 20px;
}

/* Estilos para pantallas medianas y pequeñas */
@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

    th, td {
        padding: 10px;
        font-size: 1em;
    }

    button {
        padding: 10px 20px;
        font-size: 1.1em;
    }
}

/* Estilos para pantallas muy pequeñas (teléfonos) */
@media (max-width: 480px) {
    h2 {
        font-size: 1.5em;
    }

    th, td {
        padding: 8px;
        font-size: 0.9em;
    }

    button {
        padding: 8px 18px;
        font-size: 1em;
    }

    table {
        font-size: 0.9em; /* Reducir el tamaño de fuente en pantallas pequeñas */
    }
    
    form {
        margin-top: 10px; /* Reducir margen superior para pantallas pequeñas */
    }
}
