.certificados-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.certificado-item {
    border: 1px solid #E23C1B;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff;
}

.certificado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    background-color: #e2e2e2;
    transition: background-color 0.3s;
}

.certificado-header:hover {
    background-color: #d0d0d0;
}

.certificado-header .icon {
    padding: 0;
    margin: 0;
    font-size: 20px;
    transition: transform 0.3s;
    background-color: #234e9e80;
    border-radius: 50%;
    color: white;
    width: 30px;
    height: 30px;
    justify-content: center;
    display: flex;
    align-items: center;
}
.certificado-header:hover .icon{
    background-color: #234e9e;

}

.certificado-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.certificado-content img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: inline-block;
    padding: 10px;
}

/* Estilo cuando el acordeón está abierto */
.certificado-item.active .certificado-content {
    max-height: 900px; /* Suficiente incluso si las imágenes se envuelven en 2 filas */
}

@media (max-width: 600px) {
    .certificado-content img {
        max-height: 260px;
    }

    .certificado-item.active .certificado-content {
        max-height: 1400px;
    }
}

.certificado-item.active .certificado-header .icon {
    transform: rotate(45deg); /* Cambia el símbolo a una "x" */
}