/* --- ESTILOS PARA EL ACORDEÓN DE SERVICIOS --- */

.service-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-header {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-header h3 {
    margin: 0;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 30px;
}

.service-item.active .service-content {
    padding: 30px;
    max-height: 2000px; /* Ajusta este valor si el contenido es muy largo */
}

.service-content .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-content img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 5px;
    margin: 0 auto;
}

.icon {
    transition: transform 0.3s ease;
}

.service-item.active .icon {
    transform: rotate(45deg);
}

.formacion-container {
    margin-top: 40px;
    text-align: left;
}

.formacion-item {
    margin-bottom: 30px;
}

.btn-formacion {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-formacion:hover {
    background-color: var(--accent-color);
    color: white;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info {
    text-align: center;
}

.contact-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

@media (min-width: 768px) {
    .service-content .content-wrapper {
        flex-direction: row;
        gap: 40px;
    }

    .service-content .text-content {
        flex: 1;
    }

    .service-content .image-container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-layout {
        flex-direction: row;
    }

    .contact-info {
        flex: 1;
        text-align: left;
    }

    .contact-map {
        flex: 1;
    }
}
