* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container h2 {
    text-align: center;
    margin-top: 110px;
    font-size: 44px;
    opacity: 0;
    transform: translateY(30px); 
    animation: desvanecerLetra 1.5s ease-out forwards;
    font-weight: bold; /* Negrita */
    background: linear-gradient(to right, red, black); /* Degradado de rojo a negro */
    -webkit-background-clip: text; /* Solo afecta al texto */
    color: transparent; /* Hacer el color del texto transparente para mostrar el degradado */
}

/* Definir la animación */
@keyframes desvanecerLetra {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(10px);
    }
}

table {
    width: 80%;           
    margin: 20px auto;    
    border-collapse: collapse;
    text-align: center; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    margin-top: 30px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;      
}

th {
    background-color: #fc3737;
    color: white;            
    font-weight: bold;    
}

/* Alternar el color de las filas */
tbody tr:nth-child(odd) {
    background-color: #e0e0e0;  /* Color filas impares */
}

tbody tr:nth-child(even) {
    background-color: #f5f5f5;  /* Color filas pares */
}

/* Resaltar la fila cuando el ratón está encima */
tbody tr:hover {
    background-color: #ffe0e0; 
}

/* Estilo para las celdas con rowspan, creando un cuadro */
td[rowspan] {
    background-color: #f9f9f9; 
    border: 2px solid #bbb;    
    border-right: 2px solid #bbb; 
    font-weight: bold;
}

/* Celdas siguientes del rowspan: dar borde derecho */
td[rowspan] + td {
    border-left: 2px solid #bbb;
}

/* Bordes para las celdas en el resto de la tabla */
td:not([rowspan]) {
    border-left: 1px solid #ddd;
}

/*Footer*/
footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-top: 90px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
}

.footer-section {
    width: 20%;
    padding: 10px;
}

.footer-section h2 {
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;
    font-size: 20px;
}

.footer-section p, .footer-section a {
    color: #fff;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section li {
    list-style: none;
}

.footer-section a:hover {
    color: #FF6464;
}

.footer-section i{
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
}

.footer-section a {
    margin-right: 10px;
    font-size: 16px;
}


@media screen and (max-width: 768px) {
    table {
        width: 100%;  
    }

    th, td {
        padding: 8px 10px;
    }

    /* Footer */
    footer {
        padding: 20px 10px; /* Aumentar el padding del footer para pantallas pequeñas */
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 80%;
        padding: 10px;
        text-align: center;
    }

    .footer-section h2 {
        font-size: 18px;
    }

    .footer-section a {
        font-size: 14px;
    }

    .footer-bottom {
        padding-top: 10px;
    }

    .footer-bottom p {
        font-size: 14px;
    }
}
