/* Estilos del frontend para el bloque de módulos acordeón */

.serviunix-modulos-acordeon {
    padding: 2rem 0;
}

.modulos-acordeon-container {
    max-width: 1200px;
    margin: 0 auto;
}

.modulos-acordeon-container.modulos-one-column {
    max-width: 900px;
}

.modulos-acordeon-container.modulos-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.modulo-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.modulo-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modulo-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.modulo-header:hover {
    background-color: #f8f9fa;
}

.modulo-header.active {
    background-color: #dc3545;
    color: #fff;
}

.modulo-header.active .modulo-icon {
    transform: rotate(180deg);
}

.modulo-title {
    flex: 1;
    margin-right: 1rem;
}

.modulo-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modulo-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.modulo-content.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.modulo-description {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.modulo-description p {
    margin-bottom: 1rem;
}

.modulo-description p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .modulos-acordeon-container.modulos-two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modulo-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modulo-content.active {
        padding: 1rem;
    }
}

